diff --git a/.github/workflows/darwin-tests.yaml b/.github/workflows/darwin-tests.yaml index 026071e76a9e48..2ddb2d4cac5595 100644 --- a/.github/workflows/darwin-tests.yaml +++ b/.github/workflows/darwin-tests.yaml @@ -82,42 +82,23 @@ jobs: - name: Delete Defaults run: defaults delete com.apple.dt.xctest.tool continue-on-error: true - - name: Run macOS Build - timeout-minutes: 40 - # Enable -Werror by hand here, because the Xcode config can't - # enable it for various reasons. Keep whatever Xcode settings - # for OTHER_CFLAGS exist by using ${inherited}. - # - # Disable -Wmacro-redefined because CHIP_DEVICE_CONFIG_ENABLE_MDNS - # seems to be unconditionally defined in CHIPDeviceBuildConfig.h, - # which is apparently being included after CHIPDeviceConfig.h. - run: xcodebuild -target "Matter" -sdk macosx OTHER_CFLAGS='${inherited} -Werror -Wno-macro-redefined' - working-directory: src/darwin/Framework - - name: Copying Framework to Temporary Path - continue-on-error: true + - name: Build Apps + timeout-minutes: 75 run: | - mkdir -p /tmp/macos_framework_output - ls -la /Users/runner/work/connectedhomeip/connectedhomeip/src/darwin/Framework/build/Release/ - mv /Users/runner/work/connectedhomeip/connectedhomeip/src/darwin/Framework/build/Release/Matter.framework /tmp/macos_framework_output - ls -la /tmp/macos_framework_output - # Disabling for now - # - # - name: Build Apps - # timeout-minutes: 60 - # run: | - # ./scripts/run_in_build_env.sh \ - # "./scripts/build/build_examples.py \ - # --target darwin-x64-darwin-framework-tool-${BUILD_VARIANT} \ - # --target darwin-x64-all-clusters-${BUILD_VARIANT} \ - # --target darwin-x64-lock-${BUILD_VARIANT} \ - # --target darwin-x64-ota-provider-${BUILD_VARIANT} \ - # --target darwin-x64-ota-requestor-${BUILD_VARIANT} \ - # --target darwin-x64-tv-app-${BUILD_VARIANT} \ - # build \ - # --copy-artifacts-to objdir-clone \ - # " + ./scripts/run_in_build_env.sh \ + "./scripts/build/build_examples.py \ + --target darwin-x64-darwin-framework-tool-${BUILD_VARIANT} \ + --target darwin-x64-all-clusters-${BUILD_VARIANT} \ + --target darwin-x64-lock-${BUILD_VARIANT} \ + --target darwin-x64-ota-provider-${BUILD_VARIANT} \ + --target darwin-x64-ota-requestor-${BUILD_VARIANT} \ + --target darwin-x64-tv-app-${BUILD_VARIANT} \ + build \ + --copy-artifacts-to objdir-clone \ + " + # Disable for now # - name: Run Tests - # timeout-minutes: 60 + # timeout-minutes: 65 # run: | # ./scripts/run_in_build_env.sh \ # "./scripts/tests/run_test_suite.py \ diff --git a/.github/workflows/darwin.yaml b/.github/workflows/darwin.yaml index f1c87eb9314547..7011285bf64dc4 100644 --- a/.github/workflows/darwin.yaml +++ b/.github/workflows/darwin.yaml @@ -88,21 +88,9 @@ jobs: # which is apparently being included after CHIPDeviceConfig.h. run: xcodebuild -target "Matter" -sdk macosx OTHER_CFLAGS='${inherited} -Werror -Wno-macro-redefined' working-directory: src/darwin/Framework - - name: Copying Framework to Temporary Path - continue-on-error: true - run: | - mkdir -p /tmp/macos_framework_output - ls -la /Users/runner/work/connectedhomeip/connectedhomeip/src/darwin/Framework/build/Release/ - mv /Users/runner/work/connectedhomeip/connectedhomeip/src/darwin/Framework/build/Release/Matter.framework /tmp/macos_framework_output - ls -la /tmp/macos_framework_output - name: Clean Build run: xcodebuild clean working-directory: src/darwin/Framework - # Disabling for now - # - name: Build example darwin-framework-tool - # timeout-minutes: 15 - # run: | - # scripts/examples/gn_build_example.sh examples/darwin-framework-tool out/debug chip_config_network_layer_ble=false is_asan=true - name: Build example All Clusters Server timeout-minutes: 15 run: | diff --git a/examples/darwin-framework-tool/BUILD.gn b/examples/darwin-framework-tool/BUILD.gn index 5469315293126e..0cdc445fd9ffa5 100644 --- a/examples/darwin-framework-tool/BUILD.gn +++ b/examples/darwin-framework-tool/BUILD.gn @@ -24,19 +24,38 @@ if (config_use_interactive_mode) { assert(chip_build_tools) +action("build-darwin-framwork") { + script = "${chip_root}/scripts/build/build_darwin_framework.py" + + inputs = [ "${chip_root}/src/darwin/Framework/Matter.xcodeproj" ] + + args = [ + "--project_path", + rebase_path("${chip_root}/src/darwin/Framework/Matter.xcodeproj", + root_build_dir), + "--out_path", + "macos_framework_output", + "--target", + "Matter", + "--log_path", + rebase_path("${root_build_dir}/darwin_framework_build.log", root_build_dir), + ] + + output_name = "Matter.framework" + outputs = [ "${root_out_dir}/macos_framework_output/${output_name}" ] +} + config("config") { include_dirs = [ ".", - "${chip_root}/src/darwin/Framework/CHIP/zap-generated", - "${chip_root}/src/darwin/Framework/CHIP", "${chip_root}/examples/darwin-framework-tool/commands/common", "${chip_root}/zzz_generated/darwin-framework-tool", "${chip_root}/zzz_generated/controller-clusters", "${chip_root}/examples/chip-tool/commands/clusters/ComplexArgument.h", - "/tmp/macos_framework_output", + "${root_out_dir}/macos_framework_output", ] - framework_dirs = [ "/tmp/macos_framework_output" ] + framework_dirs = [ "${root_out_dir}/macos_framework_output" ] defines = [ "CONFIG_ENABLE_YAML_TESTS=${config_enable_yaml_tests}", @@ -79,25 +98,26 @@ executable("darwin-framework-tool") { "main.mm", ] - if (config_use_interactive_mode) { - sources += [ "commands/interactive/InteractiveCommands.mm" ] - deps += [ "${editline_root}:editline" ] - } - - if (config_enable_yaml_tests) { - sources += [ "${chip_root}/zzz_generated/darwin-framework-tool/zap-generated/cluster/MTRTestClustersObjc.mm" ] - } - deps = [ + ":build-darwin-framwork", "${chip_root}/examples/chip-tool:chip-tool-utils", "${chip_root}/src/app/server", - "${chip_root}/src/darwin/Framework/CHIP:static-matter", "${chip_root}/src/lib", "${chip_root}/src/platform", "${chip_root}/third_party/inipp", "${chip_root}/third_party/jsoncpp", ] + if (config_use_interactive_mode) { + sources += [ "commands/interactive/InteractiveCommands.mm" ] + deps += [ "${editline_root}:editline" ] + } + + ldflags = [ + "-rpath", + "@executable_path/macos_framework_output/", + ] + frameworks = [ "Matter.framework", "Security.framework", diff --git a/examples/darwin-framework-tool/commands/clusters/ClusterCommandBridge.h b/examples/darwin-framework-tool/commands/clusters/ClusterCommandBridge.h index c7c71a324e2a0d..fc20000bc72040 100644 --- a/examples/darwin-framework-tool/commands/clusters/ClusterCommandBridge.h +++ b/examples/darwin-framework-tool/commands/clusters/ClusterCommandBridge.h @@ -47,7 +47,7 @@ class ClusterCommand : public ModelCommand { ~ClusterCommand() {} - CHIP_ERROR SendCommand(MTRDevice * _Nonnull device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * _Nonnull device, chip::EndpointId endpointId) override { chip::TLV::TLVWriter writer; chip::TLV::TLVReader reader; @@ -68,7 +68,7 @@ class ClusterCommand : public ModelCommand { return ClusterCommand::SendCommand(device, endpointId, mClusterId, mCommandId, commandFields); } - CHIP_ERROR SendCommand(MTRDevice * _Nonnull device, chip::EndpointId endpointId, chip::ClusterId clusterId, + CHIP_ERROR SendCommand(MTRBaseDevice * _Nonnull device, chip::EndpointId endpointId, chip::ClusterId clusterId, chip::CommandId commandId, id _Nonnull commandFields) { uint16_t repeatCount = mRepeatCount.ValueOr(1); diff --git a/examples/darwin-framework-tool/commands/clusters/ModelCommandBridge.h b/examples/darwin-framework-tool/commands/clusters/ModelCommandBridge.h index ad86fa79aa690e..df6cf196c04569 100644 --- a/examples/darwin-framework-tool/commands/clusters/ModelCommandBridge.h +++ b/examples/darwin-framework-tool/commands/clusters/ModelCommandBridge.h @@ -42,7 +42,7 @@ class ModelCommand : public CHIPCommandBridge CHIP_ERROR RunCommand() override; chip::System::Clock::Timeout GetWaitDuration() const override { return chip::System::Clock::Seconds16(10); } - virtual CHIP_ERROR SendCommand(MTRDevice * _Nonnull device, chip::EndpointId endPointId) = 0; + virtual CHIP_ERROR SendCommand(MTRBaseDevice * _Nonnull device, chip::EndpointId endPointId) = 0; private: chip::NodeId mNodeId; diff --git a/examples/darwin-framework-tool/commands/clusters/ModelCommandBridge.mm b/examples/darwin-framework-tool/commands/clusters/ModelCommandBridge.mm index e039391b8e6289..31ab9d8cba1038 100644 --- a/examples/darwin-framework-tool/commands/clusters/ModelCommandBridge.mm +++ b/examples/darwin-framework-tool/commands/clusters/ModelCommandBridge.mm @@ -29,27 +29,27 @@ MTRDeviceController * commissioner = CurrentCommissioner(); ChipLogProgress(chipTool, "Sending command to node 0x" ChipLogFormatX64, ChipLogValueX64(mNodeId)); - [commissioner getDevice:mNodeId - queue:callbackQueue - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { - if (error != nil) { - SetCommandExitStatus(error, "Error getting connected device"); - return; - } - - CHIP_ERROR err; - if (device == nil) { - err = CHIP_ERROR_INTERNAL; - } else { - err = SendCommand(device, mEndPointId); - } - - if (err != CHIP_NO_ERROR) { - ChipLogError(chipTool, "Error: %s", chip::ErrorStr(err)); - SetCommandExitStatus(err); - return; - } - }]; + [commissioner getBaseDevice:mNodeId + queue:callbackQueue + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { + if (error != nil) { + SetCommandExitStatus(error, "Error getting connected device"); + return; + } + + CHIP_ERROR err; + if (device == nil) { + err = CHIP_ERROR_INTERNAL; + } else { + err = SendCommand(device, mEndPointId); + } + + if (err != CHIP_NO_ERROR) { + ChipLogError(chipTool, "Error: %s", chip::ErrorStr(err)); + SetCommandExitStatus(err); + return; + } + }]; return CHIP_NO_ERROR; } diff --git a/examples/darwin-framework-tool/commands/clusters/ReportCommandBridge.h b/examples/darwin-framework-tool/commands/clusters/ReportCommandBridge.h index 3357b12a8eada6..0330c226fcec03 100644 --- a/examples/darwin-framework-tool/commands/clusters/ReportCommandBridge.h +++ b/examples/darwin-framework-tool/commands/clusters/ReportCommandBridge.h @@ -50,7 +50,7 @@ class ReadAttribute : public ModelCommand { ~ReadAttribute() {} - CHIP_ERROR SendCommand(MTRDevice * _Nonnull device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * _Nonnull device, chip::EndpointId endpointId) override { dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); MTRReadParams * params = [[MTRReadParams alloc] init]; @@ -125,7 +125,7 @@ class SubscribeAttribute : public ModelCommand { ~SubscribeAttribute() {} - CHIP_ERROR SendCommand(MTRDevice * _Nonnull device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * _Nonnull device, chip::EndpointId endpointId) override { dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; @@ -195,7 +195,7 @@ class SubscribeEvent : public ModelCommand { ~SubscribeEvent() {} - CHIP_ERROR SendCommand(MTRDevice * _Nonnull device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * _Nonnull device, chip::EndpointId endpointId) override { dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); diff --git a/examples/darwin-framework-tool/commands/clusters/WriteAttributeCommandBridge.h b/examples/darwin-framework-tool/commands/clusters/WriteAttributeCommandBridge.h index 37df173a8c417b..826117f1ceea3c 100644 --- a/examples/darwin-framework-tool/commands/clusters/WriteAttributeCommandBridge.h +++ b/examples/darwin-framework-tool/commands/clusters/WriteAttributeCommandBridge.h @@ -47,7 +47,7 @@ class WriteAttribute : public ModelCommand { ~WriteAttribute() {} - CHIP_ERROR SendCommand(MTRDevice * _Nonnull device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * _Nonnull device, chip::EndpointId endpointId) override { chip::TLV::TLVWriter writer; chip::TLV::TLVReader reader; @@ -69,7 +69,7 @@ class WriteAttribute : public ModelCommand { return WriteAttribute::SendCommand(device, endpointId, mClusterId, mAttributeId, value); } - CHIP_ERROR SendCommand(MTRDevice * _Nonnull device, chip::EndpointId endpointId, chip::ClusterId clusterId, + CHIP_ERROR SendCommand(MTRBaseDevice * _Nonnull device, chip::EndpointId endpointId, chip::ClusterId clusterId, chip::AttributeId attributeId, id _Nonnull value) { dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); diff --git a/examples/darwin-framework-tool/commands/common/CHIPCommandStorageDelegate.mm b/examples/darwin-framework-tool/commands/common/CHIPCommandStorageDelegate.mm index 7712eab13cd29f..45af924a7fee8b 100644 --- a/examples/darwin-framework-tool/commands/common/CHIPCommandStorageDelegate.mm +++ b/examples/darwin-framework-tool/commands/common/CHIPCommandStorageDelegate.mm @@ -67,7 +67,7 @@ - (nullable NSData *)storageDataForKey:(NSString *)key - (BOOL)setStorageData:(NSData *)value forKey:(NSString *)key { - return CHIPSetDomainValueForKey(kCHIPToolDefaultsDomain, key, value); + return MTRSetDomainValueForKey(kCHIPToolDefaultsDomain, key, value); } - (BOOL)removeStorageDataForKey:(NSString *)key diff --git a/examples/darwin-framework-tool/commands/common/CHIPToolKeypair.h b/examples/darwin-framework-tool/commands/common/CHIPToolKeypair.h index bd92c406c789c3..a58d2e8e703042 100644 --- a/examples/darwin-framework-tool/commands/common/CHIPToolKeypair.h +++ b/examples/darwin-framework-tool/commands/common/CHIPToolKeypair.h @@ -4,7 +4,7 @@ @interface CHIPToolKeypair : NSObject - (BOOL)initialize; -- (NSData *)ECDSA_sign_message_raw:(NSData *)message; +- (NSData *)signMessageECDSA_RAW:(NSData *)message; - (SecKeyRef)publicKey; - (CHIP_ERROR)Serialize:(chip::Crypto::P256SerializedKeypair &)output; - (CHIP_ERROR)Deserialize:(chip::Crypto::P256SerializedKeypair &)input; diff --git a/examples/darwin-framework-tool/commands/common/CHIPToolKeypair.mm b/examples/darwin-framework-tool/commands/common/CHIPToolKeypair.mm index 56be3fa36b15a3..425a45fba62f83 100644 --- a/examples/darwin-framework-tool/commands/common/CHIPToolKeypair.mm +++ b/examples/darwin-framework-tool/commands/common/CHIPToolKeypair.mm @@ -33,7 +33,7 @@ - (BOOL)initialize return _mKeyPair.Initialize() == CHIP_NO_ERROR; } -- (NSData *)ECDSA_sign_message_raw:(NSData *)message +- (NSData *)signMessageECDSA_RAW:(NSData *)message { chip::Crypto::P256ECDSASignature signature; NSData * out_signature; diff --git a/examples/darwin-framework-tool/commands/common/MTRCluster_Externs.h b/examples/darwin-framework-tool/commands/common/MTRCluster_Externs.h deleted file mode 100644 index a71c5301deba2c..00000000000000 --- a/examples/darwin-framework-tool/commands/common/MTRCluster_Externs.h +++ /dev/null @@ -1,32 +0,0 @@ -/* - * - * Copyright (c) 2021 Project CHIP Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef MTR_CLUSTER_EXTERNS_H -#define MTR_CLUSTER_EXTERNS_H - -#import - -#import - -@interface MTRCluster (PrivateExtensions) -@property (readonly, nonatomic) dispatch_queue_t callbackQueue; - -- (chip::ByteSpan)asByteSpan:(NSData *)value; -- (chip::CharSpan)asCharSpan:(NSString *)value; -@end - -#endif diff --git a/examples/darwin-framework-tool/commands/common/MTRDevice_Externs.h b/examples/darwin-framework-tool/commands/common/MTRDevice_Externs.h deleted file mode 100644 index 33e8b613e29065..00000000000000 --- a/examples/darwin-framework-tool/commands/common/MTRDevice_Externs.h +++ /dev/null @@ -1,40 +0,0 @@ -/** - * - * Copyright (c) 2020 Project CHIP Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef MTR_DEVICE_EXTERNS_H -#define MTR_DEVICE_EXTERNS_H - -#import -#import - -#include -#include -#include - -NS_ASSUME_NONNULL_BEGIN - -@interface MTRDevice (InternalIntrospection) - -// TODO: remove me -// Used to access the internal chip::DeviceProxy from TestCommandBridge -- (chip::DeviceProxy *)internalDevice; - -@end - -NS_ASSUME_NONNULL_END - -#endif /* MTR_DEVICE_EXTERNS_H */ diff --git a/examples/darwin-framework-tool/commands/common/MTRError.mm b/examples/darwin-framework-tool/commands/common/MTRError.mm index 5d0abd4b0137e8..05ff5a7331ad85 100644 --- a/examples/darwin-framework-tool/commands/common/MTRError.mm +++ b/examples/darwin-framework-tool/commands/common/MTRError.mm @@ -30,6 +30,20 @@ @interface MTRErrorHolder : NSObject @property (nonatomic, readonly) CHIP_ERROR error; @end +@implementation MTRErrorHolder + +- (instancetype)initWithError:(CHIP_ERROR)error +{ + if (!(self = [super init])) { + return nil; + } + + _error = error; + return self; +} + +@end + CHIP_ERROR MTRErrorToCHIPErrorCode(NSError * error) { if (error == nil) { diff --git a/examples/darwin-framework-tool/commands/pairing/PairingCommandBridge.mm b/examples/darwin-framework-tool/commands/pairing/PairingCommandBridge.mm index 8a6935e9c6df34..e8fca6ab8771f5 100644 --- a/examples/darwin-framework-tool/commands/pairing/PairingCommandBridge.mm +++ b/examples/darwin-framework-tool/commands/pairing/PairingCommandBridge.mm @@ -111,46 +111,46 @@ { dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip-tool.command", DISPATCH_QUEUE_SERIAL); MTRDeviceController * commissioner = CurrentCommissioner(); - [commissioner getDevice:mNodeId - queue:callbackQueue - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { - CHIP_ERROR err = CHIP_NO_ERROR; - if (error) { - err = MTRErrorToCHIPErrorCode(error); - LogNSError("Error: ", error); - SetCommandExitStatus(err); - } else if (device == nil) { - ChipLogError(chipTool, "Error: %s", chip::ErrorStr(CHIP_ERROR_INTERNAL)); - SetCommandExitStatus(CHIP_ERROR_INTERNAL); - } else { - ChipLogProgress(chipTool, "Attempting to unpair device %llu", mNodeId); - MTROperationalCredentials * opCredsCluster = [[MTROperationalCredentials alloc] initWithDevice:device - endpoint:0 - queue:callbackQueue]; - [opCredsCluster readAttributeCurrentFabricIndexWithCompletionHandler:^( - NSNumber * _Nullable value, NSError * _Nullable readError) { - if (readError) { - CHIP_ERROR readErr = MTRErrorToCHIPErrorCode(readError); - LogNSError("Failed to get current fabric: ", readError); - SetCommandExitStatus(readErr); - return; - } - MTROperationalCredentialsClusterRemoveFabricParams * params = - [[MTROperationalCredentialsClusterRemoveFabricParams alloc] init]; - params.fabricIndex = value; - [opCredsCluster removeFabricWithParams:params - completionHandler:^(MTROperationalCredentialsClusterNOCResponseParams * _Nullable data, - NSError * _Nullable removeError) { - CHIP_ERROR removeErr = CHIP_NO_ERROR; - if (removeError) { - removeErr = MTRErrorToCHIPErrorCode(removeError); - LogNSError("Failed to remove current fabric: ", removeError); - } else { - ChipLogProgress(chipTool, "Successfully unpaired deviceId %llu", mNodeId); - } - SetCommandExitStatus(removeErr); - }]; - }]; - } - }]; + [commissioner getBaseDevice:mNodeId + queue:callbackQueue + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { + CHIP_ERROR err = CHIP_NO_ERROR; + if (error) { + err = MTRErrorToCHIPErrorCode(error); + LogNSError("Error: ", error); + SetCommandExitStatus(err); + } else if (device == nil) { + ChipLogError(chipTool, "Error: %s", chip::ErrorStr(CHIP_ERROR_INTERNAL)); + SetCommandExitStatus(CHIP_ERROR_INTERNAL); + } else { + ChipLogProgress(chipTool, "Attempting to unpair device %llu", mNodeId); + MTRBaseClusterOperationalCredentials * opCredsCluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:0 queue:callbackQueue]; + [opCredsCluster readAttributeCurrentFabricIndexWithCompletionHandler:^( + NSNumber * _Nullable value, NSError * _Nullable readError) { + if (readError) { + CHIP_ERROR readErr = MTRErrorToCHIPErrorCode(readError); + LogNSError("Failed to get current fabric: ", readError); + SetCommandExitStatus(readErr); + return; + } + MTROperationalCredentialsClusterRemoveFabricParams * params = + [[MTROperationalCredentialsClusterRemoveFabricParams alloc] init]; + params.fabricIndex = value; + [opCredsCluster + removeFabricWithParams:params + completionHandler:^(MTROperationalCredentialsClusterNOCResponseParams * _Nullable data, + NSError * _Nullable removeError) { + CHIP_ERROR removeErr = CHIP_NO_ERROR; + if (removeError) { + removeErr = MTRErrorToCHIPErrorCode(removeError); + LogNSError("Failed to remove current fabric: ", removeError); + } else { + ChipLogProgress(chipTool, "Successfully unpaired deviceId %llu", mNodeId); + } + SetCommandExitStatus(removeErr); + }]; + }]; + } + }]; } diff --git a/examples/darwin-framework-tool/commands/payload/SetupPayloadParseCommand.h b/examples/darwin-framework-tool/commands/payload/SetupPayloadParseCommand.h index babbaf2e06b5c4..8fb9e90fad1c7c 100644 --- a/examples/darwin-framework-tool/commands/payload/SetupPayloadParseCommand.h +++ b/examples/darwin-framework-tool/commands/payload/SetupPayloadParseCommand.h @@ -18,7 +18,7 @@ #pragma once -#import +#import #include class SetupPayloadParseCommand : public Command { @@ -33,7 +33,7 @@ class SetupPayloadParseCommand : public Command { private: char * mCode; - CHIP_ERROR Print(CHIPSetupPayload * payload); + CHIP_ERROR Print(MTRSetupPayload * payload); // Will log the given string and given error (as progress if success, error // if failure). diff --git a/examples/darwin-framework-tool/commands/payload/SetupPayloadParseCommand.mm b/examples/darwin-framework-tool/commands/payload/SetupPayloadParseCommand.mm index 04d28646cb42af..1cd479c965a6a4 100644 --- a/examples/darwin-framework-tool/commands/payload/SetupPayloadParseCommand.mm +++ b/examples/darwin-framework-tool/commands/payload/SetupPayloadParseCommand.mm @@ -17,8 +17,8 @@ */ #include "SetupPayloadParseCommand.h" -#import -#import +#include "MTRError_Utils.h" +#import using namespace ::chip; @@ -26,16 +26,16 @@ #if CHIP_PROGRESS_LOGGING -NSString * CustomFlowString(CHIPCommissioningFlow flow) +NSString * CustomFlowString(MTRCommissioningFlow flow) { switch (flow) { - case kCommissioningFlowStandard: + case MTRCommissioningFlowStandard: return @"STANDARD"; - case kCommissioningFlowUserActionRequired: + case MTRCommissioningFlowUserActionRequired: return @"USER ACTION REQUIRED"; - case kCommissioningFlowCustom: + case MTRCommissioningFlowCustom: return @"CUSTOM"; - case kCommissioningFlowInvalid: + case MTRCommissioningFlowInvalid: return @"INVALID"; } @@ -48,7 +48,7 @@ void SetupPayloadParseCommand::LogNSError(const char * logString, NSError * error) { - CHIP_ERROR err = [CHIPError errorToCHIPErrorCode:error]; + CHIP_ERROR err = MTRErrorToCHIPErrorCode(error); if (err == CHIP_NO_ERROR) { ChipLogProgress(chipTool, "%s: %s", logString, chip::ErrorStr(err)); } else { @@ -60,14 +60,14 @@ { NSString * codeString = [NSString stringWithCString:mCode encoding:NSASCIIStringEncoding]; NSError * error; - CHIPSetupPayload * payload; - CHIPOnboardingPayloadType codeType; + MTRSetupPayload * payload; + MTROnboardingPayloadType codeType; if (IsQRCode(codeString)) { - codeType = CHIPOnboardingPayloadTypeQRCode; + codeType = MTROnboardingPayloadTypeQRCode; } else { - codeType = CHIPOnboardingPayloadTypeManualCode; + codeType = MTROnboardingPayloadTypeManualCode; } - payload = [CHIPOnboardingPayloadParser setupPayloadForOnboardingPayload:codeString ofType:codeType error:&error]; + payload = [MTROnboardingPayloadParser setupPayloadForOnboardingPayload:codeString ofType:codeType error:&error]; if (error) { LogNSError("Error: ", error); return CHIP_ERROR_INTERNAL; @@ -77,7 +77,7 @@ return CHIP_NO_ERROR; } -CHIP_ERROR SetupPayloadParseCommand::Print(CHIPSetupPayload * payload) +CHIP_ERROR SetupPayloadParseCommand::Print(MTRSetupPayload * payload) { NSLog(@"Version: %@", payload.version); NSLog(@"VendorID: %@", payload.vendorID); @@ -87,19 +87,19 @@ NSMutableString * humanFlags = [[NSMutableString alloc] init]; if (payload.rendezvousInformation) { - if (payload.rendezvousInformation & kRendezvousInformationNone) { + if (payload.rendezvousInformation & MTRRendezvousInformationNone) { [humanFlags appendString:@"NONE"]; } else { - if (payload.rendezvousInformation & kRendezvousInformationSoftAP) { + if (payload.rendezvousInformation & MTRRendezvousInformationSoftAP) { [humanFlags appendString:@"SoftAP"]; } - if (payload.rendezvousInformation & kRendezvousInformationBLE) { + if (payload.rendezvousInformation & MTRRendezvousInformationBLE) { if (!humanFlags) { [humanFlags appendString:@", "]; } [humanFlags appendString:@"BLE"]; } - if (payload.rendezvousInformation & kRendezvousInformationOnNetwork) { + if (payload.rendezvousInformation & MTRRendezvousInformationOnNetwork) { if (!humanFlags) { [humanFlags appendString:@", "]; } @@ -119,14 +119,14 @@ NSLog(@"SerialNumber: %@", payload.serialNumber); } NSError * error; - NSArray * optionalVendorData = [payload getAllOptionalVendorData:&error]; + NSArray * optionalVendorData = [payload getAllOptionalVendorData:&error]; if (error) { LogNSError("Error: ", error); return CHIP_ERROR_INTERNAL; } - for (const CHIPOptionalQRCodeInfo * info : optionalVendorData) { - bool isTypeString = [info.infoType isEqual:@(kOptionalQRCodeInfoTypeString)]; - bool isTypeInt32 = [info.infoType isEqual:@(kOptionalQRCodeInfoTypeInt32)]; + for (const MTROptionalQRCodeInfo * info : optionalVendorData) { + bool isTypeString = [info.infoType isEqual:@(MTROptionalQRCodeInfoTypeString)]; + bool isTypeInt32 = [info.infoType isEqual:@(MTROptionalQRCodeInfoTypeInt32)]; VerifyOrReturnError(isTypeString || isTypeInt32, CHIP_ERROR_INVALID_ARGUMENT); if (isTypeString) { diff --git a/examples/darwin-framework-tool/commands/tests/TestCommandBridge.h b/examples/darwin-framework-tool/commands/tests/TestCommandBridge.h index 985f1918eef178..453fba5a22a7b4 100644 --- a/examples/darwin-framework-tool/commands/tests/TestCommandBridge.h +++ b/examples/darwin-framework-tool/commands/tests/TestCommandBridge.h @@ -28,11 +28,9 @@ #include #include #include -#include #import -#import "MTRDevice_Externs.h" #import "MTRError_Utils.h" class TestCommandBridge; @@ -123,21 +121,20 @@ class TestCommandBridge : public CHIPCommandBridge, // will just hand it right back to us without establishing a new CASE // session. if (GetDevice(identity) != nil) { - [GetDevice(identity) invalidateCASESession]; mConnectedDevices[identity] = nil; } - [controller getDevice:value.nodeId - queue:mCallbackQueue - completionHandler:^(MTRDevice * _Nullable device, NSError * _Nullable error) { - if (error != nil) { - SetCommandExitStatus(error); - return; - } - - mConnectedDevices[identity] = device; - NextTest(); - }]; + [controller getBaseDevice:value.nodeId + queue:mCallbackQueue + completionHandler:^(MTRBaseDevice * _Nullable device, NSError * _Nullable error) { + if (error != nil) { + SetCommandExitStatus(error); + return; + } + + mConnectedDevices[identity] = device; + NextTest(); + }]; return CHIP_NO_ERROR; } @@ -179,7 +176,7 @@ class TestCommandBridge : public CHIPCommandBridge, return CHIP_NO_ERROR; } - MTRDevice * _Nullable GetDevice(const char * _Nullable identity) { return mConnectedDevices[identity]; } + MTRBaseDevice * _Nullable GetDevice(const char * _Nullable identity) { return mConnectedDevices[identity]; } // PairingDeleted and PairingComplete need to be public so our pairing // delegate can call them. @@ -461,7 +458,7 @@ class TestCommandBridge : public CHIPCommandBridge, TestPairingDelegate * _Nonnull mPairingDelegate; // Set of our connected devices, keyed by identity. - std::map mConnectedDevices; + std::map mConnectedDevices; }; NS_ASSUME_NONNULL_BEGIN diff --git a/examples/darwin-framework-tool/templates/commands.zapt b/examples/darwin-framework-tool/templates/commands.zapt index 21a06554127044..1bd639bfd0502a 100644 --- a/examples/darwin-framework-tool/templates/commands.zapt +++ b/examples/darwin-framework-tool/templates/commands.zapt @@ -41,12 +41,12 @@ public: ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster ({{asHex parent.code 8}}) command ({{asHex code 8}}) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTR{{asUpperCamelCase clusterName}} * cluster = [[MTR{{asUpperCamelCase clusterName}} alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseCluster{{asUpperCamelCase clusterName}} * cluster = [[MTRBaseCluster{{asUpperCamelCase clusterName}} alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; __auto_type * params = [[MTR{{asUpperCamelCase clusterName}}Cluster{{asUpperCamelCase name}}Params alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; {{#chip_cluster_command_arguments}} @@ -106,12 +106,12 @@ public: { } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster ({{asHex parent.code 8}}) ReadAttribute ({{asHex code 8}}) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTR{{asUpperCamelCase parent.name}} * cluster = [[MTR{{asUpperCamelCase parent.name}} alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseCluster{{asUpperCamelCase parent.name}} * cluster = [[MTRBaseCluster{{asUpperCamelCase parent.name}} alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; {{#if_is_fabric_scoped_struct type}} MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; @@ -157,13 +157,13 @@ public: { } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster ({{asHex parent.code 8}}) WriteAttribute ({{asHex code 8}}) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTR{{asUpperCamelCase parent.name}} * cluster = [[MTR{{asUpperCamelCase parent.name}} alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseCluster{{asUpperCamelCase parent.name}} * cluster = [[MTRBaseCluster{{asUpperCamelCase parent.name}} alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; {{#if_chip_complex}} {{asObjectiveCType type parent.name}} value; @@ -211,16 +211,16 @@ public: { } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster ({{asHex parent.code 8}}) ReportAttribute ({{asHex code 8}}) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTR{{asUpperCamelCase parent.name}} * cluster = [[MTR{{asUpperCamelCase parent.name}} alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseCluster{{asUpperCamelCase parent.name}} * cluster = [[MTRBaseCluster{{asUpperCamelCase parent.name}} alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; - [cluster subscribe{{>attribute}}WithMinInterval:[NSNumber numberWithUnsignedInt:mMinInterval] - maxInterval:[NSNumber numberWithUnsignedInt:mMaxInterval] + [cluster subscribe{{>attribute}}WithMinInterval:[NSNumber numberWithUnsignedInt:mMinInterval] + maxInterval:[NSNumber numberWithUnsignedInt:mMaxInterval] params:params subscriptionEstablished:^(){ mSubscriptionEstablished=YES; } reportHandler:^({{asObjectiveCClass type parent.name}} * _Nullable value, NSError * _Nullable error) { @@ -245,7 +245,7 @@ public: void registerCluster{{asUpperCamelCase name}}(Commands & commands) { using namespace chip::app::Clusters::{{asUpperCamelCase name}}; - + const char * clusterName = "{{asUpperCamelCase name}}"; commands_list clusterCommands = { diff --git a/examples/darwin-framework-tool/templates/tests/MTRTestClustersObjc-src.zapt b/examples/darwin-framework-tool/templates/tests/MTRTestClustersObjc-src.zapt deleted file mode 100644 index bd3ec81e32920d..00000000000000 --- a/examples/darwin-framework-tool/templates/tests/MTRTestClustersObjc-src.zapt +++ /dev/null @@ -1,69 +0,0 @@ -{{> header}} -#import - -#import - -#import "zap-generated/cluster/MTRTestClustersObjc.h" -#import "MTRCallbackBridge_internal.h" -#import "MTRDevice_Externs.h" -#import "MTRCluster_Externs.h" -#import "zap-generated/CHIPClusters.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -using chip::Callback::Callback; -using chip::Callback::Cancelable; -using namespace chip::app::Clusters; - -{{#chip_client_clusters includeAll=true}} - -@interface MTRTest{{asUpperCamelCase name}} () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::{{asUpperCamelCase name}}Cluster * cppCluster; -@end - -@implementation MTRTest{{asUpperCamelCase name}} - -- (chip::Controller::{{asUpperCamelCase name}}Cluster **) cppClusterSlot -{ - return &_cppCluster; -} - -{{#chip_server_cluster_attributes}} -{{#unless isWritableAttribute}} -{{#*inline "attribute"}}Attribute{{asUpperCamelCase name}}{{/inline}} -{{#*inline "callbackName"}}DefaultSuccess{{/inline}} -- (void)write{{>attribute}}WithValue:({{asObjectiveCType type parent.name}})value completionHandler:(StatusCompletion)completionHandler -{ - new MTR{{>callbackName}}CallbackBridge(self.callbackQueue, - {{! For now, don't change the bridge API; instead just use an adapter - to invoke our completion handler. This is not great from a - type-safety perspective, of course. }} - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = {{asUpperCamelCase parent.name}}::Attributes::{{asUpperCamelCase name}}::TypeInfo; - TypeInfo::Type cppValue; - {{>encode_value target="cppValue" source="value" cluster=parent.name errorCode="return CHIP_ERROR_INVALID_ARGUMENT;" depth=0}} - auto successFn = Callback<{{>callbackName}}CallbackType>::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -{{/unless}} -{{/chip_server_cluster_attributes}} - -@end - -{{/chip_client_clusters}} diff --git a/examples/darwin-framework-tool/templates/tests/MTRTestClustersObjc.zapt b/examples/darwin-framework-tool/templates/tests/MTRTestClustersObjc.zapt deleted file mode 100644 index caedee02099c57..00000000000000 --- a/examples/darwin-framework-tool/templates/tests/MTRTestClustersObjc.zapt +++ /dev/null @@ -1,27 +0,0 @@ -{{> header}} - -#import - -@class MTRDevice; - -NS_ASSUME_NONNULL_BEGIN - -{{#chip_client_clusters includeAll=true}} - -/** - * Cluster {{name}} - * {{description}} - */ -@interface MTRTest{{asUpperCamelCase name}} : MTR{{asUpperCamelCase name}} - -{{#chip_server_cluster_attributes}} -{{#unless isWritableAttribute}} -- (void)writeAttribute{{asUpperCamelCase name}}WithValue:({{asObjectiveCType type parent.name}})value completionHandler:(StatusCompletion)completionHandler; -{{/unless}} -{{/chip_server_cluster_attributes}} - -@end - -{{/chip_client_clusters}} - -NS_ASSUME_NONNULL_END diff --git a/examples/darwin-framework-tool/templates/tests/partials/test_cluster.zapt b/examples/darwin-framework-tool/templates/tests/partials/test_cluster.zapt index 73669801d59441..3a0bb571dbfc95 100644 --- a/examples/darwin-framework-tool/templates/tests/partials/test_cluster.zapt +++ b/examples/darwin-framework-tool/templates/tests/partials/test_cluster.zapt @@ -133,8 +133,8 @@ class {{filename}}: public TestCommandBridge {{/chip_tests_item_parameters}} return {{command}}("{{identity}}", value); {{else}} - MTRDevice * device = GetDevice("{{identity}}"); - MTRTest{{asUpperCamelCase cluster}} * cluster = [[MTRTest{{asUpperCamelCase cluster}} alloc] initWithDevice:device endpoint:{{endpoint}} queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("{{identity}}"); + MTRBaseCluster{{asUpperCamelCase cluster}} * cluster = [[MTRBaseCluster{{asUpperCamelCase cluster}} alloc] initWithDevice:device endpoint:{{endpoint}} queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); {{#if isCommand}} @@ -156,7 +156,7 @@ class {{filename}}: public TestCommandBridge {{/chip_tests_item_parameters}} MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; [cluster subscribeAttribute{{asUpperCamelCase attribute}}WithMinInterval:[NSNumber numberWithUnsignedInt:minIntervalArgument] - maxInterval:[NSNumber numberWithUnsignedInt:maxIntervalArgument] + maxInterval:[NSNumber numberWithUnsignedInt:maxIntervalArgument] params:params subscriptionEstablished:^{ VerifyOrReturn(testSendCluster{{parent.filename}}_{{waitForReport.index}}_{{asUpperCamelCase waitForReport.command}}_Fulfilled, SetCommandExitStatus(CHIP_ERROR_INCORRECT_STATE)); diff --git a/examples/darwin-framework-tool/templates/tests/templates.json b/examples/darwin-framework-tool/templates/tests/templates.json index 0f8ea363c7e80e..4dad82fe395a2b 100644 --- a/examples/darwin-framework-tool/templates/tests/templates.json +++ b/examples/darwin-framework-tool/templates/tests/templates.json @@ -49,16 +49,6 @@ "path": "commands.zapt", "name": "Tests Commands header", "output": "test/Commands.h" - }, - { - "path": "MTRTestClustersObjc.zapt", - "name": "Test Objc API Header", - "output": "cluster/MTRTestClustersObjc.h" - }, - { - "path": "MTRTestClustersObjc-src.zapt", - "name": "Test Objc API", - "output": "cluster/MTRTestClustersObjc.mm" } ] } diff --git a/scripts/build/build_darwin_framework.py b/scripts/build/build_darwin_framework.py new file mode 100644 index 00000000000000..51e26b7d044a3c --- /dev/null +++ b/scripts/build/build_darwin_framework.py @@ -0,0 +1,63 @@ +#!/usr/bin/env -S python3 -B +# Copyright (c) 2022 Project Matter Authors +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +import argparse +import os +import subprocess + + +def run_command(command): + print("Running {}".format(command)) + return str(subprocess.check_output(command.split())) + + +def build_darwin_framework(args): + abs_path = os.path.abspath(args.out_path) + if not os.path.exists(abs_path): + os.mkdir(abs_path) + + command = "xcodebuild -target {target} -sdk macosx -project {project} CONFIGURATION_BUILD_DIR={outpath}".format( + target=args.target, project=args.project_path, outpath=abs_path) + command_result = run_command(command) + + print("Build Framework Result: {}".format(command_result)) + with open(args.log_path, "w") as f: + f.write(command_result) + + +if __name__ == "__main__": + parser = argparse.ArgumentParser( + description="Build the Matter Darwin framework") + parser.add_argument( + "--project_path", + default="src/darwin/Framework/Matter.xcodeproj", + help="Set the project path", + required=True, + ) + parser.add_argument( + "--out_path", + default="/tmp/macos_framework_output", + help="Output lpath for framework", + required=True, + ) + parser.add_argument("--target", + default="Matter", + help="Name of target to build", + required=True) + parser.add_argument("--log_path", + help="Output log file destination", + required=True) + + args = parser.parse_args() + build_darwin_framework(args) diff --git a/zzz_generated/darwin-framework-tool/zap-generated/cluster/CHIPTestClustersObjc.h b/zzz_generated/darwin-framework-tool/zap-generated/cluster/CHIPTestClustersObjc.h deleted file mode 100644 index 1cdc445b668776..00000000000000 --- a/zzz_generated/darwin-framework-tool/zap-generated/cluster/CHIPTestClustersObjc.h +++ /dev/null @@ -1,1607 +0,0 @@ -/* - * - * Copyright (c) 2022 Project CHIP Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// THIS FILE IS GENERATED BY ZAP - -#import - -@class CHIPDevice; - -NS_ASSUME_NONNULL_BEGIN - -/** - * Cluster Identify - * - */ -@interface CHIPTestIdentify : CHIPIdentify - -- (void)writeAttributeIdentifyTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Groups - * - */ -@interface CHIPTestGroups : CHIPGroups - -- (void)writeAttributeNameSupportWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Scenes - * - */ -@interface CHIPTestScenes : CHIPScenes - -- (void)writeAttributeSceneCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentSceneWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentGroupWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSceneValidWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeNameSupportWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeLastConfiguredByWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster On/Off - * - */ -@interface CHIPTestOnOff : CHIPOnOff - -- (void)writeAttributeOnOffWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGlobalSceneControlWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster On/off Switch Configuration - * - */ -@interface CHIPTestOnOffSwitchConfiguration : CHIPOnOffSwitchConfiguration - -- (void)writeAttributeSwitchTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Level Control - * - */ -@interface CHIPTestLevelControl : CHIPLevelControl - -- (void)writeAttributeCurrentLevelWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRemainingTimeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMinLevelWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMaxLevelWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentFrequencyWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMinFrequencyWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMaxFrequencyWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Binary Input (Basic) - * - */ -@interface CHIPTestBinaryInputBasic : CHIPBinaryInputBasic - -- (void)writeAttributePolarityWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeStatusFlagsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeApplicationTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Descriptor - * - */ -@interface CHIPTestDescriptor : CHIPDescriptor - -- (void)writeAttributeDeviceListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeServerListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClientListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePartsListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Binding - * - */ -@interface CHIPTestBinding : CHIPBinding - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Access Control - * - */ -@interface CHIPTestAccessControl : CHIPAccessControl - -- (void)writeAttributeSubjectsPerAccessControlEntryWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTargetsPerAccessControlEntryWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAccessControlEntriesPerFabricWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Bridged Actions - * - */ -@interface CHIPTestBridgedActions : CHIPBridgedActions - -- (void)writeAttributeActionListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeEndpointListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSetupUrlWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Basic - * - */ -@interface CHIPTestBasic : CHIPBasic - -- (void)writeAttributeDataModelRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeVendorNameWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeVendorIDWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeProductNameWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeProductIDWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeHardwareVersionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeHardwareVersionStringWithValue:(NSString * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSoftwareVersionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSoftwareVersionStringWithValue:(NSString * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeManufacturingDateWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePartNumberWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeProductURLWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeProductLabelWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSerialNumberWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeReachableWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeUniqueIDWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCapabilityMinimaWithValue:(CHIPBasicClusterCapabilityMinimaStruct * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster OTA Software Update Provider - * - */ -@interface CHIPTestOtaSoftwareUpdateProvider : CHIPOtaSoftwareUpdateProvider - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster OTA Software Update Requestor - * - */ -@interface CHIPTestOtaSoftwareUpdateRequestor : CHIPOtaSoftwareUpdateRequestor - -- (void)writeAttributeUpdatePossibleWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeUpdateStateWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeUpdateStateProgressWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Localization Configuration - * - */ -@interface CHIPTestLocalizationConfiguration : CHIPLocalizationConfiguration - -- (void)writeAttributeSupportedLocalesWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Time Format Localization - * - */ -@interface CHIPTestTimeFormatLocalization : CHIPTimeFormatLocalization - -- (void)writeAttributeSupportedCalendarTypesWithValue:(NSArray * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Unit Localization - * - */ -@interface CHIPTestUnitLocalization : CHIPUnitLocalization - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Power Source Configuration - * - */ -@interface CHIPTestPowerSourceConfiguration : CHIPPowerSourceConfiguration - -- (void)writeAttributeSourcesWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Power Source - * - */ -@interface CHIPTestPowerSource : CHIPPowerSource - -- (void)writeAttributeStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeOrderWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDescriptionWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeWiredAssessedInputVoltageWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeWiredAssessedInputFrequencyWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeWiredCurrentTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeWiredAssessedCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeWiredNominalVoltageWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeWiredMaximumCurrentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeWiredPresentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeActiveWiredFaultsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBatteryVoltageWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBatteryPercentRemainingWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBatteryTimeRemainingWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBatteryChargeLevelWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBatteryReplacementNeededWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBatteryReplaceabilityWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBatteryPresentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeActiveBatteryFaultsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBatteryReplacementDescriptionWithValue:(NSString * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBatteryCommonDesignationWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBatteryANSIDesignationWithValue:(NSString * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBatteryIECDesignationWithValue:(NSString * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBatteryApprovedChemistryWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBatteryCapacityWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBatteryQuantityWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBatteryChargeStateWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBatteryTimeToFullChargeWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBatteryFunctionalWhileChargingWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBatteryChargingCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeActiveBatteryChargeFaultsWithValue:(NSArray * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster General Commissioning - * - */ -@interface CHIPTestGeneralCommissioning : CHIPGeneralCommissioning - -- (void)writeAttributeBasicCommissioningInfoWithValue:(CHIPGeneralCommissioningClusterBasicCommissioningInfo * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRegulatoryConfigWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeLocationCapabilityWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSupportsConcurrentConnectionWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Network Commissioning - * - */ -@interface CHIPTestNetworkCommissioning : CHIPNetworkCommissioning - -- (void)writeAttributeMaxNetworksWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeNetworksWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeScanMaxTimeSecondsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeConnectMaxTimeSecondsWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeLastNetworkingStatusWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeLastNetworkIDWithValue:(NSData * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeLastConnectErrorValueWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Diagnostic Logs - * - */ -@interface CHIPTestDiagnosticLogs : CHIPDiagnosticLogs - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster General Diagnostics - * - */ -@interface CHIPTestGeneralDiagnostics : CHIPGeneralDiagnostics - -- (void)writeAttributeNetworkInterfacesWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRebootCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeUpTimeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTotalOperationalHoursWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBootReasonsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeActiveHardwareFaultsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeActiveRadioFaultsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeActiveNetworkFaultsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTestEventTriggersEnabledWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Software Diagnostics - * - */ -@interface CHIPTestSoftwareDiagnostics : CHIPSoftwareDiagnostics - -- (void)writeAttributeThreadMetricsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentHeapFreeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentHeapUsedWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentHeapHighWatermarkWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Thread Network Diagnostics - * - */ -@interface CHIPTestThreadNetworkDiagnostics : CHIPThreadNetworkDiagnostics - -- (void)writeAttributeChannelWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRoutingRoleWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeNetworkNameWithValue:(NSString * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePanIdWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeExtendedPanIdWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMeshLocalPrefixWithValue:(NSData * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeOverrunCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeNeighborTableListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRouteTableListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePartitionIdWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeWeightingWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDataVersionWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeStableDataVersionWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeLeaderRouterIdWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDetachedRoleCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeChildRoleCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRouterRoleCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeLeaderRoleCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttachAttemptCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePartitionIdChangeCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBetterPartitionAttachAttemptCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeParentChangeCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTxTotalCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTxUnicastCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTxBroadcastCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTxAckRequestedCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTxAckedCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTxNoAckRequestedCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTxDataCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTxDataPollCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTxBeaconCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTxBeaconRequestCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTxOtherCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTxRetryCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTxDirectMaxRetryExpiryCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTxIndirectMaxRetryExpiryCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTxErrCcaCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTxErrAbortCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTxErrBusyChannelCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRxTotalCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRxUnicastCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRxBroadcastCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRxDataCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRxDataPollCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRxBeaconCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRxBeaconRequestCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRxOtherCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRxAddressFilteredCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRxDestAddrFilteredCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRxDuplicatedCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRxErrNoFrameCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRxErrUnknownNeighborCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRxErrInvalidSrcAddrCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRxErrSecCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRxErrFcsCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRxErrOtherCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeActiveTimestampWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePendingTimestampWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDelayWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSecurityPolicyWithValue:(CHIPThreadNetworkDiagnosticsClusterSecurityPolicy * _Nullable)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeChannelMaskWithValue:(NSData * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeOperationalDatasetComponentsWithValue: - (CHIPThreadNetworkDiagnosticsClusterOperationalDatasetComponents * _Nullable)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeActiveNetworkFaultsListWithValue:(NSArray * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster WiFi Network Diagnostics - * - */ -@interface CHIPTestWiFiNetworkDiagnostics : CHIPWiFiNetworkDiagnostics - -- (void)writeAttributeBssidWithValue:(NSData * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSecurityTypeWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeWiFiVersionWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeChannelNumberWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRssiWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBeaconLostCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBeaconRxCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePacketMulticastRxCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePacketMulticastTxCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePacketUnicastRxCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePacketUnicastTxCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentMaxRateWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeOverrunCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Ethernet Network Diagnostics - * - */ -@interface CHIPTestEthernetNetworkDiagnostics : CHIPEthernetNetworkDiagnostics - -- (void)writeAttributePHYRateWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFullDuplexWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePacketRxCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePacketTxCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTxErrCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCollisionCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeOverrunCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCarrierDetectWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTimeSinceResetWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Bridged Device Basic - * - */ -@interface CHIPTestBridgedDeviceBasic : CHIPBridgedDeviceBasic - -- (void)writeAttributeVendorNameWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeVendorIDWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeProductNameWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeHardwareVersionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeHardwareVersionStringWithValue:(NSString * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSoftwareVersionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSoftwareVersionStringWithValue:(NSString * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeManufacturingDateWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePartNumberWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeProductURLWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeProductLabelWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSerialNumberWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeReachableWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeUniqueIDWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Switch - * - */ -@interface CHIPTestSwitch : CHIPSwitch - -- (void)writeAttributeNumberOfPositionsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentPositionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMultiPressMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster AdministratorCommissioning - * - */ -@interface CHIPTestAdministratorCommissioning : CHIPAdministratorCommissioning - -- (void)writeAttributeWindowStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAdminFabricIndexWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAdminVendorIdWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Operational Credentials - * - */ -@interface CHIPTestOperationalCredentials : CHIPOperationalCredentials - -- (void)writeAttributeNOCsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFabricsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSupportedFabricsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCommissionedFabricsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTrustedRootCertificatesWithValue:(NSArray * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentFabricIndexWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Group Key Management - * - */ -@interface CHIPTestGroupKeyManagement : CHIPGroupKeyManagement - -- (void)writeAttributeGroupTableWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMaxGroupsPerFabricWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMaxGroupKeysPerFabricWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Fixed Label - * - */ -@interface CHIPTestFixedLabel : CHIPFixedLabel - -- (void)writeAttributeLabelListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster User Label - * - */ -@interface CHIPTestUserLabel : CHIPUserLabel - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Boolean State - * - */ -@interface CHIPTestBooleanState : CHIPBooleanState - -- (void)writeAttributeStateValueWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Mode Select - * - */ -@interface CHIPTestModeSelect : CHIPModeSelect - -- (void)writeAttributeDescriptionWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeStandardNamespaceWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSupportedModesWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentModeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Door Lock - * - */ -@interface CHIPTestDoorLock : CHIPDoorLock - -- (void)writeAttributeLockStateWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeLockTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeActuatorEnabledWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDoorStateWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeNumberOfTotalUsersSupportedWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeNumberOfPINUsersSupportedWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeNumberOfRFIDUsersSupportedWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeNumberOfWeekDaySchedulesSupportedPerUserWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeNumberOfYearDaySchedulesSupportedPerUserWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeNumberOfHolidaySchedulesSupportedWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMaxPINCodeLengthWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMinPINCodeLengthWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMaxRFIDCodeLengthWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMinRFIDCodeLengthWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCredentialRulesSupportWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeNumberOfCredentialsSupportedPerUserWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSupportedOperatingModesWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDefaultConfigurationRegisterWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Window Covering - * - */ -@interface CHIPTestWindowCovering : CHIPWindowCovering - -- (void)writeAttributeTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePhysicalClosedLimitLiftWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePhysicalClosedLimitTiltWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentPositionLiftWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentPositionTiltWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeNumberOfActuationsLiftWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeNumberOfActuationsTiltWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeConfigStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentPositionLiftPercentageWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentPositionTiltPercentageWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeOperationalStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTargetPositionLiftPercent100thsWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTargetPositionTiltPercent100thsWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeEndProductTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentPositionLiftPercent100thsWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentPositionTiltPercent100thsWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeInstalledOpenLimitLiftWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeInstalledClosedLimitLiftWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeInstalledOpenLimitTiltWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeInstalledClosedLimitTiltWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSafetyStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Barrier Control - * - */ -@interface CHIPTestBarrierControl : CHIPBarrierControl - -- (void)writeAttributeBarrierMovingStateWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBarrierSafetyStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBarrierCapabilitiesWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBarrierPositionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Pump Configuration and Control - * - */ -@interface CHIPTestPumpConfigurationAndControl : CHIPPumpConfigurationAndControl - -- (void)writeAttributeMaxPressureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMaxSpeedWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMaxFlowWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMinConstPressureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMaxConstPressureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMinCompPressureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMaxCompPressureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMinConstSpeedWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMaxConstSpeedWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMinConstFlowWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMaxConstFlowWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMinConstTempWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMaxConstTempWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePumpStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeEffectiveOperationModeWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeEffectiveControlModeWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCapacityWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSpeedWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePowerWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Thermostat - * - */ -@interface CHIPTestThermostat : CHIPThermostat - -- (void)writeAttributeLocalTemperatureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeOutdoorTemperatureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeOccupancyWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAbsMinHeatSetpointLimitWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAbsMaxHeatSetpointLimitWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAbsMinCoolSetpointLimitWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAbsMaxCoolSetpointLimitWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePICoolingDemandWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePIHeatingDemandWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeThermostatRunningModeWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeStartOfWeekWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeNumberOfWeeklyTransitionsWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeNumberOfDailyTransitionsWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeThermostatRunningStateWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSetpointChangeSourceWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSetpointChangeAmountWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSetpointChangeSourceTimestampWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeOccupiedSetbackMinWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeOccupiedSetbackMaxWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeUnoccupiedSetbackMinWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeUnoccupiedSetbackMaxWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeACCoilTemperatureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Fan Control - * - */ -@interface CHIPTestFanControl : CHIPFanControl - -- (void)writeAttributePercentCurrentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSpeedMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSpeedCurrentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRockSupportWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeWindSupportWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Thermostat User Interface Configuration - * - */ -@interface CHIPTestThermostatUserInterfaceConfiguration : CHIPThermostatUserInterfaceConfiguration - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Color Control - * - */ -@interface CHIPTestColorControl : CHIPColorControl - -- (void)writeAttributeCurrentHueWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentSaturationWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRemainingTimeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentXWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentYWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDriftCompensationWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCompensationTextWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeColorTemperatureWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeColorModeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeNumberOfPrimariesWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePrimary1XWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePrimary1YWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePrimary1IntensityWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePrimary2XWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePrimary2YWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePrimary2IntensityWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePrimary3XWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePrimary3YWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePrimary3IntensityWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePrimary4XWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePrimary4YWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePrimary4IntensityWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePrimary5XWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePrimary5YWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePrimary5IntensityWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePrimary6XWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePrimary6YWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePrimary6IntensityWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeEnhancedCurrentHueWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeEnhancedColorModeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeColorLoopActiveWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeColorLoopDirectionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeColorLoopTimeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeColorLoopStartEnhancedHueWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeColorLoopStoredEnhancedHueWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeColorCapabilitiesWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeColorTempPhysicalMinMiredsWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeColorTempPhysicalMaxMiredsWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCoupleColorTempToLevelMinMiredsWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Illuminance Measurement - * - */ -@interface CHIPTestIlluminanceMeasurement : CHIPIlluminanceMeasurement - -- (void)writeAttributeMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMinMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMaxMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeToleranceWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeLightSensorTypeWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Temperature Measurement - * - */ -@interface CHIPTestTemperatureMeasurement : CHIPTemperatureMeasurement - -- (void)writeAttributeMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMinMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMaxMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeToleranceWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Pressure Measurement - * - */ -@interface CHIPTestPressureMeasurement : CHIPPressureMeasurement - -- (void)writeAttributeMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMinMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMaxMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeToleranceWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeScaledValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMinScaledValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMaxScaledValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeScaledToleranceWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeScaleWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Flow Measurement - * - */ -@interface CHIPTestFlowMeasurement : CHIPFlowMeasurement - -- (void)writeAttributeMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMinMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMaxMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeToleranceWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Relative Humidity Measurement - * - */ -@interface CHIPTestRelativeHumidityMeasurement : CHIPRelativeHumidityMeasurement - -- (void)writeAttributeMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMinMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMaxMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeToleranceWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Occupancy Sensing - * - */ -@interface CHIPTestOccupancySensing : CHIPOccupancySensing - -- (void)writeAttributeOccupancyWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeOccupancySensorTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeOccupancySensorTypeBitmapWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Wake on LAN - * - */ -@interface CHIPTestWakeOnLan : CHIPWakeOnLan - -- (void)writeAttributeMACAddressWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Channel - * - */ -@interface CHIPTestChannel : CHIPChannel - -- (void)writeAttributeChannelListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeLineupWithValue:(CHIPChannelClusterLineupInfo * _Nullable)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentChannelWithValue:(CHIPChannelClusterChannelInfo * _Nullable)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Target Navigator - * - */ -@interface CHIPTestTargetNavigator : CHIPTargetNavigator - -- (void)writeAttributeTargetListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentTargetWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Media Playback - * - */ -@interface CHIPTestMediaPlayback : CHIPMediaPlayback - -- (void)writeAttributeCurrentStateWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeStartTimeWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDurationWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSampledPositionWithValue:(CHIPMediaPlaybackClusterPlaybackPosition * _Nullable)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePlaybackSpeedWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSeekRangeEndWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSeekRangeStartWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Media Input - * - */ -@interface CHIPTestMediaInput : CHIPMediaInput - -- (void)writeAttributeInputListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentInputWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Low Power - * - */ -@interface CHIPTestLowPower : CHIPLowPower - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Keypad Input - * - */ -@interface CHIPTestKeypadInput : CHIPKeypadInput - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Content Launcher - * - */ -@interface CHIPTestContentLauncher : CHIPContentLauncher - -- (void)writeAttributeAcceptHeaderWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Audio Output - * - */ -@interface CHIPTestAudioOutput : CHIPAudioOutput - -- (void)writeAttributeOutputListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentOutputWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Application Launcher - * - */ -@interface CHIPTestApplicationLauncher : CHIPApplicationLauncher - -- (void)writeAttributeCatalogListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Application Basic - * - */ -@interface CHIPTestApplicationBasic : CHIPApplicationBasic - -- (void)writeAttributeVendorNameWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeVendorIDWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeApplicationNameWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeProductIDWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeApplicationWithValue:(CHIPApplicationBasicClusterApplicationBasicApplication * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeApplicationVersionWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAllowedVendorListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Account Login - * - */ -@interface CHIPTestAccountLogin : CHIPAccountLogin - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Electrical Measurement - * - */ -@interface CHIPTestElectricalMeasurement : CHIPElectricalMeasurement - -- (void)writeAttributeMeasurementTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDcVoltageWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDcVoltageMinWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDcVoltageMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDcCurrentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDcCurrentMinWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDcCurrentMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDcPowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDcPowerMinWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDcPowerMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDcVoltageMultiplierWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDcVoltageDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDcCurrentMultiplierWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDcCurrentDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDcPowerMultiplierWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDcPowerDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcFrequencyWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcFrequencyMinWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcFrequencyMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeNeutralCurrentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTotalActivePowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTotalReactivePowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTotalApparentPowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMeasured1stHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMeasured3rdHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMeasured5thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMeasured7thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMeasured9thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMeasured11thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMeasuredPhase1stHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMeasuredPhase3rdHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMeasuredPhase5thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMeasuredPhase7thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMeasuredPhase9thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMeasuredPhase11thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcFrequencyMultiplierWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcFrequencyDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePowerMultiplierWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePowerDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeHarmonicCurrentMultiplierWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePhaseHarmonicCurrentMultiplierWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeInstantaneousVoltageWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeInstantaneousLineCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeInstantaneousActiveCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeInstantaneousReactiveCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeInstantaneousPowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsVoltageWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsVoltageMinWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsVoltageMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsCurrentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsCurrentMinWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsCurrentMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeActivePowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeActivePowerMinWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeActivePowerMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeReactivePowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeApparentPowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePowerFactorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcVoltageMultiplierWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcVoltageDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcCurrentMultiplierWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcCurrentDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcPowerMultiplierWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcPowerDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeVoltageOverloadWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentOverloadWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcVoltageOverloadWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcCurrentOverloadWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcActivePowerOverloadWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcReactivePowerOverloadWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAverageRmsOverVoltageWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAverageRmsUnderVoltageWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsExtremeOverVoltageWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsExtremeUnderVoltageWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsVoltageSagWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsVoltageSwellWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeLineCurrentPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeActiveCurrentPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeReactiveCurrentPhaseBWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsVoltagePhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsVoltageMinPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsVoltageMaxPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsCurrentPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsCurrentMinPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsCurrentMaxPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeActivePowerPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeActivePowerMinPhaseBWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeActivePowerMaxPhaseBWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeReactivePowerPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeApparentPowerPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePowerFactorPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAverageRmsVoltageMeasurementPeriodPhaseBWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAverageRmsOverVoltageCounterPhaseBWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAverageRmsUnderVoltageCounterPhaseBWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsExtremeOverVoltagePeriodPhaseBWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsExtremeUnderVoltagePeriodPhaseBWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsVoltageSagPeriodPhaseBWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsVoltageSwellPeriodPhaseBWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeLineCurrentPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeActiveCurrentPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeReactiveCurrentPhaseCWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsVoltagePhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsVoltageMinPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsVoltageMaxPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsCurrentPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsCurrentMinPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsCurrentMaxPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeActivePowerPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeActivePowerMinPhaseCWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeActivePowerMaxPhaseCWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeReactivePowerPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeApparentPowerPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePowerFactorPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAverageRmsVoltageMeasurementPeriodPhaseCWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAverageRmsOverVoltageCounterPhaseCWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAverageRmsUnderVoltageCounterPhaseCWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsExtremeOverVoltagePeriodPhaseCWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsExtremeUnderVoltagePeriodPhaseCWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsVoltageSagPeriodPhaseCWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsVoltageSwellPeriodPhaseCWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Test Cluster - * - */ -@interface CHIPTestTestCluster : CHIPTestCluster - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -NS_ASSUME_NONNULL_END diff --git a/zzz_generated/darwin-framework-tool/zap-generated/cluster/CHIPTestClustersObjc.mm b/zzz_generated/darwin-framework-tool/zap-generated/cluster/CHIPTestClustersObjc.mm deleted file mode 100644 index 0186b2e90b463c..00000000000000 --- a/zzz_generated/darwin-framework-tool/zap-generated/cluster/CHIPTestClustersObjc.mm +++ /dev/null @@ -1,21876 +0,0 @@ -/* - * - * Copyright (c) 2022 Project CHIP Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// THIS FILE IS GENERATED BY ZAP -#import - -#import "CHIP/CHIP.h" - -#import "CHIPCallbackBridge_internal.h" // For CHIPDefaultSuccessCallbackBridge, etc -#import "CHIPCluster_internal.h" // For self.callbackQueue - -#import "zap-generated/cluster/CHIPTestClustersObjc.h" - -#include -#include - -using chip::Callback::Callback; -using chip::Callback::Cancelable; -using namespace chip::app::Clusters; - -@interface CHIPTestIdentify () -@property (readonly) chip::Controller::IdentifyCluster cppCluster; -@end - -@implementation CHIPTestIdentify - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeIdentifyTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Identify::Attributes::IdentifyType::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Identify::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Identify::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Identify::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Identify::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Identify::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestGroups () -@property (readonly) chip::Controller::GroupsCluster cppCluster; -@end - -@implementation CHIPTestGroups - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeNameSupportWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Groups::Attributes::NameSupport::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Groups::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Groups::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Groups::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Groups::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Groups::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestScenes () -@property (readonly) chip::Controller::ScenesCluster cppCluster; -@end - -@implementation CHIPTestScenes - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeSceneCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Scenes::Attributes::SceneCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentSceneWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Scenes::Attributes::CurrentScene::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentGroupWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Scenes::Attributes::CurrentGroup::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSceneValidWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Scenes::Attributes::SceneValid::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.boolValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeNameSupportWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Scenes::Attributes::NameSupport::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeLastConfiguredByWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Scenes::Attributes::LastConfiguredBy::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedLongLongValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Scenes::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Scenes::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Scenes::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Scenes::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Scenes::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestOnOff () -@property (readonly) chip::Controller::OnOffCluster cppCluster; -@end - -@implementation CHIPTestOnOff - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeOnOffWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OnOff::Attributes::OnOff::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.boolValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGlobalSceneControlWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OnOff::Attributes::GlobalSceneControl::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.boolValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OnOff::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OnOff::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OnOff::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OnOff::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OnOff::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestOnOffSwitchConfiguration () -@property (readonly) chip::Controller::OnOffSwitchConfigurationCluster cppCluster; -@end - -@implementation CHIPTestOnOffSwitchConfiguration - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeSwitchTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OnOffSwitchConfiguration::Attributes::SwitchType::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OnOffSwitchConfiguration::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OnOffSwitchConfiguration::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OnOffSwitchConfiguration::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OnOffSwitchConfiguration::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OnOffSwitchConfiguration::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestLevelControl () -@property (readonly) chip::Controller::LevelControlCluster cppCluster; -@end - -@implementation CHIPTestLevelControl - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeCurrentLevelWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LevelControl::Attributes::CurrentLevel::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRemainingTimeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LevelControl::Attributes::RemainingTime::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMinLevelWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LevelControl::Attributes::MinLevel::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMaxLevelWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LevelControl::Attributes::MaxLevel::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentFrequencyWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LevelControl::Attributes::CurrentFrequency::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMinFrequencyWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LevelControl::Attributes::MinFrequency::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMaxFrequencyWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LevelControl::Attributes::MaxFrequency::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LevelControl::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LevelControl::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LevelControl::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LevelControl::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LevelControl::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestBinaryInputBasic () -@property (readonly) chip::Controller::BinaryInputBasicCluster cppCluster; -@end - -@implementation CHIPTestBinaryInputBasic - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributePolarityWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BinaryInputBasic::Attributes::Polarity::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeStatusFlagsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BinaryInputBasic::Attributes::StatusFlags::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeApplicationTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BinaryInputBasic::Attributes::ApplicationType::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BinaryInputBasic::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BinaryInputBasic::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BinaryInputBasic::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BinaryInputBasic::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BinaryInputBasic::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestDescriptor () -@property (readonly) chip::Controller::DescriptorCluster cppCluster; -@end - -@implementation CHIPTestDescriptor - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeDeviceListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Descriptor::Attributes::DeviceList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[CHIPDescriptorClusterDeviceType class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (CHIPDescriptorClusterDeviceType *) value[i_0]; - listHolder_0->mList[i_0].type = element_0.type.unsignedIntValue; - listHolder_0->mList[i_0].revision = element_0.revision.unsignedShortValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeServerListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Descriptor::Attributes::ServerList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClientListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Descriptor::Attributes::ClientList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePartsListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Descriptor::Attributes::PartsList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedShortValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Descriptor::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Descriptor::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Descriptor::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Descriptor::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Descriptor::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestBinding () -@property (readonly) chip::Controller::BindingCluster cppCluster; -@end - -@implementation CHIPTestBinding - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Binding::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Binding::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Binding::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Binding::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Binding::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestAccessControl () -@property (readonly) chip::Controller::AccessControlCluster cppCluster; -@end - -@implementation CHIPTestAccessControl - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeSubjectsPerAccessControlEntryWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AccessControl::Attributes::SubjectsPerAccessControlEntry::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTargetsPerAccessControlEntryWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AccessControl::Attributes::TargetsPerAccessControlEntry::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAccessControlEntriesPerFabricWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AccessControl::Attributes::AccessControlEntriesPerFabric::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AccessControl::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AccessControl::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AccessControl::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AccessControl::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AccessControl::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestBridgedActions () -@property (readonly) chip::Controller::BridgedActionsCluster cppCluster; -@end - -@implementation CHIPTestBridgedActions - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeActionListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedActions::Attributes::ActionList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[CHIPBridgedActionsClusterActionStruct class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (CHIPBridgedActionsClusterActionStruct *) value[i_0]; - listHolder_0->mList[i_0].actionID = element_0.actionID.unsignedShortValue; - listHolder_0->mList[i_0].name = [self asCharSpan:element_0.name]; - listHolder_0->mList[i_0].type - = static_castmList[i_0].type)>>( - element_0.type.unsignedCharValue); - listHolder_0->mList[i_0].endpointListID = element_0.endpointListID.unsignedShortValue; - listHolder_0->mList[i_0].supportedCommands = element_0.supportedCommands.unsignedShortValue; - listHolder_0->mList[i_0].status - = static_castmList[i_0].status)>>( - element_0.status.unsignedCharValue); - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeEndpointListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedActions::Attributes::EndpointList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[CHIPBridgedActionsClusterEndpointListStruct class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (CHIPBridgedActionsClusterEndpointListStruct *) value[i_0]; - listHolder_0->mList[i_0].endpointListID = element_0.endpointListID.unsignedShortValue; - listHolder_0->mList[i_0].name = [self asCharSpan:element_0.name]; - listHolder_0->mList[i_0].type - = static_castmList[i_0].type)>>( - element_0.type.unsignedCharValue); - { - using ListType_2 = std::remove_reference_tmList[i_0].endpoints)>; - using ListMemberType_2 = ListMemberTypeGetter::Type; - if (element_0.endpoints.count != 0) { - auto * listHolder_2 = new ListHolder(element_0.endpoints.count); - if (listHolder_2 == nullptr || listHolder_2->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_2); - for (size_t i_2 = 0; i_2 < element_0.endpoints.count; ++i_2) { - if (![element_0.endpoints[i_2] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_2 = (NSNumber *) element_0.endpoints[i_2]; - listHolder_2->mList[i_2] = element_2.unsignedShortValue; - } - listHolder_0->mList[i_0].endpoints = ListType_2(listHolder_2->mList, element_0.endpoints.count); - } else { - listHolder_0->mList[i_0].endpoints = ListType_2(); - } - } - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSetupUrlWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedActions::Attributes::SetupUrl::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedActions::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedActions::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedActions::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedActions::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedActions::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestBasic () -@property (readonly) chip::Controller::BasicCluster cppCluster; -@end - -@implementation CHIPTestBasic - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeDataModelRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Basic::Attributes::DataModelRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeVendorNameWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Basic::Attributes::VendorName::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeVendorIDWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Basic::Attributes::VendorID::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedShortValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeProductNameWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Basic::Attributes::ProductName::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeProductIDWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Basic::Attributes::ProductID::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeHardwareVersionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Basic::Attributes::HardwareVersion::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeHardwareVersionStringWithValue:(NSString * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Basic::Attributes::HardwareVersionString::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSoftwareVersionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Basic::Attributes::SoftwareVersion::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSoftwareVersionStringWithValue:(NSString * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Basic::Attributes::SoftwareVersionString::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeManufacturingDateWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Basic::Attributes::ManufacturingDate::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePartNumberWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Basic::Attributes::PartNumber::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeProductURLWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Basic::Attributes::ProductURL::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeProductLabelWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Basic::Attributes::ProductLabel::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSerialNumberWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Basic::Attributes::SerialNumber::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeReachableWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Basic::Attributes::Reachable::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.boolValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeUniqueIDWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Basic::Attributes::UniqueID::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCapabilityMinimaWithValue:(CHIPBasicClusterCapabilityMinimaStruct * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Basic::Attributes::CapabilityMinima::TypeInfo; - TypeInfo::Type cppValue; - cppValue.caseSessionsPerFabric = value.caseSessionsPerFabric.unsignedShortValue; - cppValue.subscriptionsPerFabric = value.subscriptionsPerFabric.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Basic::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Basic::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Basic::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Basic::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Basic::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestOtaSoftwareUpdateProvider () -@property (readonly) chip::Controller::OtaSoftwareUpdateProviderCluster cppCluster; -@end - -@implementation CHIPTestOtaSoftwareUpdateProvider - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OtaSoftwareUpdateProvider::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OtaSoftwareUpdateProvider::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OtaSoftwareUpdateProvider::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OtaSoftwareUpdateProvider::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OtaSoftwareUpdateProvider::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestOtaSoftwareUpdateRequestor () -@property (readonly) chip::Controller::OtaSoftwareUpdateRequestorCluster cppCluster; -@end - -@implementation CHIPTestOtaSoftwareUpdateRequestor - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeUpdatePossibleWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::UpdatePossible::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.boolValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeUpdateStateWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::UpdateState::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedCharValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeUpdateStateProgressWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::UpdateStateProgress::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedCharValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestLocalizationConfiguration () -@property (readonly) chip::Controller::LocalizationConfigurationCluster cppCluster; -@end - -@implementation CHIPTestLocalizationConfiguration - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeSupportedLocalesWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LocalizationConfiguration::Attributes::SupportedLocales::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSString class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSString *) value[i_0]; - listHolder_0->mList[i_0] = [self asCharSpan:element_0]; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LocalizationConfiguration::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LocalizationConfiguration::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LocalizationConfiguration::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LocalizationConfiguration::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LocalizationConfiguration::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestTimeFormatLocalization () -@property (readonly) chip::Controller::TimeFormatLocalizationCluster cppCluster; -@end - -@implementation CHIPTestTimeFormatLocalization - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeSupportedCalendarTypesWithValue:(NSArray * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TimeFormatLocalization::Attributes::SupportedCalendarTypes::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] - = static_castmList[i_0])>>(element_0.unsignedCharValue); - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TimeFormatLocalization::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TimeFormatLocalization::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TimeFormatLocalization::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TimeFormatLocalization::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TimeFormatLocalization::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestUnitLocalization () -@property (readonly) chip::Controller::UnitLocalizationCluster cppCluster; -@end - -@implementation CHIPTestUnitLocalization - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = UnitLocalization::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = UnitLocalization::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = UnitLocalization::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = UnitLocalization::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = UnitLocalization::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestPowerSourceConfiguration () -@property (readonly) chip::Controller::PowerSourceConfigurationCluster cppCluster; -@end - -@implementation CHIPTestPowerSourceConfiguration - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeSourcesWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSourceConfiguration::Attributes::Sources::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedCharValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSourceConfiguration::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSourceConfiguration::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSourceConfiguration::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSourceConfiguration::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSourceConfiguration::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestPowerSource () -@property (readonly) chip::Controller::PowerSourceCluster cppCluster; -@end - -@implementation CHIPTestPowerSource - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::Status::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeOrderWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::Order::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDescriptionWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::Description::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeWiredAssessedInputVoltageWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::WiredAssessedInputVoltage::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeWiredAssessedInputFrequencyWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::WiredAssessedInputFrequency::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeWiredCurrentTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::WiredCurrentType::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeWiredAssessedCurrentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::WiredAssessedCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeWiredNominalVoltageWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::WiredNominalVoltage::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeWiredMaximumCurrentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::WiredMaximumCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeWiredPresentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::WiredPresent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.boolValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeActiveWiredFaultsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::ActiveWiredFaults::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedCharValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBatteryVoltageWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::BatteryVoltage::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBatteryPercentRemainingWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::BatteryPercentRemaining::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBatteryTimeRemainingWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::BatteryTimeRemaining::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBatteryChargeLevelWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::BatteryChargeLevel::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBatteryReplacementNeededWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::BatteryReplacementNeeded::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.boolValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBatteryReplaceabilityWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::BatteryReplaceability::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBatteryPresentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::BatteryPresent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.boolValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeActiveBatteryFaultsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::ActiveBatteryFaults::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedCharValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBatteryReplacementDescriptionWithValue:(NSString * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::BatteryReplacementDescription::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBatteryCommonDesignationWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::BatteryCommonDesignation::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBatteryANSIDesignationWithValue:(NSString * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::BatteryANSIDesignation::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBatteryIECDesignationWithValue:(NSString * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::BatteryIECDesignation::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBatteryApprovedChemistryWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::BatteryApprovedChemistry::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBatteryCapacityWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::BatteryCapacity::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBatteryQuantityWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::BatteryQuantity::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBatteryChargeStateWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::BatteryChargeState::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBatteryTimeToFullChargeWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::BatteryTimeToFullCharge::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBatteryFunctionalWhileChargingWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::BatteryFunctionalWhileCharging::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.boolValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBatteryChargingCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::BatteryChargingCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeActiveBatteryChargeFaultsWithValue:(NSArray * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::ActiveBatteryChargeFaults::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedCharValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestGeneralCommissioning () -@property (readonly) chip::Controller::GeneralCommissioningCluster cppCluster; -@end - -@implementation CHIPTestGeneralCommissioning - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeBasicCommissioningInfoWithValue:(CHIPGeneralCommissioningClusterBasicCommissioningInfo * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralCommissioning::Attributes::BasicCommissioningInfo::TypeInfo; - TypeInfo::Type cppValue; - cppValue.failSafeExpiryLengthSeconds = value.failSafeExpiryLengthSeconds.unsignedShortValue; - cppValue.maxCumulativeFailsafeSeconds = value.maxCumulativeFailsafeSeconds.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRegulatoryConfigWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralCommissioning::Attributes::RegulatoryConfig::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedCharValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeLocationCapabilityWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralCommissioning::Attributes::LocationCapability::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedCharValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSupportsConcurrentConnectionWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralCommissioning::Attributes::SupportsConcurrentConnection::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.boolValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralCommissioning::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralCommissioning::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralCommissioning::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralCommissioning::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralCommissioning::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestNetworkCommissioning () -@property (readonly) chip::Controller::NetworkCommissioningCluster cppCluster; -@end - -@implementation CHIPTestNetworkCommissioning - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeMaxNetworksWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = NetworkCommissioning::Attributes::MaxNetworks::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeNetworksWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = NetworkCommissioning::Attributes::Networks::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[CHIPNetworkCommissioningClusterNetworkInfo class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (CHIPNetworkCommissioningClusterNetworkInfo *) value[i_0]; - listHolder_0->mList[i_0].networkID = [self asByteSpan:element_0.networkID]; - listHolder_0->mList[i_0].connected = element_0.connected.boolValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeScanMaxTimeSecondsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = NetworkCommissioning::Attributes::ScanMaxTimeSeconds::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeConnectMaxTimeSecondsWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = NetworkCommissioning::Attributes::ConnectMaxTimeSeconds::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeLastNetworkingStatusWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = NetworkCommissioning::Attributes::LastNetworkingStatus::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = static_cast>(value.unsignedCharValue); - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeLastNetworkIDWithValue:(NSData * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = NetworkCommissioning::Attributes::LastNetworkID::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = [self asByteSpan:value]; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeLastConnectErrorValueWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = NetworkCommissioning::Attributes::LastConnectErrorValue::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.intValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = NetworkCommissioning::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = NetworkCommissioning::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = NetworkCommissioning::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = NetworkCommissioning::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = NetworkCommissioning::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestDiagnosticLogs () -@property (readonly) chip::Controller::DiagnosticLogsCluster cppCluster; -@end - -@implementation CHIPTestDiagnosticLogs - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DiagnosticLogs::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DiagnosticLogs::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DiagnosticLogs::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DiagnosticLogs::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DiagnosticLogs::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestGeneralDiagnostics () -@property (readonly) chip::Controller::GeneralDiagnosticsCluster cppCluster; -@end - -@implementation CHIPTestGeneralDiagnostics - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeNetworkInterfacesWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralDiagnostics::Attributes::NetworkInterfaces::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[CHIPGeneralDiagnosticsClusterNetworkInterfaceType class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (CHIPGeneralDiagnosticsClusterNetworkInterfaceType *) value[i_0]; - listHolder_0->mList[i_0].name = [self asCharSpan:element_0.name]; - listHolder_0->mList[i_0].isOperational = element_0.isOperational.boolValue; - if (element_0.offPremiseServicesReachableIPv4 == nil) { - listHolder_0->mList[i_0].offPremiseServicesReachableIPv4.SetNull(); - } else { - auto & nonNullValue_2 = listHolder_0->mList[i_0].offPremiseServicesReachableIPv4.SetNonNull(); - nonNullValue_2 = element_0.offPremiseServicesReachableIPv4.boolValue; - } - if (element_0.offPremiseServicesReachableIPv6 == nil) { - listHolder_0->mList[i_0].offPremiseServicesReachableIPv6.SetNull(); - } else { - auto & nonNullValue_2 = listHolder_0->mList[i_0].offPremiseServicesReachableIPv6.SetNonNull(); - nonNullValue_2 = element_0.offPremiseServicesReachableIPv6.boolValue; - } - listHolder_0->mList[i_0].hardwareAddress = [self asByteSpan:element_0.hardwareAddress]; - { - using ListType_2 = std::remove_reference_tmList[i_0].IPv4Addresses)>; - using ListMemberType_2 = ListMemberTypeGetter::Type; - if (element_0.iPv4Addresses.count != 0) { - auto * listHolder_2 = new ListHolder(element_0.iPv4Addresses.count); - if (listHolder_2 == nullptr || listHolder_2->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_2); - for (size_t i_2 = 0; i_2 < element_0.iPv4Addresses.count; ++i_2) { - if (![element_0.iPv4Addresses[i_2] isKindOfClass:[NSData class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_2 = (NSData *) element_0.iPv4Addresses[i_2]; - listHolder_2->mList[i_2] = [self asByteSpan:element_2]; - } - listHolder_0->mList[i_0].IPv4Addresses - = ListType_2(listHolder_2->mList, element_0.iPv4Addresses.count); - } else { - listHolder_0->mList[i_0].IPv4Addresses = ListType_2(); - } - } - { - using ListType_2 = std::remove_reference_tmList[i_0].IPv6Addresses)>; - using ListMemberType_2 = ListMemberTypeGetter::Type; - if (element_0.iPv6Addresses.count != 0) { - auto * listHolder_2 = new ListHolder(element_0.iPv6Addresses.count); - if (listHolder_2 == nullptr || listHolder_2->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_2); - for (size_t i_2 = 0; i_2 < element_0.iPv6Addresses.count; ++i_2) { - if (![element_0.iPv6Addresses[i_2] isKindOfClass:[NSData class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_2 = (NSData *) element_0.iPv6Addresses[i_2]; - listHolder_2->mList[i_2] = [self asByteSpan:element_2]; - } - listHolder_0->mList[i_0].IPv6Addresses - = ListType_2(listHolder_2->mList, element_0.iPv6Addresses.count); - } else { - listHolder_0->mList[i_0].IPv6Addresses = ListType_2(); - } - } - listHolder_0->mList[i_0].type - = static_castmList[i_0].type)>>( - element_0.type.unsignedCharValue); - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRebootCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralDiagnostics::Attributes::RebootCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeUpTimeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralDiagnostics::Attributes::UpTime::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedLongLongValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTotalOperationalHoursWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralDiagnostics::Attributes::TotalOperationalHours::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBootReasonsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralDiagnostics::Attributes::BootReasons::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeActiveHardwareFaultsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralDiagnostics::Attributes::ActiveHardwareFaults::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedCharValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeActiveRadioFaultsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralDiagnostics::Attributes::ActiveRadioFaults::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedCharValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeActiveNetworkFaultsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralDiagnostics::Attributes::ActiveNetworkFaults::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedCharValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTestEventTriggersEnabledWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralDiagnostics::Attributes::TestEventTriggersEnabled::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.boolValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralDiagnostics::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralDiagnostics::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralDiagnostics::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralDiagnostics::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralDiagnostics::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestSoftwareDiagnostics () -@property (readonly) chip::Controller::SoftwareDiagnosticsCluster cppCluster; -@end - -@implementation CHIPTestSoftwareDiagnostics - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeThreadMetricsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = SoftwareDiagnostics::Attributes::ThreadMetrics::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[CHIPSoftwareDiagnosticsClusterThreadMetrics class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (CHIPSoftwareDiagnosticsClusterThreadMetrics *) value[i_0]; - listHolder_0->mList[i_0].id = element_0.id.unsignedLongLongValue; - if (element_0.name != nil) { - auto & definedValue_2 = listHolder_0->mList[i_0].name.Emplace(); - definedValue_2 = [self asCharSpan:element_0.name]; - } - if (element_0.stackFreeCurrent != nil) { - auto & definedValue_2 = listHolder_0->mList[i_0].stackFreeCurrent.Emplace(); - definedValue_2 = element_0.stackFreeCurrent.unsignedIntValue; - } - if (element_0.stackFreeMinimum != nil) { - auto & definedValue_2 = listHolder_0->mList[i_0].stackFreeMinimum.Emplace(); - definedValue_2 = element_0.stackFreeMinimum.unsignedIntValue; - } - if (element_0.stackSize != nil) { - auto & definedValue_2 = listHolder_0->mList[i_0].stackSize.Emplace(); - definedValue_2 = element_0.stackSize.unsignedIntValue; - } - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentHeapFreeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = SoftwareDiagnostics::Attributes::CurrentHeapFree::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedLongLongValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentHeapUsedWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = SoftwareDiagnostics::Attributes::CurrentHeapUsed::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedLongLongValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentHeapHighWatermarkWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = SoftwareDiagnostics::Attributes::CurrentHeapHighWatermark::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedLongLongValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = SoftwareDiagnostics::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = SoftwareDiagnostics::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = SoftwareDiagnostics::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = SoftwareDiagnostics::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = SoftwareDiagnostics::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestThreadNetworkDiagnostics () -@property (readonly) chip::Controller::ThreadNetworkDiagnosticsCluster cppCluster; -@end - -@implementation CHIPTestThreadNetworkDiagnostics - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeChannelWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::Channel::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRoutingRoleWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::RoutingRole::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = static_cast>(value.unsignedCharValue); - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeNetworkNameWithValue:(NSString * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::NetworkName::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = [self asCharSpan:value]; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePanIdWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::PanId::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeExtendedPanIdWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::ExtendedPanId::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedLongLongValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMeshLocalPrefixWithValue:(NSData * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::MeshLocalPrefix::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = [self asByteSpan:value]; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeOverrunCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::OverrunCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedLongLongValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeNeighborTableListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::NeighborTableList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[CHIPThreadNetworkDiagnosticsClusterNeighborTable class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (CHIPThreadNetworkDiagnosticsClusterNeighborTable *) value[i_0]; - listHolder_0->mList[i_0].extAddress = element_0.extAddress.unsignedLongLongValue; - listHolder_0->mList[i_0].age = element_0.age.unsignedIntValue; - listHolder_0->mList[i_0].rloc16 = element_0.rloc16.unsignedShortValue; - listHolder_0->mList[i_0].linkFrameCounter = element_0.linkFrameCounter.unsignedIntValue; - listHolder_0->mList[i_0].mleFrameCounter = element_0.mleFrameCounter.unsignedIntValue; - listHolder_0->mList[i_0].lqi = element_0.lqi.unsignedCharValue; - if (element_0.averageRssi == nil) { - listHolder_0->mList[i_0].averageRssi.SetNull(); - } else { - auto & nonNullValue_2 = listHolder_0->mList[i_0].averageRssi.SetNonNull(); - nonNullValue_2 = element_0.averageRssi.charValue; - } - if (element_0.lastRssi == nil) { - listHolder_0->mList[i_0].lastRssi.SetNull(); - } else { - auto & nonNullValue_2 = listHolder_0->mList[i_0].lastRssi.SetNonNull(); - nonNullValue_2 = element_0.lastRssi.charValue; - } - listHolder_0->mList[i_0].frameErrorRate = element_0.frameErrorRate.unsignedCharValue; - listHolder_0->mList[i_0].messageErrorRate = element_0.messageErrorRate.unsignedCharValue; - listHolder_0->mList[i_0].rxOnWhenIdle = element_0.rxOnWhenIdle.boolValue; - listHolder_0->mList[i_0].fullThreadDevice = element_0.fullThreadDevice.boolValue; - listHolder_0->mList[i_0].fullNetworkData = element_0.fullNetworkData.boolValue; - listHolder_0->mList[i_0].isChild = element_0.isChild.boolValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRouteTableListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::RouteTableList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[CHIPThreadNetworkDiagnosticsClusterRouteTable class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (CHIPThreadNetworkDiagnosticsClusterRouteTable *) value[i_0]; - listHolder_0->mList[i_0].extAddress = element_0.extAddress.unsignedLongLongValue; - listHolder_0->mList[i_0].rloc16 = element_0.rloc16.unsignedShortValue; - listHolder_0->mList[i_0].routerId = element_0.routerId.unsignedCharValue; - listHolder_0->mList[i_0].nextHop = element_0.nextHop.unsignedCharValue; - listHolder_0->mList[i_0].pathCost = element_0.pathCost.unsignedCharValue; - listHolder_0->mList[i_0].LQIIn = element_0.lqiIn.unsignedCharValue; - listHolder_0->mList[i_0].LQIOut = element_0.lqiOut.unsignedCharValue; - listHolder_0->mList[i_0].age = element_0.age.unsignedCharValue; - listHolder_0->mList[i_0].allocated = element_0.allocated.boolValue; - listHolder_0->mList[i_0].linkEstablished = element_0.linkEstablished.boolValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePartitionIdWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::PartitionId::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedIntValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeWeightingWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::Weighting::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedCharValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDataVersionWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::DataVersion::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedCharValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeStableDataVersionWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::StableDataVersion::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedCharValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeLeaderRouterIdWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::LeaderRouterId::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedCharValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDetachedRoleCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::DetachedRoleCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeChildRoleCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::ChildRoleCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRouterRoleCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::RouterRoleCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeLeaderRoleCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::LeaderRoleCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttachAttemptCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::AttachAttemptCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePartitionIdChangeCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::PartitionIdChangeCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBetterPartitionAttachAttemptCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::BetterPartitionAttachAttemptCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeParentChangeCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::ParentChangeCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTxTotalCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxTotalCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTxUnicastCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxUnicastCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTxBroadcastCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxBroadcastCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTxAckRequestedCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxAckRequestedCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTxAckedCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxAckedCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTxNoAckRequestedCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxNoAckRequestedCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTxDataCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxDataCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTxDataPollCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxDataPollCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTxBeaconCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxBeaconCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTxBeaconRequestCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxBeaconRequestCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTxOtherCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxOtherCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTxRetryCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxRetryCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTxDirectMaxRetryExpiryCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxDirectMaxRetryExpiryCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTxIndirectMaxRetryExpiryCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxIndirectMaxRetryExpiryCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTxErrCcaCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxErrCcaCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTxErrAbortCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxErrAbortCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTxErrBusyChannelCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxErrBusyChannelCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRxTotalCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxTotalCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRxUnicastCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxUnicastCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRxBroadcastCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxBroadcastCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRxDataCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxDataCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRxDataPollCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxDataPollCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRxBeaconCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxBeaconCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRxBeaconRequestCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxBeaconRequestCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRxOtherCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxOtherCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRxAddressFilteredCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxAddressFilteredCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRxDestAddrFilteredCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxDestAddrFilteredCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRxDuplicatedCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxDuplicatedCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRxErrNoFrameCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxErrNoFrameCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRxErrUnknownNeighborCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxErrUnknownNeighborCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRxErrInvalidSrcAddrCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxErrInvalidSrcAddrCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRxErrSecCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxErrSecCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRxErrFcsCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxErrFcsCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRxErrOtherCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxErrOtherCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeActiveTimestampWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::ActiveTimestamp::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedLongLongValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePendingTimestampWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::PendingTimestamp::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedLongLongValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDelayWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::Delay::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedIntValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSecurityPolicyWithValue:(CHIPThreadNetworkDiagnosticsClusterSecurityPolicy * _Nullable)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::SecurityPolicy::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0.rotationTime = value.rotationTime.unsignedShortValue; - nonNullValue_0.flags = value.flags.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeChannelMaskWithValue:(NSData * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::ChannelMask::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = [self asByteSpan:value]; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeOperationalDatasetComponentsWithValue: - (CHIPThreadNetworkDiagnosticsClusterOperationalDatasetComponents * _Nullable)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::OperationalDatasetComponents::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0.activeTimestampPresent = value.activeTimestampPresent.boolValue; - nonNullValue_0.pendingTimestampPresent = value.pendingTimestampPresent.boolValue; - nonNullValue_0.masterKeyPresent = value.masterKeyPresent.boolValue; - nonNullValue_0.networkNamePresent = value.networkNamePresent.boolValue; - nonNullValue_0.extendedPanIdPresent = value.extendedPanIdPresent.boolValue; - nonNullValue_0.meshLocalPrefixPresent = value.meshLocalPrefixPresent.boolValue; - nonNullValue_0.delayPresent = value.delayPresent.boolValue; - nonNullValue_0.panIdPresent = value.panIdPresent.boolValue; - nonNullValue_0.channelPresent = value.channelPresent.boolValue; - nonNullValue_0.pskcPresent = value.pskcPresent.boolValue; - nonNullValue_0.securityPolicyPresent = value.securityPolicyPresent.boolValue; - nonNullValue_0.channelMaskPresent = value.channelMaskPresent.boolValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeActiveNetworkFaultsListWithValue:(NSArray * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::ActiveNetworkFaultsList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] - = static_castmList[i_0])>>(element_0.unsignedCharValue); - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestWiFiNetworkDiagnostics () -@property (readonly) chip::Controller::WiFiNetworkDiagnosticsCluster cppCluster; -@end - -@implementation CHIPTestWiFiNetworkDiagnostics - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeBssidWithValue:(NSData * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WiFiNetworkDiagnostics::Attributes::Bssid::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = [self asByteSpan:value]; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSecurityTypeWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WiFiNetworkDiagnostics::Attributes::SecurityType::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = static_cast>(value.unsignedCharValue); - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeWiFiVersionWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WiFiNetworkDiagnostics::Attributes::WiFiVersion::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = static_cast>(value.unsignedCharValue); - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeChannelNumberWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WiFiNetworkDiagnostics::Attributes::ChannelNumber::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRssiWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WiFiNetworkDiagnostics::Attributes::Rssi::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.charValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBeaconLostCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WiFiNetworkDiagnostics::Attributes::BeaconLostCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBeaconRxCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WiFiNetworkDiagnostics::Attributes::BeaconRxCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePacketMulticastRxCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WiFiNetworkDiagnostics::Attributes::PacketMulticastRxCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePacketMulticastTxCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WiFiNetworkDiagnostics::Attributes::PacketMulticastTxCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePacketUnicastRxCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WiFiNetworkDiagnostics::Attributes::PacketUnicastRxCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePacketUnicastTxCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WiFiNetworkDiagnostics::Attributes::PacketUnicastTxCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentMaxRateWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WiFiNetworkDiagnostics::Attributes::CurrentMaxRate::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedLongLongValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeOverrunCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WiFiNetworkDiagnostics::Attributes::OverrunCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedLongLongValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WiFiNetworkDiagnostics::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WiFiNetworkDiagnostics::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WiFiNetworkDiagnostics::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WiFiNetworkDiagnostics::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WiFiNetworkDiagnostics::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestEthernetNetworkDiagnostics () -@property (readonly) chip::Controller::EthernetNetworkDiagnosticsCluster cppCluster; -@end - -@implementation CHIPTestEthernetNetworkDiagnostics - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributePHYRateWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = EthernetNetworkDiagnostics::Attributes::PHYRate::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = static_cast>(value.unsignedCharValue); - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFullDuplexWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = EthernetNetworkDiagnostics::Attributes::FullDuplex::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.boolValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePacketRxCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = EthernetNetworkDiagnostics::Attributes::PacketRxCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedLongLongValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePacketTxCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = EthernetNetworkDiagnostics::Attributes::PacketTxCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedLongLongValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTxErrCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = EthernetNetworkDiagnostics::Attributes::TxErrCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedLongLongValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCollisionCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = EthernetNetworkDiagnostics::Attributes::CollisionCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedLongLongValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeOverrunCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = EthernetNetworkDiagnostics::Attributes::OverrunCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedLongLongValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCarrierDetectWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = EthernetNetworkDiagnostics::Attributes::CarrierDetect::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.boolValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTimeSinceResetWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = EthernetNetworkDiagnostics::Attributes::TimeSinceReset::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedLongLongValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = EthernetNetworkDiagnostics::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = EthernetNetworkDiagnostics::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = EthernetNetworkDiagnostics::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = EthernetNetworkDiagnostics::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = EthernetNetworkDiagnostics::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestBridgedDeviceBasic () -@property (readonly) chip::Controller::BridgedDeviceBasicCluster cppCluster; -@end - -@implementation CHIPTestBridgedDeviceBasic - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeVendorNameWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedDeviceBasic::Attributes::VendorName::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeVendorIDWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedDeviceBasic::Attributes::VendorID::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedShortValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeProductNameWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedDeviceBasic::Attributes::ProductName::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeHardwareVersionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedDeviceBasic::Attributes::HardwareVersion::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeHardwareVersionStringWithValue:(NSString * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedDeviceBasic::Attributes::HardwareVersionString::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSoftwareVersionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedDeviceBasic::Attributes::SoftwareVersion::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSoftwareVersionStringWithValue:(NSString * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedDeviceBasic::Attributes::SoftwareVersionString::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeManufacturingDateWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedDeviceBasic::Attributes::ManufacturingDate::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePartNumberWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedDeviceBasic::Attributes::PartNumber::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeProductURLWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedDeviceBasic::Attributes::ProductURL::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeProductLabelWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedDeviceBasic::Attributes::ProductLabel::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSerialNumberWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedDeviceBasic::Attributes::SerialNumber::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeReachableWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedDeviceBasic::Attributes::Reachable::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.boolValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeUniqueIDWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedDeviceBasic::Attributes::UniqueID::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedDeviceBasic::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedDeviceBasic::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedDeviceBasic::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedDeviceBasic::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedDeviceBasic::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestSwitch () -@property (readonly) chip::Controller::SwitchCluster cppCluster; -@end - -@implementation CHIPTestSwitch - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeNumberOfPositionsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Switch::Attributes::NumberOfPositions::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentPositionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Switch::Attributes::CurrentPosition::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMultiPressMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Switch::Attributes::MultiPressMax::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Switch::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Switch::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Switch::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Switch::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Switch::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestAdministratorCommissioning () -@property (readonly) chip::Controller::AdministratorCommissioningCluster cppCluster; -@end - -@implementation CHIPTestAdministratorCommissioning - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeWindowStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AdministratorCommissioning::Attributes::WindowStatus::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAdminFabricIndexWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AdministratorCommissioning::Attributes::AdminFabricIndex::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAdminVendorIdWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AdministratorCommissioning::Attributes::AdminVendorId::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AdministratorCommissioning::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AdministratorCommissioning::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AdministratorCommissioning::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AdministratorCommissioning::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AdministratorCommissioning::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestOperationalCredentials () -@property (readonly) chip::Controller::OperationalCredentialsCluster cppCluster; -@end - -@implementation CHIPTestOperationalCredentials - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeNOCsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OperationalCredentials::Attributes::NOCs::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[CHIPOperationalCredentialsClusterNOCStruct class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (CHIPOperationalCredentialsClusterNOCStruct *) value[i_0]; - listHolder_0->mList[i_0].noc = [self asByteSpan:element_0.noc]; - if (element_0.icac == nil) { - listHolder_0->mList[i_0].icac.SetNull(); - } else { - auto & nonNullValue_2 = listHolder_0->mList[i_0].icac.SetNonNull(); - nonNullValue_2 = [self asByteSpan:element_0.icac]; - } - listHolder_0->mList[i_0].fabricIndex = element_0.fabricIndex.unsignedCharValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFabricsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OperationalCredentials::Attributes::Fabrics::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[CHIPOperationalCredentialsClusterFabricDescriptor class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (CHIPOperationalCredentialsClusterFabricDescriptor *) value[i_0]; - listHolder_0->mList[i_0].rootPublicKey = [self asByteSpan:element_0.rootPublicKey]; - listHolder_0->mList[i_0].vendorId - = static_castmList[i_0].vendorId)>>( - element_0.vendorId.unsignedShortValue); - listHolder_0->mList[i_0].fabricId = element_0.fabricId.unsignedLongLongValue; - listHolder_0->mList[i_0].nodeId = element_0.nodeId.unsignedLongLongValue; - listHolder_0->mList[i_0].label = [self asCharSpan:element_0.label]; - listHolder_0->mList[i_0].fabricIndex = element_0.fabricIndex.unsignedCharValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSupportedFabricsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OperationalCredentials::Attributes::SupportedFabrics::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCommissionedFabricsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OperationalCredentials::Attributes::CommissionedFabrics::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTrustedRootCertificatesWithValue:(NSArray * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OperationalCredentials::Attributes::TrustedRootCertificates::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSData class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSData *) value[i_0]; - listHolder_0->mList[i_0] = [self asByteSpan:element_0]; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentFabricIndexWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OperationalCredentials::Attributes::CurrentFabricIndex::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OperationalCredentials::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OperationalCredentials::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OperationalCredentials::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OperationalCredentials::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OperationalCredentials::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestGroupKeyManagement () -@property (readonly) chip::Controller::GroupKeyManagementCluster cppCluster; -@end - -@implementation CHIPTestGroupKeyManagement - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeGroupTableWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GroupKeyManagement::Attributes::GroupTable::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[CHIPGroupKeyManagementClusterGroupInfoMapStruct class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (CHIPGroupKeyManagementClusterGroupInfoMapStruct *) value[i_0]; - listHolder_0->mList[i_0].groupId = element_0.groupId.unsignedShortValue; - { - using ListType_2 = std::remove_reference_tmList[i_0].endpoints)>; - using ListMemberType_2 = ListMemberTypeGetter::Type; - if (element_0.endpoints.count != 0) { - auto * listHolder_2 = new ListHolder(element_0.endpoints.count); - if (listHolder_2 == nullptr || listHolder_2->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_2); - for (size_t i_2 = 0; i_2 < element_0.endpoints.count; ++i_2) { - if (![element_0.endpoints[i_2] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_2 = (NSNumber *) element_0.endpoints[i_2]; - listHolder_2->mList[i_2] = element_2.unsignedShortValue; - } - listHolder_0->mList[i_0].endpoints = ListType_2(listHolder_2->mList, element_0.endpoints.count); - } else { - listHolder_0->mList[i_0].endpoints = ListType_2(); - } - } - if (element_0.groupName != nil) { - auto & definedValue_2 = listHolder_0->mList[i_0].groupName.Emplace(); - definedValue_2 = [self asCharSpan:element_0.groupName]; - } - listHolder_0->mList[i_0].fabricIndex = element_0.fabricIndex.unsignedCharValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMaxGroupsPerFabricWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GroupKeyManagement::Attributes::MaxGroupsPerFabric::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMaxGroupKeysPerFabricWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GroupKeyManagement::Attributes::MaxGroupKeysPerFabric::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GroupKeyManagement::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GroupKeyManagement::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GroupKeyManagement::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GroupKeyManagement::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GroupKeyManagement::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestFixedLabel () -@property (readonly) chip::Controller::FixedLabelCluster cppCluster; -@end - -@implementation CHIPTestFixedLabel - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeLabelListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FixedLabel::Attributes::LabelList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[CHIPFixedLabelClusterLabelStruct class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (CHIPFixedLabelClusterLabelStruct *) value[i_0]; - listHolder_0->mList[i_0].label = [self asCharSpan:element_0.label]; - listHolder_0->mList[i_0].value = [self asCharSpan:element_0.value]; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FixedLabel::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FixedLabel::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FixedLabel::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FixedLabel::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FixedLabel::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestUserLabel () -@property (readonly) chip::Controller::UserLabelCluster cppCluster; -@end - -@implementation CHIPTestUserLabel - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = UserLabel::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = UserLabel::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = UserLabel::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = UserLabel::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = UserLabel::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestBooleanState () -@property (readonly) chip::Controller::BooleanStateCluster cppCluster; -@end - -@implementation CHIPTestBooleanState - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeStateValueWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BooleanState::Attributes::StateValue::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.boolValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BooleanState::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BooleanState::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BooleanState::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BooleanState::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BooleanState::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestModeSelect () -@property (readonly) chip::Controller::ModeSelectCluster cppCluster; -@end - -@implementation CHIPTestModeSelect - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeDescriptionWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ModeSelect::Attributes::Description::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeStandardNamespaceWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ModeSelect::Attributes::StandardNamespace::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSupportedModesWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ModeSelect::Attributes::SupportedModes::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[CHIPModeSelectClusterModeOptionStruct class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (CHIPModeSelectClusterModeOptionStruct *) value[i_0]; - listHolder_0->mList[i_0].label = [self asCharSpan:element_0.label]; - listHolder_0->mList[i_0].mode = element_0.mode.unsignedCharValue; - { - using ListType_2 = std::remove_reference_tmList[i_0].semanticTags)>; - using ListMemberType_2 = ListMemberTypeGetter::Type; - if (element_0.semanticTags.count != 0) { - auto * listHolder_2 = new ListHolder(element_0.semanticTags.count); - if (listHolder_2 == nullptr || listHolder_2->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_2); - for (size_t i_2 = 0; i_2 < element_0.semanticTags.count; ++i_2) { - if (![element_0.semanticTags[i_2] isKindOfClass:[CHIPModeSelectClusterSemanticTag class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_2 = (CHIPModeSelectClusterSemanticTag *) element_0.semanticTags[i_2]; - listHolder_2->mList[i_2].mfgCode = element_2.mfgCode.unsignedShortValue; - listHolder_2->mList[i_2].value = element_2.value.unsignedShortValue; - } - listHolder_0->mList[i_0].semanticTags - = ListType_2(listHolder_2->mList, element_0.semanticTags.count); - } else { - listHolder_0->mList[i_0].semanticTags = ListType_2(); - } - } - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentModeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ModeSelect::Attributes::CurrentMode::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ModeSelect::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ModeSelect::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ModeSelect::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ModeSelect::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ModeSelect::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestDoorLock () -@property (readonly) chip::Controller::DoorLockCluster cppCluster; -@end - -@implementation CHIPTestDoorLock - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeLockStateWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::LockState::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = static_cast>(value.unsignedCharValue); - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeLockTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::LockType::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedCharValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeActuatorEnabledWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::ActuatorEnabled::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.boolValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDoorStateWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::DoorState::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = static_cast>(value.unsignedCharValue); - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeNumberOfTotalUsersSupportedWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::NumberOfTotalUsersSupported::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeNumberOfPINUsersSupportedWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::NumberOfPINUsersSupported::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeNumberOfRFIDUsersSupportedWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::NumberOfRFIDUsersSupported::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeNumberOfWeekDaySchedulesSupportedPerUserWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::NumberOfWeekDaySchedulesSupportedPerUser::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeNumberOfYearDaySchedulesSupportedPerUserWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::NumberOfYearDaySchedulesSupportedPerUser::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeNumberOfHolidaySchedulesSupportedWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::NumberOfHolidaySchedulesSupported::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMaxPINCodeLengthWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::MaxPINCodeLength::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMinPINCodeLengthWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::MinPINCodeLength::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMaxRFIDCodeLengthWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::MaxRFIDCodeLength::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMinRFIDCodeLengthWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::MinRFIDCodeLength::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCredentialRulesSupportWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::CredentialRulesSupport::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedCharValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeNumberOfCredentialsSupportedPerUserWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::NumberOfCredentialsSupportedPerUser::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSupportedOperatingModesWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::SupportedOperatingModes::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedShortValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDefaultConfigurationRegisterWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::DefaultConfigurationRegister::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedShortValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestWindowCovering () -@property (readonly) chip::Controller::WindowCoveringCluster cppCluster; -@end - -@implementation CHIPTestWindowCovering - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::Type::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedCharValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePhysicalClosedLimitLiftWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::PhysicalClosedLimitLift::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePhysicalClosedLimitTiltWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::PhysicalClosedLimitTilt::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentPositionLiftWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::CurrentPositionLift::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentPositionTiltWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::CurrentPositionTilt::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeNumberOfActuationsLiftWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::NumberOfActuationsLift::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeNumberOfActuationsTiltWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::NumberOfActuationsTilt::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeConfigStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::ConfigStatus::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedCharValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentPositionLiftPercentageWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::CurrentPositionLiftPercentage::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedCharValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentPositionTiltPercentageWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::CurrentPositionTiltPercentage::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedCharValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeOperationalStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::OperationalStatus::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedCharValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTargetPositionLiftPercent100thsWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::TargetPositionLiftPercent100ths::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTargetPositionTiltPercent100thsWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::TargetPositionTiltPercent100ths::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeEndProductTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::EndProductType::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedCharValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentPositionLiftPercent100thsWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::CurrentPositionLiftPercent100ths::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentPositionTiltPercent100thsWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::CurrentPositionTiltPercent100ths::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeInstalledOpenLimitLiftWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::InstalledOpenLimitLift::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeInstalledClosedLimitLiftWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::InstalledClosedLimitLift::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeInstalledOpenLimitTiltWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::InstalledOpenLimitTilt::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeInstalledClosedLimitTiltWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::InstalledClosedLimitTilt::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSafetyStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::SafetyStatus::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedShortValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestBarrierControl () -@property (readonly) chip::Controller::BarrierControlCluster cppCluster; -@end - -@implementation CHIPTestBarrierControl - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeBarrierMovingStateWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BarrierControl::Attributes::BarrierMovingState::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBarrierSafetyStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BarrierControl::Attributes::BarrierSafetyStatus::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBarrierCapabilitiesWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BarrierControl::Attributes::BarrierCapabilities::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBarrierPositionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BarrierControl::Attributes::BarrierPosition::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BarrierControl::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BarrierControl::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BarrierControl::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BarrierControl::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BarrierControl::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestPumpConfigurationAndControl () -@property (readonly) chip::Controller::PumpConfigurationAndControlCluster cppCluster; -@end - -@implementation CHIPTestPumpConfigurationAndControl - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeMaxPressureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::MaxPressure::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.shortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMaxSpeedWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::MaxSpeed::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMaxFlowWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::MaxFlow::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMinConstPressureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::MinConstPressure::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.shortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMaxConstPressureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::MaxConstPressure::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.shortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMinCompPressureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::MinCompPressure::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.shortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMaxCompPressureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::MaxCompPressure::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.shortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMinConstSpeedWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::MinConstSpeed::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMaxConstSpeedWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::MaxConstSpeed::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMinConstFlowWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::MinConstFlow::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMaxConstFlowWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::MaxConstFlow::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMinConstTempWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::MinConstTemp::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.shortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMaxConstTempWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::MaxConstTemp::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.shortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePumpStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::PumpStatus::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedShortValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeEffectiveOperationModeWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::EffectiveOperationMode::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedCharValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeEffectiveControlModeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::EffectiveControlMode::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedCharValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCapacityWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::Capacity::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.shortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSpeedWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::Speed::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePowerWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::Power::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedIntValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestThermostat () -@property (readonly) chip::Controller::ThermostatCluster cppCluster; -@end - -@implementation CHIPTestThermostat - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeLocalTemperatureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::LocalTemperature::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.shortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeOutdoorTemperatureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::OutdoorTemperature::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.shortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeOccupancyWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::Occupancy::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAbsMinHeatSetpointLimitWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::AbsMinHeatSetpointLimit::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAbsMaxHeatSetpointLimitWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::AbsMaxHeatSetpointLimit::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAbsMinCoolSetpointLimitWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::AbsMinCoolSetpointLimit::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAbsMaxCoolSetpointLimitWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::AbsMaxCoolSetpointLimit::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePICoolingDemandWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::PICoolingDemand::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePIHeatingDemandWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::PIHeatingDemand::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeThermostatRunningModeWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::ThermostatRunningMode::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeStartOfWeekWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::StartOfWeek::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeNumberOfWeeklyTransitionsWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::NumberOfWeeklyTransitions::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeNumberOfDailyTransitionsWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::NumberOfDailyTransitions::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeThermostatRunningStateWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::ThermostatRunningState::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSetpointChangeSourceWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::SetpointChangeSource::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSetpointChangeAmountWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::SetpointChangeAmount::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.shortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSetpointChangeSourceTimestampWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::SetpointChangeSourceTimestamp::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeOccupiedSetbackMinWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::OccupiedSetbackMin::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedCharValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeOccupiedSetbackMaxWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::OccupiedSetbackMax::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedCharValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeUnoccupiedSetbackMinWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::UnoccupiedSetbackMin::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedCharValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeUnoccupiedSetbackMaxWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::UnoccupiedSetbackMax::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedCharValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeACCoilTemperatureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::ACCoilTemperature::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.shortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestFanControl () -@property (readonly) chip::Controller::FanControlCluster cppCluster; -@end - -@implementation CHIPTestFanControl - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributePercentCurrentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FanControl::Attributes::PercentCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSpeedMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FanControl::Attributes::SpeedMax::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSpeedCurrentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FanControl::Attributes::SpeedCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRockSupportWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FanControl::Attributes::RockSupport::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeWindSupportWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FanControl::Attributes::WindSupport::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FanControl::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FanControl::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FanControl::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FanControl::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FanControl::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestThermostatUserInterfaceConfiguration () -@property (readonly) chip::Controller::ThermostatUserInterfaceConfigurationCluster cppCluster; -@end - -@implementation CHIPTestThermostatUserInterfaceConfiguration - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThermostatUserInterfaceConfiguration::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThermostatUserInterfaceConfiguration::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThermostatUserInterfaceConfiguration::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThermostatUserInterfaceConfiguration::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThermostatUserInterfaceConfiguration::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestColorControl () -@property (readonly) chip::Controller::ColorControlCluster cppCluster; -@end - -@implementation CHIPTestColorControl - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeCurrentHueWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::CurrentHue::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentSaturationWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::CurrentSaturation::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRemainingTimeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::RemainingTime::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentXWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::CurrentX::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentYWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::CurrentY::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDriftCompensationWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::DriftCompensation::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCompensationTextWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::CompensationText::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeColorTemperatureWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::ColorTemperature::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeColorModeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::ColorMode::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeNumberOfPrimariesWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::NumberOfPrimaries::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedCharValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePrimary1XWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::Primary1X::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePrimary1YWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::Primary1Y::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePrimary1IntensityWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::Primary1Intensity::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedCharValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePrimary2XWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::Primary2X::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePrimary2YWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::Primary2Y::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePrimary2IntensityWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::Primary2Intensity::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedCharValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePrimary3XWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::Primary3X::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePrimary3YWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::Primary3Y::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePrimary3IntensityWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::Primary3Intensity::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedCharValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePrimary4XWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::Primary4X::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePrimary4YWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::Primary4Y::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePrimary4IntensityWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::Primary4Intensity::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedCharValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePrimary5XWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::Primary5X::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePrimary5YWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::Primary5Y::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePrimary5IntensityWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::Primary5Intensity::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedCharValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePrimary6XWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::Primary6X::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePrimary6YWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::Primary6Y::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePrimary6IntensityWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::Primary6Intensity::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedCharValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeEnhancedCurrentHueWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::EnhancedCurrentHue::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeEnhancedColorModeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::EnhancedColorMode::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeColorLoopActiveWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::ColorLoopActive::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeColorLoopDirectionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::ColorLoopDirection::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeColorLoopTimeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::ColorLoopTime::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeColorLoopStartEnhancedHueWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::ColorLoopStartEnhancedHue::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeColorLoopStoredEnhancedHueWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::ColorLoopStoredEnhancedHue::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeColorCapabilitiesWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::ColorCapabilities::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeColorTempPhysicalMinMiredsWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::ColorTempPhysicalMinMireds::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeColorTempPhysicalMaxMiredsWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::ColorTempPhysicalMaxMireds::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCoupleColorTempToLevelMinMiredsWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::CoupleColorTempToLevelMinMireds::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestIlluminanceMeasurement () -@property (readonly) chip::Controller::IlluminanceMeasurementCluster cppCluster; -@end - -@implementation CHIPTestIlluminanceMeasurement - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = IlluminanceMeasurement::Attributes::MeasuredValue::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMinMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = IlluminanceMeasurement::Attributes::MinMeasuredValue::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMaxMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = IlluminanceMeasurement::Attributes::MaxMeasuredValue::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeToleranceWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = IlluminanceMeasurement::Attributes::Tolerance::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeLightSensorTypeWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = IlluminanceMeasurement::Attributes::LightSensorType::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedCharValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = IlluminanceMeasurement::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = IlluminanceMeasurement::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = IlluminanceMeasurement::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = IlluminanceMeasurement::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = IlluminanceMeasurement::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestTemperatureMeasurement () -@property (readonly) chip::Controller::TemperatureMeasurementCluster cppCluster; -@end - -@implementation CHIPTestTemperatureMeasurement - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TemperatureMeasurement::Attributes::MeasuredValue::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.shortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMinMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TemperatureMeasurement::Attributes::MinMeasuredValue::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.shortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMaxMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TemperatureMeasurement::Attributes::MaxMeasuredValue::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.shortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeToleranceWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TemperatureMeasurement::Attributes::Tolerance::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TemperatureMeasurement::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TemperatureMeasurement::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TemperatureMeasurement::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TemperatureMeasurement::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TemperatureMeasurement::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestPressureMeasurement () -@property (readonly) chip::Controller::PressureMeasurementCluster cppCluster; -@end - -@implementation CHIPTestPressureMeasurement - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PressureMeasurement::Attributes::MeasuredValue::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.shortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMinMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PressureMeasurement::Attributes::MinMeasuredValue::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.shortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMaxMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PressureMeasurement::Attributes::MaxMeasuredValue::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.shortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeToleranceWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PressureMeasurement::Attributes::Tolerance::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeScaledValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PressureMeasurement::Attributes::ScaledValue::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.shortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMinScaledValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PressureMeasurement::Attributes::MinScaledValue::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.shortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMaxScaledValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PressureMeasurement::Attributes::MaxScaledValue::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.shortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeScaledToleranceWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PressureMeasurement::Attributes::ScaledTolerance::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeScaleWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PressureMeasurement::Attributes::Scale::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.charValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PressureMeasurement::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PressureMeasurement::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PressureMeasurement::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PressureMeasurement::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PressureMeasurement::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestFlowMeasurement () -@property (readonly) chip::Controller::FlowMeasurementCluster cppCluster; -@end - -@implementation CHIPTestFlowMeasurement - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FlowMeasurement::Attributes::MeasuredValue::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMinMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FlowMeasurement::Attributes::MinMeasuredValue::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMaxMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FlowMeasurement::Attributes::MaxMeasuredValue::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeToleranceWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FlowMeasurement::Attributes::Tolerance::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FlowMeasurement::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FlowMeasurement::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FlowMeasurement::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FlowMeasurement::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FlowMeasurement::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestRelativeHumidityMeasurement () -@property (readonly) chip::Controller::RelativeHumidityMeasurementCluster cppCluster; -@end - -@implementation CHIPTestRelativeHumidityMeasurement - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = RelativeHumidityMeasurement::Attributes::MeasuredValue::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMinMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = RelativeHumidityMeasurement::Attributes::MinMeasuredValue::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMaxMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = RelativeHumidityMeasurement::Attributes::MaxMeasuredValue::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeToleranceWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = RelativeHumidityMeasurement::Attributes::Tolerance::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = RelativeHumidityMeasurement::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = RelativeHumidityMeasurement::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = RelativeHumidityMeasurement::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = RelativeHumidityMeasurement::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = RelativeHumidityMeasurement::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestOccupancySensing () -@property (readonly) chip::Controller::OccupancySensingCluster cppCluster; -@end - -@implementation CHIPTestOccupancySensing - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeOccupancyWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OccupancySensing::Attributes::Occupancy::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeOccupancySensorTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OccupancySensing::Attributes::OccupancySensorType::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeOccupancySensorTypeBitmapWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OccupancySensing::Attributes::OccupancySensorTypeBitmap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OccupancySensing::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OccupancySensing::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OccupancySensing::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OccupancySensing::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OccupancySensing::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestWakeOnLan () -@property (readonly) chip::Controller::WakeOnLanCluster cppCluster; -@end - -@implementation CHIPTestWakeOnLan - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeMACAddressWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WakeOnLan::Attributes::MACAddress::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WakeOnLan::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WakeOnLan::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WakeOnLan::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WakeOnLan::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WakeOnLan::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestChannel () -@property (readonly) chip::Controller::ChannelCluster cppCluster; -@end - -@implementation CHIPTestChannel - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeChannelListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Channel::Attributes::ChannelList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[CHIPChannelClusterChannelInfo class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (CHIPChannelClusterChannelInfo *) value[i_0]; - listHolder_0->mList[i_0].majorNumber = element_0.majorNumber.unsignedShortValue; - listHolder_0->mList[i_0].minorNumber = element_0.minorNumber.unsignedShortValue; - if (element_0.name != nil) { - auto & definedValue_2 = listHolder_0->mList[i_0].name.Emplace(); - definedValue_2 = [self asCharSpan:element_0.name]; - } - if (element_0.callSign != nil) { - auto & definedValue_2 = listHolder_0->mList[i_0].callSign.Emplace(); - definedValue_2 = [self asCharSpan:element_0.callSign]; - } - if (element_0.affiliateCallSign != nil) { - auto & definedValue_2 = listHolder_0->mList[i_0].affiliateCallSign.Emplace(); - definedValue_2 = [self asCharSpan:element_0.affiliateCallSign]; - } - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeLineupWithValue:(CHIPChannelClusterLineupInfo * _Nullable)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Channel::Attributes::Lineup::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0.operatorName = [self asCharSpan:value.operatorName]; - if (value.lineupName != nil) { - auto & definedValue_2 = nonNullValue_0.lineupName.Emplace(); - definedValue_2 = [self asCharSpan:value.lineupName]; - } - if (value.postalCode != nil) { - auto & definedValue_2 = nonNullValue_0.postalCode.Emplace(); - definedValue_2 = [self asCharSpan:value.postalCode]; - } - nonNullValue_0.lineupInfoType = static_cast>( - value.lineupInfoType.unsignedCharValue); - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentChannelWithValue:(CHIPChannelClusterChannelInfo * _Nullable)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Channel::Attributes::CurrentChannel::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0.majorNumber = value.majorNumber.unsignedShortValue; - nonNullValue_0.minorNumber = value.minorNumber.unsignedShortValue; - if (value.name != nil) { - auto & definedValue_2 = nonNullValue_0.name.Emplace(); - definedValue_2 = [self asCharSpan:value.name]; - } - if (value.callSign != nil) { - auto & definedValue_2 = nonNullValue_0.callSign.Emplace(); - definedValue_2 = [self asCharSpan:value.callSign]; - } - if (value.affiliateCallSign != nil) { - auto & definedValue_2 = nonNullValue_0.affiliateCallSign.Emplace(); - definedValue_2 = [self asCharSpan:value.affiliateCallSign]; - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Channel::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Channel::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Channel::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Channel::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Channel::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestTargetNavigator () -@property (readonly) chip::Controller::TargetNavigatorCluster cppCluster; -@end - -@implementation CHIPTestTargetNavigator - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeTargetListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TargetNavigator::Attributes::TargetList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[CHIPTargetNavigatorClusterTargetInfo class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (CHIPTargetNavigatorClusterTargetInfo *) value[i_0]; - listHolder_0->mList[i_0].identifier = element_0.identifier.unsignedCharValue; - listHolder_0->mList[i_0].name = [self asCharSpan:element_0.name]; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentTargetWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TargetNavigator::Attributes::CurrentTarget::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TargetNavigator::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TargetNavigator::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TargetNavigator::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TargetNavigator::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TargetNavigator::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestMediaPlayback () -@property (readonly) chip::Controller::MediaPlaybackCluster cppCluster; -@end - -@implementation CHIPTestMediaPlayback - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeCurrentStateWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = MediaPlayback::Attributes::CurrentState::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedCharValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeStartTimeWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = MediaPlayback::Attributes::StartTime::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedLongLongValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDurationWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = MediaPlayback::Attributes::Duration::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedLongLongValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSampledPositionWithValue:(CHIPMediaPlaybackClusterPlaybackPosition * _Nullable)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = MediaPlayback::Attributes::SampledPosition::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0.updatedAt = value.updatedAt.unsignedLongLongValue; - if (value.position == nil) { - nonNullValue_0.position.SetNull(); - } else { - auto & nonNullValue_2 = nonNullValue_0.position.SetNonNull(); - nonNullValue_2 = value.position.unsignedLongLongValue; - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePlaybackSpeedWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = MediaPlayback::Attributes::PlaybackSpeed::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.floatValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSeekRangeEndWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = MediaPlayback::Attributes::SeekRangeEnd::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedLongLongValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSeekRangeStartWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = MediaPlayback::Attributes::SeekRangeStart::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedLongLongValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = MediaPlayback::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = MediaPlayback::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = MediaPlayback::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = MediaPlayback::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = MediaPlayback::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestMediaInput () -@property (readonly) chip::Controller::MediaInputCluster cppCluster; -@end - -@implementation CHIPTestMediaInput - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeInputListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = MediaInput::Attributes::InputList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[CHIPMediaInputClusterInputInfo class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (CHIPMediaInputClusterInputInfo *) value[i_0]; - listHolder_0->mList[i_0].index = element_0.index.unsignedCharValue; - listHolder_0->mList[i_0].inputType - = static_castmList[i_0].inputType)>>( - element_0.inputType.unsignedCharValue); - listHolder_0->mList[i_0].name = [self asCharSpan:element_0.name]; - listHolder_0->mList[i_0].description = [self asCharSpan:element_0.descriptionString]; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentInputWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = MediaInput::Attributes::CurrentInput::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = MediaInput::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = MediaInput::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = MediaInput::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = MediaInput::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = MediaInput::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestLowPower () -@property (readonly) chip::Controller::LowPowerCluster cppCluster; -@end - -@implementation CHIPTestLowPower - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LowPower::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LowPower::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LowPower::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LowPower::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LowPower::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestKeypadInput () -@property (readonly) chip::Controller::KeypadInputCluster cppCluster; -@end - -@implementation CHIPTestKeypadInput - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = KeypadInput::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = KeypadInput::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = KeypadInput::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = KeypadInput::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = KeypadInput::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestContentLauncher () -@property (readonly) chip::Controller::ContentLauncherCluster cppCluster; -@end - -@implementation CHIPTestContentLauncher - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeAcceptHeaderWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ContentLauncher::Attributes::AcceptHeader::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSString class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSString *) value[i_0]; - listHolder_0->mList[i_0] = [self asCharSpan:element_0]; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ContentLauncher::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ContentLauncher::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ContentLauncher::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ContentLauncher::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ContentLauncher::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestAudioOutput () -@property (readonly) chip::Controller::AudioOutputCluster cppCluster; -@end - -@implementation CHIPTestAudioOutput - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeOutputListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AudioOutput::Attributes::OutputList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[CHIPAudioOutputClusterOutputInfo class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (CHIPAudioOutputClusterOutputInfo *) value[i_0]; - listHolder_0->mList[i_0].index = element_0.index.unsignedCharValue; - listHolder_0->mList[i_0].outputType - = static_castmList[i_0].outputType)>>( - element_0.outputType.unsignedCharValue); - listHolder_0->mList[i_0].name = [self asCharSpan:element_0.name]; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentOutputWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AudioOutput::Attributes::CurrentOutput::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AudioOutput::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AudioOutput::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AudioOutput::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AudioOutput::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AudioOutput::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestApplicationLauncher () -@property (readonly) chip::Controller::ApplicationLauncherCluster cppCluster; -@end - -@implementation CHIPTestApplicationLauncher - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeCatalogListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ApplicationLauncher::Attributes::CatalogList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedShortValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ApplicationLauncher::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ApplicationLauncher::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ApplicationLauncher::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ApplicationLauncher::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ApplicationLauncher::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestApplicationBasic () -@property (readonly) chip::Controller::ApplicationBasicCluster cppCluster; -@end - -@implementation CHIPTestApplicationBasic - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeVendorNameWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ApplicationBasic::Attributes::VendorName::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeVendorIDWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ApplicationBasic::Attributes::VendorID::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeApplicationNameWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ApplicationBasic::Attributes::ApplicationName::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeProductIDWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ApplicationBasic::Attributes::ProductID::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeApplicationWithValue:(CHIPApplicationBasicClusterApplicationBasicApplication * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ApplicationBasic::Attributes::Application::TypeInfo; - TypeInfo::Type cppValue; - cppValue.catalogVendorId = value.catalogVendorId.unsignedShortValue; - cppValue.applicationId = [self asCharSpan:value.applicationId]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ApplicationBasic::Attributes::Status::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedCharValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeApplicationVersionWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ApplicationBasic::Attributes::ApplicationVersion::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAllowedVendorListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ApplicationBasic::Attributes::AllowedVendorList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = static_castmList[i_0])>>( - element_0.unsignedShortValue); - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ApplicationBasic::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ApplicationBasic::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ApplicationBasic::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ApplicationBasic::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ApplicationBasic::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestAccountLogin () -@property (readonly) chip::Controller::AccountLoginCluster cppCluster; -@end - -@implementation CHIPTestAccountLogin - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AccountLogin::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AccountLogin::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AccountLogin::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AccountLogin::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AccountLogin::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestElectricalMeasurement () -@property (readonly) chip::Controller::ElectricalMeasurementCluster cppCluster; -@end - -@implementation CHIPTestElectricalMeasurement - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeMeasurementTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::MeasurementType::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDcVoltageWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::DcVoltage::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDcVoltageMinWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::DcVoltageMin::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDcVoltageMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::DcVoltageMax::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDcCurrentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::DcCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDcCurrentMinWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::DcCurrentMin::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDcCurrentMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::DcCurrentMax::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDcPowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::DcPower::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDcPowerMinWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::DcPowerMin::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDcPowerMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::DcPowerMax::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDcVoltageMultiplierWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::DcVoltageMultiplier::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDcVoltageDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::DcVoltageDivisor::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDcCurrentMultiplierWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::DcCurrentMultiplier::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDcCurrentDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::DcCurrentDivisor::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDcPowerMultiplierWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::DcPowerMultiplier::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDcPowerDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::DcPowerDivisor::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcFrequencyWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AcFrequency::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcFrequencyMinWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AcFrequencyMin::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcFrequencyMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AcFrequencyMax::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeNeutralCurrentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::NeutralCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTotalActivePowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::TotalActivePower::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.intValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTotalReactivePowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::TotalReactivePower::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.intValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTotalApparentPowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::TotalApparentPower::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMeasured1stHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::Measured1stHarmonicCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMeasured3rdHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::Measured3rdHarmonicCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMeasured5thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::Measured5thHarmonicCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMeasured7thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::Measured7thHarmonicCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMeasured9thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::Measured9thHarmonicCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMeasured11thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::Measured11thHarmonicCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMeasuredPhase1stHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::MeasuredPhase1stHarmonicCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMeasuredPhase3rdHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::MeasuredPhase3rdHarmonicCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMeasuredPhase5thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::MeasuredPhase5thHarmonicCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMeasuredPhase7thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::MeasuredPhase7thHarmonicCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMeasuredPhase9thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::MeasuredPhase9thHarmonicCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMeasuredPhase11thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::MeasuredPhase11thHarmonicCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcFrequencyMultiplierWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AcFrequencyMultiplier::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcFrequencyDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AcFrequencyDivisor::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePowerMultiplierWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::PowerMultiplier::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePowerDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::PowerDivisor::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeHarmonicCurrentMultiplierWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::HarmonicCurrentMultiplier::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.charValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePhaseHarmonicCurrentMultiplierWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::PhaseHarmonicCurrentMultiplier::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.charValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeInstantaneousVoltageWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::InstantaneousVoltage::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeInstantaneousLineCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::InstantaneousLineCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeInstantaneousActiveCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::InstantaneousActiveCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeInstantaneousReactiveCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::InstantaneousReactiveCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeInstantaneousPowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::InstantaneousPower::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsVoltageWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltage::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsVoltageMinWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageMin::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsVoltageMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageMax::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsCurrentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsCurrentMinWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentMin::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsCurrentMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentMax::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeActivePowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::ActivePower::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeActivePowerMinWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerMin::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeActivePowerMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerMax::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeReactivePowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::ReactivePower::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeApparentPowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::ApparentPower::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePowerFactorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::PowerFactor::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.charValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcVoltageMultiplierWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AcVoltageMultiplier::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcVoltageDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AcVoltageDivisor::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcCurrentMultiplierWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AcCurrentMultiplier::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcCurrentDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AcCurrentDivisor::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcPowerMultiplierWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AcPowerMultiplier::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcPowerDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AcPowerDivisor::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeVoltageOverloadWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::VoltageOverload::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentOverloadWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::CurrentOverload::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcVoltageOverloadWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AcVoltageOverload::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcCurrentOverloadWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AcCurrentOverload::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcActivePowerOverloadWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AcActivePowerOverload::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcReactivePowerOverloadWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AcReactivePowerOverload::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAverageRmsOverVoltageWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsOverVoltage::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAverageRmsUnderVoltageWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsUnderVoltage::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsExtremeOverVoltageWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsExtremeOverVoltage::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsExtremeUnderVoltageWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsExtremeUnderVoltage::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsVoltageSagWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageSag::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsVoltageSwellWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageSwell::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeLineCurrentPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::LineCurrentPhaseB::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeActiveCurrentPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::ActiveCurrentPhaseB::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeReactiveCurrentPhaseBWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::ReactiveCurrentPhaseB::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsVoltagePhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltagePhaseB::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsVoltageMinPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageMinPhaseB::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsVoltageMaxPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageMaxPhaseB::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsCurrentPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentPhaseB::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsCurrentMinPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentMinPhaseB::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsCurrentMaxPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentMaxPhaseB::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeActivePowerPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerPhaseB::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeActivePowerMinPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerMinPhaseB::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeActivePowerMaxPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerMaxPhaseB::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeReactivePowerPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::ReactivePowerPhaseB::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeApparentPowerPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::ApparentPowerPhaseB::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePowerFactorPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::PowerFactorPhaseB::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.charValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAverageRmsVoltageMeasurementPeriodPhaseBWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsVoltageMeasurementPeriodPhaseB::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAverageRmsOverVoltageCounterPhaseBWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsOverVoltageCounterPhaseB::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAverageRmsUnderVoltageCounterPhaseBWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsUnderVoltageCounterPhaseB::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsExtremeOverVoltagePeriodPhaseBWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsExtremeOverVoltagePeriodPhaseB::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsExtremeUnderVoltagePeriodPhaseBWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsExtremeUnderVoltagePeriodPhaseB::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsVoltageSagPeriodPhaseBWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageSagPeriodPhaseB::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsVoltageSwellPeriodPhaseBWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageSwellPeriodPhaseB::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeLineCurrentPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::LineCurrentPhaseC::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeActiveCurrentPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::ActiveCurrentPhaseC::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeReactiveCurrentPhaseCWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::ReactiveCurrentPhaseC::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsVoltagePhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltagePhaseC::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsVoltageMinPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageMinPhaseC::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsVoltageMaxPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageMaxPhaseC::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsCurrentPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentPhaseC::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsCurrentMinPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentMinPhaseC::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsCurrentMaxPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentMaxPhaseC::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeActivePowerPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerPhaseC::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeActivePowerMinPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerMinPhaseC::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeActivePowerMaxPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerMaxPhaseC::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeReactivePowerPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::ReactivePowerPhaseC::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeApparentPowerPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::ApparentPowerPhaseC::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePowerFactorPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::PowerFactorPhaseC::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.charValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAverageRmsVoltageMeasurementPeriodPhaseCWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsVoltageMeasurementPeriodPhaseC::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAverageRmsOverVoltageCounterPhaseCWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsOverVoltageCounterPhaseC::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAverageRmsUnderVoltageCounterPhaseCWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsUnderVoltageCounterPhaseC::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsExtremeOverVoltagePeriodPhaseCWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsExtremeOverVoltagePeriodPhaseC::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsExtremeUnderVoltagePeriodPhaseCWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsExtremeUnderVoltagePeriodPhaseC::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsVoltageSagPeriodPhaseCWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageSagPeriodPhaseC::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsVoltageSwellPeriodPhaseCWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageSwellPeriodPhaseC::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface CHIPTestTestCluster () -@property (readonly) chip::Controller::TestClusterCluster cppCluster; -@end - -@implementation CHIPTestTestCluster - -- (chip::Controller::ClusterBase *)getCluster -{ - return &_cppCluster; -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TestCluster::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TestCluster::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TestCluster::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TestCluster::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new CHIPDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TestCluster::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster.WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end diff --git a/zzz_generated/darwin-framework-tool/zap-generated/cluster/Commands.h b/zzz_generated/darwin-framework-tool/zap-generated/cluster/Commands.h index 4c801a043f15c7..0614e5394d9e43 100644 --- a/zzz_generated/darwin-framework-tool/zap-generated/cluster/Commands.h +++ b/zzz_generated/darwin-framework-tool/zap-generated/cluster/Commands.h @@ -182,12 +182,14 @@ class IdentifyIdentify : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000003) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRIdentify * cluster = [[MTRIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRIdentifyClusterIdentifyParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -227,12 +229,14 @@ class IdentifyTriggerEffect : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000003) command (0x00000040) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRIdentify * cluster = [[MTRIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRIdentifyClusterTriggerEffectParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -272,12 +276,14 @@ class ReadIdentifyIdentifyTime : public ReadAttribute { ~ReadIdentifyIdentifyTime() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000003) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRIdentify * cluster = [[MTRIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeIdentifyTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Identify.IdentifyTime response %@", [value description]); if (error != nil) { @@ -301,13 +307,15 @@ class WriteIdentifyIdentifyTime : public WriteAttribute { ~WriteIdentifyIdentifyTime() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000003) WriteAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRIdentify * cluster = [[MTRIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; @@ -336,11 +344,13 @@ class SubscribeAttributeIdentifyIdentifyTime : public SubscribeAttribute { ~SubscribeAttributeIdentifyIdentifyTime() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000003) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRIdentify * cluster = [[MTRIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -374,12 +384,14 @@ class ReadIdentifyIdentifyType : public ReadAttribute { ~ReadIdentifyIdentifyType() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000003) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRIdentify * cluster = [[MTRIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeIdentifyTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Identify.IdentifyType response %@", [value description]); if (error != nil) { @@ -400,11 +412,13 @@ class SubscribeAttributeIdentifyIdentifyType : public SubscribeAttribute { ~SubscribeAttributeIdentifyIdentifyType() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000003) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRIdentify * cluster = [[MTRIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -438,12 +452,14 @@ class ReadIdentifyGeneratedCommandList : public ReadAttribute { ~ReadIdentifyGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000003) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRIdentify * cluster = [[MTRIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Identify.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -464,11 +480,13 @@ class SubscribeAttributeIdentifyGeneratedCommandList : public SubscribeAttribute ~SubscribeAttributeIdentifyGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000003) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRIdentify * cluster = [[MTRIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -502,12 +520,14 @@ class ReadIdentifyAcceptedCommandList : public ReadAttribute { ~ReadIdentifyAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000003) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRIdentify * cluster = [[MTRIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Identify.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -528,11 +548,13 @@ class SubscribeAttributeIdentifyAcceptedCommandList : public SubscribeAttribute ~SubscribeAttributeIdentifyAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000003) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRIdentify * cluster = [[MTRIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -566,12 +588,14 @@ class ReadIdentifyAttributeList : public ReadAttribute { ~ReadIdentifyAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000003) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRIdentify * cluster = [[MTRIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Identify.AttributeList response %@", [value description]); if (error != nil) { @@ -592,11 +616,13 @@ class SubscribeAttributeIdentifyAttributeList : public SubscribeAttribute { ~SubscribeAttributeIdentifyAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000003) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRIdentify * cluster = [[MTRIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -630,12 +656,14 @@ class ReadIdentifyFeatureMap : public ReadAttribute { ~ReadIdentifyFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000003) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRIdentify * cluster = [[MTRIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Identify.FeatureMap response %@", [value description]); if (error != nil) { @@ -656,11 +684,13 @@ class SubscribeAttributeIdentifyFeatureMap : public SubscribeAttribute { ~SubscribeAttributeIdentifyFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000003) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRIdentify * cluster = [[MTRIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -694,12 +724,14 @@ class ReadIdentifyClusterRevision : public ReadAttribute { ~ReadIdentifyClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000003) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRIdentify * cluster = [[MTRIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Identify.ClusterRevision response %@", [value description]); if (error != nil) { @@ -720,11 +752,13 @@ class SubscribeAttributeIdentifyClusterRevision : public SubscribeAttribute { ~SubscribeAttributeIdentifyClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000003) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRIdentify * cluster = [[MTRIdentify alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -781,12 +815,14 @@ class GroupsAddGroup : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000004) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGroups * cluster = [[MTRGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterGroups * cluster = [[MTRBaseClusterGroups alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRGroupsClusterAddGroupParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -829,12 +865,14 @@ class GroupsViewGroup : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000004) command (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGroups * cluster = [[MTRGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterGroups * cluster = [[MTRBaseClusterGroups alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRGroupsClusterViewGroupParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -875,12 +913,14 @@ class GroupsGetGroupMembership : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000004) command (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGroups * cluster = [[MTRGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterGroups * cluster = [[MTRBaseClusterGroups alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRGroupsClusterGetGroupMembershipParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -930,12 +970,14 @@ class GroupsRemoveGroup : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000004) command (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGroups * cluster = [[MTRGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterGroups * cluster = [[MTRBaseClusterGroups alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRGroupsClusterRemoveGroupParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -975,12 +1017,14 @@ class GroupsRemoveAllGroups : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000004) command (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGroups * cluster = [[MTRGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterGroups * cluster = [[MTRBaseClusterGroups alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRGroupsClusterRemoveAllGroupsParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -1018,12 +1062,14 @@ class GroupsAddGroupIfIdentifying : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000004) command (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGroups * cluster = [[MTRGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterGroups * cluster = [[MTRBaseClusterGroups alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRGroupsClusterAddGroupIfIdentifyingParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -1065,12 +1111,14 @@ class ReadGroupsNameSupport : public ReadAttribute { ~ReadGroupsNameSupport() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000004) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGroups * cluster = [[MTRGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterGroups * cluster = [[MTRBaseClusterGroups alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNameSupportWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Groups.NameSupport response %@", [value description]); if (error != nil) { @@ -1091,11 +1139,13 @@ class SubscribeAttributeGroupsNameSupport : public SubscribeAttribute { ~SubscribeAttributeGroupsNameSupport() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000004) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGroups * cluster = [[MTRGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterGroups * cluster = [[MTRBaseClusterGroups alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -1129,12 +1179,14 @@ class ReadGroupsGeneratedCommandList : public ReadAttribute { ~ReadGroupsGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000004) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGroups * cluster = [[MTRGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterGroups * cluster = [[MTRBaseClusterGroups alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Groups.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -1155,11 +1207,13 @@ class SubscribeAttributeGroupsGeneratedCommandList : public SubscribeAttribute { ~SubscribeAttributeGroupsGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000004) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGroups * cluster = [[MTRGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterGroups * cluster = [[MTRBaseClusterGroups alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -1193,12 +1247,14 @@ class ReadGroupsAcceptedCommandList : public ReadAttribute { ~ReadGroupsAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000004) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGroups * cluster = [[MTRGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterGroups * cluster = [[MTRBaseClusterGroups alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Groups.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -1219,11 +1275,13 @@ class SubscribeAttributeGroupsAcceptedCommandList : public SubscribeAttribute { ~SubscribeAttributeGroupsAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000004) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGroups * cluster = [[MTRGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterGroups * cluster = [[MTRBaseClusterGroups alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -1257,12 +1315,14 @@ class ReadGroupsAttributeList : public ReadAttribute { ~ReadGroupsAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000004) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGroups * cluster = [[MTRGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterGroups * cluster = [[MTRBaseClusterGroups alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Groups.AttributeList response %@", [value description]); if (error != nil) { @@ -1283,11 +1343,13 @@ class SubscribeAttributeGroupsAttributeList : public SubscribeAttribute { ~SubscribeAttributeGroupsAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000004) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGroups * cluster = [[MTRGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterGroups * cluster = [[MTRBaseClusterGroups alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -1321,12 +1383,14 @@ class ReadGroupsFeatureMap : public ReadAttribute { ~ReadGroupsFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000004) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGroups * cluster = [[MTRGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterGroups * cluster = [[MTRBaseClusterGroups alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Groups.FeatureMap response %@", [value description]); if (error != nil) { @@ -1347,11 +1411,13 @@ class SubscribeAttributeGroupsFeatureMap : public SubscribeAttribute { ~SubscribeAttributeGroupsFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000004) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGroups * cluster = [[MTRGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterGroups * cluster = [[MTRBaseClusterGroups alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -1385,12 +1451,14 @@ class ReadGroupsClusterRevision : public ReadAttribute { ~ReadGroupsClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000004) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGroups * cluster = [[MTRGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterGroups * cluster = [[MTRBaseClusterGroups alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Groups.ClusterRevision response %@", [value description]); if (error != nil) { @@ -1411,11 +1479,13 @@ class SubscribeAttributeGroupsClusterRevision : public SubscribeAttribute { ~SubscribeAttributeGroupsClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000004) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGroups * cluster = [[MTRGroups alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterGroups * cluster = [[MTRBaseClusterGroups alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -1485,12 +1555,14 @@ class ScenesAddScene : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterScenes * cluster = [[MTRBaseClusterScenes alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRScenesClusterAddSceneParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -1571,12 +1643,14 @@ class ScenesViewScene : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) command (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterScenes * cluster = [[MTRBaseClusterScenes alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRScenesClusterViewSceneParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -1618,12 +1692,14 @@ class ScenesRemoveScene : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) command (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterScenes * cluster = [[MTRBaseClusterScenes alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRScenesClusterRemoveSceneParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -1665,12 +1741,14 @@ class ScenesRemoveAllScenes : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) command (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterScenes * cluster = [[MTRBaseClusterScenes alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRScenesClusterRemoveAllScenesParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -1712,12 +1790,14 @@ class ScenesStoreScene : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) command (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterScenes * cluster = [[MTRBaseClusterScenes alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRScenesClusterStoreSceneParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -1761,12 +1841,14 @@ class ScenesRecallScene : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) command (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterScenes * cluster = [[MTRBaseClusterScenes alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRScenesClusterRecallSceneParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -1815,12 +1897,14 @@ class ScenesGetSceneMembership : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) command (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterScenes * cluster = [[MTRBaseClusterScenes alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRScenesClusterGetSceneMembershipParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -1866,12 +1950,14 @@ class ScenesEnhancedAddScene : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) command (0x00000040) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterScenes * cluster = [[MTRBaseClusterScenes alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRScenesClusterEnhancedAddSceneParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -1953,12 +2039,14 @@ class ScenesEnhancedViewScene : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) command (0x00000041) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterScenes * cluster = [[MTRBaseClusterScenes alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRScenesClusterEnhancedViewSceneParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -2004,12 +2092,14 @@ class ScenesCopyScene : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) command (0x00000042) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterScenes * cluster = [[MTRBaseClusterScenes alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRScenesClusterCopySceneParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -2053,12 +2143,14 @@ class ReadScenesSceneCount : public ReadAttribute { ~ReadScenesSceneCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterScenes * cluster = [[MTRBaseClusterScenes alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeSceneCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Scenes.SceneCount response %@", [value description]); if (error != nil) { @@ -2079,11 +2171,13 @@ class SubscribeAttributeScenesSceneCount : public SubscribeAttribute { ~SubscribeAttributeScenesSceneCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterScenes * cluster = [[MTRBaseClusterScenes alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -2117,12 +2211,14 @@ class ReadScenesCurrentScene : public ReadAttribute { ~ReadScenesCurrentScene() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterScenes * cluster = [[MTRBaseClusterScenes alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeCurrentSceneWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Scenes.CurrentScene response %@", [value description]); if (error != nil) { @@ -2143,11 +2239,13 @@ class SubscribeAttributeScenesCurrentScene : public SubscribeAttribute { ~SubscribeAttributeScenesCurrentScene() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterScenes * cluster = [[MTRBaseClusterScenes alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -2181,12 +2279,14 @@ class ReadScenesCurrentGroup : public ReadAttribute { ~ReadScenesCurrentGroup() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterScenes * cluster = [[MTRBaseClusterScenes alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeCurrentGroupWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Scenes.CurrentGroup response %@", [value description]); if (error != nil) { @@ -2207,11 +2307,13 @@ class SubscribeAttributeScenesCurrentGroup : public SubscribeAttribute { ~SubscribeAttributeScenesCurrentGroup() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterScenes * cluster = [[MTRBaseClusterScenes alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -2245,12 +2347,14 @@ class ReadScenesSceneValid : public ReadAttribute { ~ReadScenesSceneValid() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterScenes * cluster = [[MTRBaseClusterScenes alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeSceneValidWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Scenes.SceneValid response %@", [value description]); if (error != nil) { @@ -2271,11 +2375,13 @@ class SubscribeAttributeScenesSceneValid : public SubscribeAttribute { ~SubscribeAttributeScenesSceneValid() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterScenes * cluster = [[MTRBaseClusterScenes alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -2309,12 +2415,14 @@ class ReadScenesNameSupport : public ReadAttribute { ~ReadScenesNameSupport() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterScenes * cluster = [[MTRBaseClusterScenes alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNameSupportWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Scenes.NameSupport response %@", [value description]); if (error != nil) { @@ -2335,11 +2443,13 @@ class SubscribeAttributeScenesNameSupport : public SubscribeAttribute { ~SubscribeAttributeScenesNameSupport() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterScenes * cluster = [[MTRBaseClusterScenes alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -2373,12 +2483,14 @@ class ReadScenesLastConfiguredBy : public ReadAttribute { ~ReadScenesLastConfiguredBy() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) ReadAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterScenes * cluster = [[MTRBaseClusterScenes alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeLastConfiguredByWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Scenes.LastConfiguredBy response %@", [value description]); if (error != nil) { @@ -2399,11 +2511,13 @@ class SubscribeAttributeScenesLastConfiguredBy : public SubscribeAttribute { ~SubscribeAttributeScenesLastConfiguredBy() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) ReportAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterScenes * cluster = [[MTRBaseClusterScenes alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -2437,12 +2551,14 @@ class ReadScenesGeneratedCommandList : public ReadAttribute { ~ReadScenesGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterScenes * cluster = [[MTRBaseClusterScenes alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Scenes.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -2463,11 +2579,13 @@ class SubscribeAttributeScenesGeneratedCommandList : public SubscribeAttribute { ~SubscribeAttributeScenesGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterScenes * cluster = [[MTRBaseClusterScenes alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -2501,12 +2619,14 @@ class ReadScenesAcceptedCommandList : public ReadAttribute { ~ReadScenesAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterScenes * cluster = [[MTRBaseClusterScenes alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Scenes.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -2527,11 +2647,13 @@ class SubscribeAttributeScenesAcceptedCommandList : public SubscribeAttribute { ~SubscribeAttributeScenesAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterScenes * cluster = [[MTRBaseClusterScenes alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -2565,12 +2687,14 @@ class ReadScenesAttributeList : public ReadAttribute { ~ReadScenesAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterScenes * cluster = [[MTRBaseClusterScenes alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Scenes.AttributeList response %@", [value description]); if (error != nil) { @@ -2591,11 +2715,13 @@ class SubscribeAttributeScenesAttributeList : public SubscribeAttribute { ~SubscribeAttributeScenesAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterScenes * cluster = [[MTRBaseClusterScenes alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -2629,12 +2755,14 @@ class ReadScenesFeatureMap : public ReadAttribute { ~ReadScenesFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterScenes * cluster = [[MTRBaseClusterScenes alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Scenes.FeatureMap response %@", [value description]); if (error != nil) { @@ -2655,11 +2783,13 @@ class SubscribeAttributeScenesFeatureMap : public SubscribeAttribute { ~SubscribeAttributeScenesFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterScenes * cluster = [[MTRBaseClusterScenes alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -2693,12 +2823,14 @@ class ReadScenesClusterRevision : public ReadAttribute { ~ReadScenesClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterScenes * cluster = [[MTRBaseClusterScenes alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Scenes.ClusterRevision response %@", [value description]); if (error != nil) { @@ -2719,11 +2851,13 @@ class SubscribeAttributeScenesClusterRevision : public SubscribeAttribute { ~SubscribeAttributeScenesClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000005) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRScenes * cluster = [[MTRScenes alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterScenes * cluster = [[MTRBaseClusterScenes alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -2782,12 +2916,12 @@ class OnOffOff : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; __auto_type * params = [[MTROnOffClusterOffParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -2823,12 +2957,12 @@ class OnOffOn : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) command (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; __auto_type * params = [[MTROnOffClusterOnParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -2864,12 +2998,12 @@ class OnOffToggle : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) command (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; __auto_type * params = [[MTROnOffClusterToggleParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -2907,12 +3041,12 @@ class OnOffOffWithEffect : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) command (0x00000040) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; __auto_type * params = [[MTROnOffClusterOffWithEffectParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -2951,12 +3085,12 @@ class OnOffOnWithRecallGlobalScene : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) command (0x00000041) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; __auto_type * params = [[MTROnOffClusterOnWithRecallGlobalSceneParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -2995,12 +3129,12 @@ class OnOffOnWithTimedOff : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) command (0x00000042) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; __auto_type * params = [[MTROnOffClusterOnWithTimedOffParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -3041,12 +3175,12 @@ class ReadOnOffOnOff : public ReadAttribute { ~ReadOnOffOnOff() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OnOff.OnOff response %@", [value description]); if (error != nil) { @@ -3067,11 +3201,11 @@ class SubscribeAttributeOnOffOnOff : public SubscribeAttribute { ~SubscribeAttributeOnOffOnOff() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -3105,12 +3239,12 @@ class ReadOnOffGlobalSceneControl : public ReadAttribute { ~ReadOnOffGlobalSceneControl() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) ReadAttribute (0x00004000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGlobalSceneControlWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OnOff.GlobalSceneControl response %@", [value description]); if (error != nil) { @@ -3131,11 +3265,11 @@ class SubscribeAttributeOnOffGlobalSceneControl : public SubscribeAttribute { ~SubscribeAttributeOnOffGlobalSceneControl() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) ReportAttribute (0x00004000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -3169,12 +3303,12 @@ class ReadOnOffOnTime : public ReadAttribute { ~ReadOnOffOnTime() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) ReadAttribute (0x00004001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeOnTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OnOff.OnTime response %@", [value description]); if (error != nil) { @@ -3198,13 +3332,13 @@ class WriteOnOffOnTime : public WriteAttribute { ~WriteOnOffOnTime() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) WriteAttribute (0x00004001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; @@ -3233,11 +3367,11 @@ class SubscribeAttributeOnOffOnTime : public SubscribeAttribute { ~SubscribeAttributeOnOffOnTime() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) ReportAttribute (0x00004001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -3271,12 +3405,12 @@ class ReadOnOffOffWaitTime : public ReadAttribute { ~ReadOnOffOffWaitTime() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) ReadAttribute (0x00004002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeOffWaitTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OnOff.OffWaitTime response %@", [value description]); if (error != nil) { @@ -3300,13 +3434,13 @@ class WriteOnOffOffWaitTime : public WriteAttribute { ~WriteOnOffOffWaitTime() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) WriteAttribute (0x00004002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; @@ -3335,11 +3469,11 @@ class SubscribeAttributeOnOffOffWaitTime : public SubscribeAttribute { ~SubscribeAttributeOnOffOffWaitTime() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) ReportAttribute (0x00004002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -3373,12 +3507,12 @@ class ReadOnOffStartUpOnOff : public ReadAttribute { ~ReadOnOffStartUpOnOff() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) ReadAttribute (0x00004003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeStartUpOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OnOff.StartUpOnOff response %@", [value description]); if (error != nil) { @@ -3402,13 +3536,13 @@ class WriteOnOffStartUpOnOff : public WriteAttribute { ~WriteOnOffStartUpOnOff() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) WriteAttribute (0x00004003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithUnsignedChar:mValue]; @@ -3437,11 +3571,11 @@ class SubscribeAttributeOnOffStartUpOnOff : public SubscribeAttribute { ~SubscribeAttributeOnOffStartUpOnOff() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) ReportAttribute (0x00004003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -3475,12 +3609,12 @@ class ReadOnOffGeneratedCommandList : public ReadAttribute { ~ReadOnOffGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"OnOff.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -3501,11 +3635,11 @@ class SubscribeAttributeOnOffGeneratedCommandList : public SubscribeAttribute { ~SubscribeAttributeOnOffGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -3539,12 +3673,12 @@ class ReadOnOffAcceptedCommandList : public ReadAttribute { ~ReadOnOffAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"OnOff.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -3565,11 +3699,11 @@ class SubscribeAttributeOnOffAcceptedCommandList : public SubscribeAttribute { ~SubscribeAttributeOnOffAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -3603,12 +3737,12 @@ class ReadOnOffAttributeList : public ReadAttribute { ~ReadOnOffAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"OnOff.AttributeList response %@", [value description]); if (error != nil) { @@ -3629,11 +3763,11 @@ class SubscribeAttributeOnOffAttributeList : public SubscribeAttribute { ~SubscribeAttributeOnOffAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -3667,12 +3801,12 @@ class ReadOnOffFeatureMap : public ReadAttribute { ~ReadOnOffFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OnOff.FeatureMap response %@", [value description]); if (error != nil) { @@ -3693,11 +3827,11 @@ class SubscribeAttributeOnOffFeatureMap : public SubscribeAttribute { ~SubscribeAttributeOnOffFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -3731,12 +3865,12 @@ class ReadOnOffClusterRevision : public ReadAttribute { ~ReadOnOffClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OnOff.ClusterRevision response %@", [value description]); if (error != nil) { @@ -3757,11 +3891,11 @@ class SubscribeAttributeOnOffClusterRevision : public SubscribeAttribute { ~SubscribeAttributeOnOffClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000006) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROnOff * cluster = [[MTROnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -3812,14 +3946,13 @@ class ReadOnOffSwitchConfigurationSwitchType : public ReadAttribute { ~ReadOnOffSwitchConfigurationSwitchType() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000007) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROnOffSwitchConfiguration * cluster = [[MTROnOffSwitchConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOnOffSwitchConfiguration * cluster = + [[MTRBaseClusterOnOffSwitchConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeSwitchTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OnOffSwitchConfiguration.SwitchType response %@", [value description]); if (error != nil) { @@ -3840,13 +3973,12 @@ class SubscribeAttributeOnOffSwitchConfigurationSwitchType : public SubscribeAtt ~SubscribeAttributeOnOffSwitchConfigurationSwitchType() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000007) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROnOffSwitchConfiguration * cluster = [[MTROnOffSwitchConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOnOffSwitchConfiguration * cluster = + [[MTRBaseClusterOnOffSwitchConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -3880,14 +4012,13 @@ class ReadOnOffSwitchConfigurationSwitchActions : public ReadAttribute { ~ReadOnOffSwitchConfigurationSwitchActions() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000007) ReadAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROnOffSwitchConfiguration * cluster = [[MTROnOffSwitchConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOnOffSwitchConfiguration * cluster = + [[MTRBaseClusterOnOffSwitchConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeSwitchActionsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OnOffSwitchConfiguration.SwitchActions response %@", [value description]); if (error != nil) { @@ -3911,15 +4042,14 @@ class WriteOnOffSwitchConfigurationSwitchActions : public WriteAttribute { ~WriteOnOffSwitchConfigurationSwitchActions() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000007) WriteAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROnOffSwitchConfiguration * cluster = [[MTROnOffSwitchConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOnOffSwitchConfiguration * cluster = + [[MTRBaseClusterOnOffSwitchConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; @@ -3948,13 +4078,12 @@ class SubscribeAttributeOnOffSwitchConfigurationSwitchActions : public Subscribe ~SubscribeAttributeOnOffSwitchConfigurationSwitchActions() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000007) ReportAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROnOffSwitchConfiguration * cluster = [[MTROnOffSwitchConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOnOffSwitchConfiguration * cluster = + [[MTRBaseClusterOnOffSwitchConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -3988,14 +4117,13 @@ class ReadOnOffSwitchConfigurationGeneratedCommandList : public ReadAttribute { ~ReadOnOffSwitchConfigurationGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000007) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROnOffSwitchConfiguration * cluster = [[MTROnOffSwitchConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOnOffSwitchConfiguration * cluster = + [[MTRBaseClusterOnOffSwitchConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"OnOffSwitchConfiguration.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -4016,13 +4144,12 @@ class SubscribeAttributeOnOffSwitchConfigurationGeneratedCommandList : public Su ~SubscribeAttributeOnOffSwitchConfigurationGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000007) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROnOffSwitchConfiguration * cluster = [[MTROnOffSwitchConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOnOffSwitchConfiguration * cluster = + [[MTRBaseClusterOnOffSwitchConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -4056,14 +4183,13 @@ class ReadOnOffSwitchConfigurationAcceptedCommandList : public ReadAttribute { ~ReadOnOffSwitchConfigurationAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000007) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROnOffSwitchConfiguration * cluster = [[MTROnOffSwitchConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOnOffSwitchConfiguration * cluster = + [[MTRBaseClusterOnOffSwitchConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"OnOffSwitchConfiguration.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -4084,13 +4210,12 @@ class SubscribeAttributeOnOffSwitchConfigurationAcceptedCommandList : public Sub ~SubscribeAttributeOnOffSwitchConfigurationAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000007) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROnOffSwitchConfiguration * cluster = [[MTROnOffSwitchConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOnOffSwitchConfiguration * cluster = + [[MTRBaseClusterOnOffSwitchConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -4124,14 +4249,13 @@ class ReadOnOffSwitchConfigurationAttributeList : public ReadAttribute { ~ReadOnOffSwitchConfigurationAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000007) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROnOffSwitchConfiguration * cluster = [[MTROnOffSwitchConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOnOffSwitchConfiguration * cluster = + [[MTRBaseClusterOnOffSwitchConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"OnOffSwitchConfiguration.AttributeList response %@", [value description]); if (error != nil) { @@ -4152,13 +4276,12 @@ class SubscribeAttributeOnOffSwitchConfigurationAttributeList : public Subscribe ~SubscribeAttributeOnOffSwitchConfigurationAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000007) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROnOffSwitchConfiguration * cluster = [[MTROnOffSwitchConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOnOffSwitchConfiguration * cluster = + [[MTRBaseClusterOnOffSwitchConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -4192,14 +4315,13 @@ class ReadOnOffSwitchConfigurationFeatureMap : public ReadAttribute { ~ReadOnOffSwitchConfigurationFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000007) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROnOffSwitchConfiguration * cluster = [[MTROnOffSwitchConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOnOffSwitchConfiguration * cluster = + [[MTRBaseClusterOnOffSwitchConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OnOffSwitchConfiguration.FeatureMap response %@", [value description]); if (error != nil) { @@ -4220,13 +4342,12 @@ class SubscribeAttributeOnOffSwitchConfigurationFeatureMap : public SubscribeAtt ~SubscribeAttributeOnOffSwitchConfigurationFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000007) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROnOffSwitchConfiguration * cluster = [[MTROnOffSwitchConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOnOffSwitchConfiguration * cluster = + [[MTRBaseClusterOnOffSwitchConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -4260,14 +4381,13 @@ class ReadOnOffSwitchConfigurationClusterRevision : public ReadAttribute { ~ReadOnOffSwitchConfigurationClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000007) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROnOffSwitchConfiguration * cluster = [[MTROnOffSwitchConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOnOffSwitchConfiguration * cluster = + [[MTRBaseClusterOnOffSwitchConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OnOffSwitchConfiguration.ClusterRevision response %@", [value description]); if (error != nil) { @@ -4288,13 +4408,12 @@ class SubscribeAttributeOnOffSwitchConfigurationClusterRevision : public Subscri ~SubscribeAttributeOnOffSwitchConfigurationClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000007) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROnOffSwitchConfiguration * cluster = [[MTROnOffSwitchConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOnOffSwitchConfiguration * cluster = + [[MTRBaseClusterOnOffSwitchConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -4369,12 +4488,14 @@ class LevelControlMoveToLevel : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRLevelControlClusterMoveToLevelParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -4419,12 +4540,14 @@ class LevelControlMove : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) command (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRLevelControlClusterMoveParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -4470,12 +4593,14 @@ class LevelControlStep : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) command (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRLevelControlClusterStepParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -4519,12 +4644,14 @@ class LevelControlStop : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) command (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRLevelControlClusterStopParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -4565,12 +4692,14 @@ class LevelControlMoveToLevelWithOnOff : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) command (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRLevelControlClusterMoveToLevelWithOnOffParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -4611,12 +4740,14 @@ class LevelControlMoveWithOnOff : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) command (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRLevelControlClusterMoveWithOnOffParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -4658,12 +4789,14 @@ class LevelControlStepWithOnOff : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) command (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRLevelControlClusterStepWithOnOffParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -4703,12 +4836,14 @@ class LevelControlStopWithOnOff : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) command (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRLevelControlClusterStopWithOnOffParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -4745,12 +4880,14 @@ class LevelControlMoveToClosestFrequency : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) command (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRLevelControlClusterMoveToClosestFrequencyParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -4789,12 +4926,14 @@ class ReadLevelControlCurrentLevel : public ReadAttribute { ~ReadLevelControlCurrentLevel() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"LevelControl.CurrentLevel response %@", [value description]); if (error != nil) { @@ -4815,11 +4954,13 @@ class SubscribeAttributeLevelControlCurrentLevel : public SubscribeAttribute { ~SubscribeAttributeLevelControlCurrentLevel() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -4853,12 +4994,14 @@ class ReadLevelControlRemainingTime : public ReadAttribute { ~ReadLevelControlRemainingTime() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRemainingTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"LevelControl.RemainingTime response %@", [value description]); if (error != nil) { @@ -4879,11 +5022,13 @@ class SubscribeAttributeLevelControlRemainingTime : public SubscribeAttribute { ~SubscribeAttributeLevelControlRemainingTime() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -4917,12 +5062,14 @@ class ReadLevelControlMinLevel : public ReadAttribute { ~ReadLevelControlMinLevel() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMinLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"LevelControl.MinLevel response %@", [value description]); if (error != nil) { @@ -4943,11 +5090,13 @@ class SubscribeAttributeLevelControlMinLevel : public SubscribeAttribute { ~SubscribeAttributeLevelControlMinLevel() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -4981,12 +5130,14 @@ class ReadLevelControlMaxLevel : public ReadAttribute { ~ReadLevelControlMaxLevel() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMaxLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"LevelControl.MaxLevel response %@", [value description]); if (error != nil) { @@ -5007,11 +5158,13 @@ class SubscribeAttributeLevelControlMaxLevel : public SubscribeAttribute { ~SubscribeAttributeLevelControlMaxLevel() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -5045,12 +5198,14 @@ class ReadLevelControlCurrentFrequency : public ReadAttribute { ~ReadLevelControlCurrentFrequency() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeCurrentFrequencyWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"LevelControl.CurrentFrequency response %@", [value description]); if (error != nil) { @@ -5071,11 +5226,13 @@ class SubscribeAttributeLevelControlCurrentFrequency : public SubscribeAttribute ~SubscribeAttributeLevelControlCurrentFrequency() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -5109,12 +5266,14 @@ class ReadLevelControlMinFrequency : public ReadAttribute { ~ReadLevelControlMinFrequency() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReadAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMinFrequencyWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"LevelControl.MinFrequency response %@", [value description]); if (error != nil) { @@ -5135,11 +5294,13 @@ class SubscribeAttributeLevelControlMinFrequency : public SubscribeAttribute { ~SubscribeAttributeLevelControlMinFrequency() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReportAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -5173,12 +5334,14 @@ class ReadLevelControlMaxFrequency : public ReadAttribute { ~ReadLevelControlMaxFrequency() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReadAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMaxFrequencyWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"LevelControl.MaxFrequency response %@", [value description]); if (error != nil) { @@ -5199,11 +5362,13 @@ class SubscribeAttributeLevelControlMaxFrequency : public SubscribeAttribute { ~SubscribeAttributeLevelControlMaxFrequency() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReportAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -5237,12 +5402,14 @@ class ReadLevelControlOptions : public ReadAttribute { ~ReadLevelControlOptions() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReadAttribute (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeOptionsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"LevelControl.Options response %@", [value description]); if (error != nil) { @@ -5266,13 +5433,15 @@ class WriteLevelControlOptions : public WriteAttribute { ~WriteLevelControlOptions() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) WriteAttribute (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; @@ -5301,11 +5470,13 @@ class SubscribeAttributeLevelControlOptions : public SubscribeAttribute { ~SubscribeAttributeLevelControlOptions() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReportAttribute (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -5339,12 +5510,14 @@ class ReadLevelControlOnOffTransitionTime : public ReadAttribute { ~ReadLevelControlOnOffTransitionTime() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReadAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeOnOffTransitionTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"LevelControl.OnOffTransitionTime response %@", [value description]); if (error != nil) { @@ -5368,13 +5541,15 @@ class WriteLevelControlOnOffTransitionTime : public WriteAttribute { ~WriteLevelControlOnOffTransitionTime() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) WriteAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; @@ -5403,11 +5578,13 @@ class SubscribeAttributeLevelControlOnOffTransitionTime : public SubscribeAttrib ~SubscribeAttributeLevelControlOnOffTransitionTime() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReportAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -5441,12 +5618,14 @@ class ReadLevelControlOnLevel : public ReadAttribute { ~ReadLevelControlOnLevel() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReadAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeOnLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"LevelControl.OnLevel response %@", [value description]); if (error != nil) { @@ -5470,13 +5649,15 @@ class WriteLevelControlOnLevel : public WriteAttribute { ~WriteLevelControlOnLevel() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) WriteAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithUnsignedChar:mValue]; @@ -5505,11 +5686,13 @@ class SubscribeAttributeLevelControlOnLevel : public SubscribeAttribute { ~SubscribeAttributeLevelControlOnLevel() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReportAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -5543,12 +5726,14 @@ class ReadLevelControlOnTransitionTime : public ReadAttribute { ~ReadLevelControlOnTransitionTime() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReadAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeOnTransitionTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"LevelControl.OnTransitionTime response %@", [value description]); if (error != nil) { @@ -5572,13 +5757,15 @@ class WriteLevelControlOnTransitionTime : public WriteAttribute { ~WriteLevelControlOnTransitionTime() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) WriteAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithUnsignedShort:mValue]; @@ -5607,11 +5794,13 @@ class SubscribeAttributeLevelControlOnTransitionTime : public SubscribeAttribute ~SubscribeAttributeLevelControlOnTransitionTime() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReportAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -5645,12 +5834,14 @@ class ReadLevelControlOffTransitionTime : public ReadAttribute { ~ReadLevelControlOffTransitionTime() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReadAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeOffTransitionTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"LevelControl.OffTransitionTime response %@", [value description]); if (error != nil) { @@ -5674,13 +5865,15 @@ class WriteLevelControlOffTransitionTime : public WriteAttribute { ~WriteLevelControlOffTransitionTime() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) WriteAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithUnsignedShort:mValue]; @@ -5709,11 +5902,13 @@ class SubscribeAttributeLevelControlOffTransitionTime : public SubscribeAttribut ~SubscribeAttributeLevelControlOffTransitionTime() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReportAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -5747,12 +5942,14 @@ class ReadLevelControlDefaultMoveRate : public ReadAttribute { ~ReadLevelControlDefaultMoveRate() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReadAttribute (0x00000014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeDefaultMoveRateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"LevelControl.DefaultMoveRate response %@", [value description]); if (error != nil) { @@ -5776,13 +5973,15 @@ class WriteLevelControlDefaultMoveRate : public WriteAttribute { ~WriteLevelControlDefaultMoveRate() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) WriteAttribute (0x00000014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithUnsignedChar:mValue]; @@ -5811,11 +6010,13 @@ class SubscribeAttributeLevelControlDefaultMoveRate : public SubscribeAttribute ~SubscribeAttributeLevelControlDefaultMoveRate() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReportAttribute (0x00000014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -5849,12 +6050,14 @@ class ReadLevelControlStartUpCurrentLevel : public ReadAttribute { ~ReadLevelControlStartUpCurrentLevel() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReadAttribute (0x00004000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeStartUpCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"LevelControl.StartUpCurrentLevel response %@", [value description]); if (error != nil) { @@ -5878,13 +6081,15 @@ class WriteLevelControlStartUpCurrentLevel : public WriteAttribute { ~WriteLevelControlStartUpCurrentLevel() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) WriteAttribute (0x00004000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithUnsignedChar:mValue]; @@ -5913,11 +6118,13 @@ class SubscribeAttributeLevelControlStartUpCurrentLevel : public SubscribeAttrib ~SubscribeAttributeLevelControlStartUpCurrentLevel() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReportAttribute (0x00004000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -5951,12 +6158,14 @@ class ReadLevelControlGeneratedCommandList : public ReadAttribute { ~ReadLevelControlGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"LevelControl.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -5977,11 +6186,13 @@ class SubscribeAttributeLevelControlGeneratedCommandList : public SubscribeAttri ~SubscribeAttributeLevelControlGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -6015,12 +6226,14 @@ class ReadLevelControlAcceptedCommandList : public ReadAttribute { ~ReadLevelControlAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"LevelControl.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -6041,11 +6254,13 @@ class SubscribeAttributeLevelControlAcceptedCommandList : public SubscribeAttrib ~SubscribeAttributeLevelControlAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -6079,12 +6294,14 @@ class ReadLevelControlAttributeList : public ReadAttribute { ~ReadLevelControlAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"LevelControl.AttributeList response %@", [value description]); if (error != nil) { @@ -6105,11 +6322,13 @@ class SubscribeAttributeLevelControlAttributeList : public SubscribeAttribute { ~SubscribeAttributeLevelControlAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -6143,12 +6362,14 @@ class ReadLevelControlFeatureMap : public ReadAttribute { ~ReadLevelControlFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"LevelControl.FeatureMap response %@", [value description]); if (error != nil) { @@ -6169,11 +6390,13 @@ class SubscribeAttributeLevelControlFeatureMap : public SubscribeAttribute { ~SubscribeAttributeLevelControlFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -6207,12 +6430,14 @@ class ReadLevelControlClusterRevision : public ReadAttribute { ~ReadLevelControlClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"LevelControl.ClusterRevision response %@", [value description]); if (error != nil) { @@ -6233,11 +6458,13 @@ class SubscribeAttributeLevelControlClusterRevision : public SubscribeAttribute ~SubscribeAttributeLevelControlClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000008) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLevelControl * cluster = [[MTRLevelControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -6295,12 +6522,14 @@ class ReadBinaryInputBasicActiveText : public ReadAttribute { ~ReadBinaryInputBasicActiveText() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinaryInputBasic * cluster = [[MTRBaseClusterBinaryInputBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeActiveTextWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"BinaryInputBasic.ActiveText response %@", [value description]); if (error != nil) { @@ -6324,13 +6553,15 @@ class WriteBinaryInputBasicActiveText : public WriteAttribute { ~WriteBinaryInputBasicActiveText() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) WriteAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinaryInputBasic * cluster = [[MTRBaseClusterBinaryInputBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSString * _Nonnull value = [[NSString alloc] initWithBytes:mValue.data() @@ -6361,11 +6592,13 @@ class SubscribeAttributeBinaryInputBasicActiveText : public SubscribeAttribute { ~SubscribeAttributeBinaryInputBasicActiveText() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinaryInputBasic * cluster = [[MTRBaseClusterBinaryInputBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -6399,12 +6632,14 @@ class ReadBinaryInputBasicDescription : public ReadAttribute { ~ReadBinaryInputBasicDescription() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReadAttribute (0x0000001C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinaryInputBasic * cluster = [[MTRBaseClusterBinaryInputBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeDescriptionWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"BinaryInputBasic.Description response %@", [value description]); if (error != nil) { @@ -6428,13 +6663,15 @@ class WriteBinaryInputBasicDescription : public WriteAttribute { ~WriteBinaryInputBasicDescription() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) WriteAttribute (0x0000001C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinaryInputBasic * cluster = [[MTRBaseClusterBinaryInputBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSString * _Nonnull value = [[NSString alloc] initWithBytes:mValue.data() @@ -6465,11 +6702,13 @@ class SubscribeAttributeBinaryInputBasicDescription : public SubscribeAttribute ~SubscribeAttributeBinaryInputBasicDescription() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReportAttribute (0x0000001C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinaryInputBasic * cluster = [[MTRBaseClusterBinaryInputBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -6503,12 +6742,14 @@ class ReadBinaryInputBasicInactiveText : public ReadAttribute { ~ReadBinaryInputBasicInactiveText() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReadAttribute (0x0000002E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinaryInputBasic * cluster = [[MTRBaseClusterBinaryInputBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeInactiveTextWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"BinaryInputBasic.InactiveText response %@", [value description]); if (error != nil) { @@ -6532,13 +6773,15 @@ class WriteBinaryInputBasicInactiveText : public WriteAttribute { ~WriteBinaryInputBasicInactiveText() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) WriteAttribute (0x0000002E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinaryInputBasic * cluster = [[MTRBaseClusterBinaryInputBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSString * _Nonnull value = [[NSString alloc] initWithBytes:mValue.data() @@ -6569,11 +6812,13 @@ class SubscribeAttributeBinaryInputBasicInactiveText : public SubscribeAttribute ~SubscribeAttributeBinaryInputBasicInactiveText() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReportAttribute (0x0000002E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinaryInputBasic * cluster = [[MTRBaseClusterBinaryInputBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -6607,12 +6852,14 @@ class ReadBinaryInputBasicOutOfService : public ReadAttribute { ~ReadBinaryInputBasicOutOfService() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReadAttribute (0x00000051) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinaryInputBasic * cluster = [[MTRBaseClusterBinaryInputBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeOutOfServiceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BinaryInputBasic.OutOfService response %@", [value description]); if (error != nil) { @@ -6636,13 +6883,15 @@ class WriteBinaryInputBasicOutOfService : public WriteAttribute { ~WriteBinaryInputBasicOutOfService() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) WriteAttribute (0x00000051) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinaryInputBasic * cluster = [[MTRBaseClusterBinaryInputBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithBool:mValue]; @@ -6671,11 +6920,13 @@ class SubscribeAttributeBinaryInputBasicOutOfService : public SubscribeAttribute ~SubscribeAttributeBinaryInputBasicOutOfService() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReportAttribute (0x00000051) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinaryInputBasic * cluster = [[MTRBaseClusterBinaryInputBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -6709,12 +6960,14 @@ class ReadBinaryInputBasicPolarity : public ReadAttribute { ~ReadBinaryInputBasicPolarity() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReadAttribute (0x00000054) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinaryInputBasic * cluster = [[MTRBaseClusterBinaryInputBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePolarityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BinaryInputBasic.Polarity response %@", [value description]); if (error != nil) { @@ -6735,11 +6988,13 @@ class SubscribeAttributeBinaryInputBasicPolarity : public SubscribeAttribute { ~SubscribeAttributeBinaryInputBasicPolarity() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReportAttribute (0x00000054) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinaryInputBasic * cluster = [[MTRBaseClusterBinaryInputBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -6773,12 +7028,14 @@ class ReadBinaryInputBasicPresentValue : public ReadAttribute { ~ReadBinaryInputBasicPresentValue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReadAttribute (0x00000055) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinaryInputBasic * cluster = [[MTRBaseClusterBinaryInputBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePresentValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BinaryInputBasic.PresentValue response %@", [value description]); if (error != nil) { @@ -6802,13 +7059,15 @@ class WriteBinaryInputBasicPresentValue : public WriteAttribute { ~WriteBinaryInputBasicPresentValue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) WriteAttribute (0x00000055) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinaryInputBasic * cluster = [[MTRBaseClusterBinaryInputBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithBool:mValue]; @@ -6837,11 +7096,13 @@ class SubscribeAttributeBinaryInputBasicPresentValue : public SubscribeAttribute ~SubscribeAttributeBinaryInputBasicPresentValue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReportAttribute (0x00000055) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinaryInputBasic * cluster = [[MTRBaseClusterBinaryInputBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -6875,12 +7136,14 @@ class ReadBinaryInputBasicReliability : public ReadAttribute { ~ReadBinaryInputBasicReliability() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReadAttribute (0x00000067) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinaryInputBasic * cluster = [[MTRBaseClusterBinaryInputBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeReliabilityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BinaryInputBasic.Reliability response %@", [value description]); if (error != nil) { @@ -6904,13 +7167,15 @@ class WriteBinaryInputBasicReliability : public WriteAttribute { ~WriteBinaryInputBasicReliability() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) WriteAttribute (0x00000067) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinaryInputBasic * cluster = [[MTRBaseClusterBinaryInputBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; @@ -6939,11 +7204,13 @@ class SubscribeAttributeBinaryInputBasicReliability : public SubscribeAttribute ~SubscribeAttributeBinaryInputBasicReliability() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReportAttribute (0x00000067) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinaryInputBasic * cluster = [[MTRBaseClusterBinaryInputBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -6977,12 +7244,14 @@ class ReadBinaryInputBasicStatusFlags : public ReadAttribute { ~ReadBinaryInputBasicStatusFlags() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReadAttribute (0x0000006F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinaryInputBasic * cluster = [[MTRBaseClusterBinaryInputBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeStatusFlagsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BinaryInputBasic.StatusFlags response %@", [value description]); if (error != nil) { @@ -7003,11 +7272,13 @@ class SubscribeAttributeBinaryInputBasicStatusFlags : public SubscribeAttribute ~SubscribeAttributeBinaryInputBasicStatusFlags() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReportAttribute (0x0000006F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinaryInputBasic * cluster = [[MTRBaseClusterBinaryInputBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -7041,12 +7312,14 @@ class ReadBinaryInputBasicApplicationType : public ReadAttribute { ~ReadBinaryInputBasicApplicationType() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReadAttribute (0x00000100) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinaryInputBasic * cluster = [[MTRBaseClusterBinaryInputBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeApplicationTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BinaryInputBasic.ApplicationType response %@", [value description]); if (error != nil) { @@ -7067,11 +7340,13 @@ class SubscribeAttributeBinaryInputBasicApplicationType : public SubscribeAttrib ~SubscribeAttributeBinaryInputBasicApplicationType() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReportAttribute (0x00000100) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinaryInputBasic * cluster = [[MTRBaseClusterBinaryInputBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -7105,12 +7380,14 @@ class ReadBinaryInputBasicGeneratedCommandList : public ReadAttribute { ~ReadBinaryInputBasicGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinaryInputBasic * cluster = [[MTRBaseClusterBinaryInputBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"BinaryInputBasic.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -7131,11 +7408,13 @@ class SubscribeAttributeBinaryInputBasicGeneratedCommandList : public SubscribeA ~SubscribeAttributeBinaryInputBasicGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinaryInputBasic * cluster = [[MTRBaseClusterBinaryInputBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -7169,12 +7448,14 @@ class ReadBinaryInputBasicAcceptedCommandList : public ReadAttribute { ~ReadBinaryInputBasicAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinaryInputBasic * cluster = [[MTRBaseClusterBinaryInputBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"BinaryInputBasic.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -7195,11 +7476,13 @@ class SubscribeAttributeBinaryInputBasicAcceptedCommandList : public SubscribeAt ~SubscribeAttributeBinaryInputBasicAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinaryInputBasic * cluster = [[MTRBaseClusterBinaryInputBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -7233,12 +7516,14 @@ class ReadBinaryInputBasicAttributeList : public ReadAttribute { ~ReadBinaryInputBasicAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinaryInputBasic * cluster = [[MTRBaseClusterBinaryInputBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"BinaryInputBasic.AttributeList response %@", [value description]); if (error != nil) { @@ -7259,11 +7544,13 @@ class SubscribeAttributeBinaryInputBasicAttributeList : public SubscribeAttribut ~SubscribeAttributeBinaryInputBasicAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinaryInputBasic * cluster = [[MTRBaseClusterBinaryInputBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -7297,12 +7584,14 @@ class ReadBinaryInputBasicFeatureMap : public ReadAttribute { ~ReadBinaryInputBasicFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinaryInputBasic * cluster = [[MTRBaseClusterBinaryInputBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BinaryInputBasic.FeatureMap response %@", [value description]); if (error != nil) { @@ -7323,11 +7612,13 @@ class SubscribeAttributeBinaryInputBasicFeatureMap : public SubscribeAttribute { ~SubscribeAttributeBinaryInputBasicFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinaryInputBasic * cluster = [[MTRBaseClusterBinaryInputBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -7361,12 +7652,14 @@ class ReadBinaryInputBasicClusterRevision : public ReadAttribute { ~ReadBinaryInputBasicClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinaryInputBasic * cluster = [[MTRBaseClusterBinaryInputBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BinaryInputBasic.ClusterRevision response %@", [value description]); if (error != nil) { @@ -7387,11 +7680,13 @@ class SubscribeAttributeBinaryInputBasicClusterRevision : public SubscribeAttrib ~SubscribeAttributeBinaryInputBasicClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000000F) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinaryInputBasic * cluster = [[MTRBinaryInputBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinaryInputBasic * cluster = [[MTRBaseClusterBinaryInputBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -7444,12 +7739,14 @@ class ReadDescriptorDeviceList : public ReadAttribute { ~ReadDescriptorDeviceList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001D) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDescriptor * cluster = [[MTRDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDescriptor * cluster = [[MTRBaseClusterDescriptor alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeDeviceListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Descriptor.DeviceList response %@", [value description]); if (error != nil) { @@ -7470,11 +7767,13 @@ class SubscribeAttributeDescriptorDeviceList : public SubscribeAttribute { ~SubscribeAttributeDescriptorDeviceList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001D) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDescriptor * cluster = [[MTRDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDescriptor * cluster = [[MTRBaseClusterDescriptor alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -7508,12 +7807,14 @@ class ReadDescriptorServerList : public ReadAttribute { ~ReadDescriptorServerList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001D) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDescriptor * cluster = [[MTRDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDescriptor * cluster = [[MTRBaseClusterDescriptor alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeServerListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Descriptor.ServerList response %@", [value description]); if (error != nil) { @@ -7534,11 +7835,13 @@ class SubscribeAttributeDescriptorServerList : public SubscribeAttribute { ~SubscribeAttributeDescriptorServerList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001D) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDescriptor * cluster = [[MTRDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDescriptor * cluster = [[MTRBaseClusterDescriptor alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -7572,12 +7875,14 @@ class ReadDescriptorClientList : public ReadAttribute { ~ReadDescriptorClientList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001D) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDescriptor * cluster = [[MTRDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDescriptor * cluster = [[MTRBaseClusterDescriptor alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClientListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Descriptor.ClientList response %@", [value description]); if (error != nil) { @@ -7598,11 +7903,13 @@ class SubscribeAttributeDescriptorClientList : public SubscribeAttribute { ~SubscribeAttributeDescriptorClientList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001D) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDescriptor * cluster = [[MTRDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDescriptor * cluster = [[MTRBaseClusterDescriptor alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -7636,12 +7943,14 @@ class ReadDescriptorPartsList : public ReadAttribute { ~ReadDescriptorPartsList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001D) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDescriptor * cluster = [[MTRDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDescriptor * cluster = [[MTRBaseClusterDescriptor alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePartsListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Descriptor.PartsList response %@", [value description]); if (error != nil) { @@ -7662,11 +7971,13 @@ class SubscribeAttributeDescriptorPartsList : public SubscribeAttribute { ~SubscribeAttributeDescriptorPartsList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001D) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDescriptor * cluster = [[MTRDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDescriptor * cluster = [[MTRBaseClusterDescriptor alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -7700,12 +8011,14 @@ class ReadDescriptorGeneratedCommandList : public ReadAttribute { ~ReadDescriptorGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001D) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDescriptor * cluster = [[MTRDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDescriptor * cluster = [[MTRBaseClusterDescriptor alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Descriptor.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -7726,11 +8039,13 @@ class SubscribeAttributeDescriptorGeneratedCommandList : public SubscribeAttribu ~SubscribeAttributeDescriptorGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001D) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDescriptor * cluster = [[MTRDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDescriptor * cluster = [[MTRBaseClusterDescriptor alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -7764,12 +8079,14 @@ class ReadDescriptorAcceptedCommandList : public ReadAttribute { ~ReadDescriptorAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001D) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDescriptor * cluster = [[MTRDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDescriptor * cluster = [[MTRBaseClusterDescriptor alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Descriptor.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -7790,11 +8107,13 @@ class SubscribeAttributeDescriptorAcceptedCommandList : public SubscribeAttribut ~SubscribeAttributeDescriptorAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001D) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDescriptor * cluster = [[MTRDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDescriptor * cluster = [[MTRBaseClusterDescriptor alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -7828,12 +8147,14 @@ class ReadDescriptorAttributeList : public ReadAttribute { ~ReadDescriptorAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001D) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDescriptor * cluster = [[MTRDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDescriptor * cluster = [[MTRBaseClusterDescriptor alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Descriptor.AttributeList response %@", [value description]); if (error != nil) { @@ -7854,11 +8175,13 @@ class SubscribeAttributeDescriptorAttributeList : public SubscribeAttribute { ~SubscribeAttributeDescriptorAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001D) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDescriptor * cluster = [[MTRDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDescriptor * cluster = [[MTRBaseClusterDescriptor alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -7892,12 +8215,14 @@ class ReadDescriptorFeatureMap : public ReadAttribute { ~ReadDescriptorFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001D) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDescriptor * cluster = [[MTRDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDescriptor * cluster = [[MTRBaseClusterDescriptor alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Descriptor.FeatureMap response %@", [value description]); if (error != nil) { @@ -7918,11 +8243,13 @@ class SubscribeAttributeDescriptorFeatureMap : public SubscribeAttribute { ~SubscribeAttributeDescriptorFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001D) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDescriptor * cluster = [[MTRDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDescriptor * cluster = [[MTRBaseClusterDescriptor alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -7956,12 +8283,14 @@ class ReadDescriptorClusterRevision : public ReadAttribute { ~ReadDescriptorClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001D) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDescriptor * cluster = [[MTRDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDescriptor * cluster = [[MTRBaseClusterDescriptor alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Descriptor.ClusterRevision response %@", [value description]); if (error != nil) { @@ -7982,11 +8311,13 @@ class SubscribeAttributeDescriptorClusterRevision : public SubscribeAttribute { ~SubscribeAttributeDescriptorClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001D) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDescriptor * cluster = [[MTRDescriptor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDescriptor * cluster = [[MTRBaseClusterDescriptor alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -8036,12 +8367,14 @@ class ReadBindingBinding : public ReadAttribute { ~ReadBindingBinding() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001E) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinding * cluster = [[MTRBinding alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinding * cluster = [[MTRBaseClusterBinding alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; [cluster readAttributeBindingWithParams:params @@ -8069,13 +8402,15 @@ class WriteBindingBinding : public WriteAttribute { ~WriteBindingBinding() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001E) WriteAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinding * cluster = [[MTRBinding alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinding * cluster = [[MTRBaseClusterBinding alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSArray * _Nonnull value; @@ -8135,11 +8470,13 @@ class SubscribeAttributeBindingBinding : public SubscribeAttribute { ~SubscribeAttributeBindingBinding() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001E) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinding * cluster = [[MTRBinding alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinding * cluster = [[MTRBaseClusterBinding alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -8173,12 +8510,14 @@ class ReadBindingGeneratedCommandList : public ReadAttribute { ~ReadBindingGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001E) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinding * cluster = [[MTRBinding alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinding * cluster = [[MTRBaseClusterBinding alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Binding.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -8199,11 +8538,13 @@ class SubscribeAttributeBindingGeneratedCommandList : public SubscribeAttribute ~SubscribeAttributeBindingGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001E) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinding * cluster = [[MTRBinding alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinding * cluster = [[MTRBaseClusterBinding alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -8237,12 +8578,14 @@ class ReadBindingAcceptedCommandList : public ReadAttribute { ~ReadBindingAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001E) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinding * cluster = [[MTRBinding alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinding * cluster = [[MTRBaseClusterBinding alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Binding.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -8263,11 +8606,13 @@ class SubscribeAttributeBindingAcceptedCommandList : public SubscribeAttribute { ~SubscribeAttributeBindingAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001E) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinding * cluster = [[MTRBinding alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinding * cluster = [[MTRBaseClusterBinding alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -8301,12 +8646,14 @@ class ReadBindingAttributeList : public ReadAttribute { ~ReadBindingAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001E) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinding * cluster = [[MTRBinding alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinding * cluster = [[MTRBaseClusterBinding alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Binding.AttributeList response %@", [value description]); if (error != nil) { @@ -8327,11 +8674,13 @@ class SubscribeAttributeBindingAttributeList : public SubscribeAttribute { ~SubscribeAttributeBindingAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001E) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinding * cluster = [[MTRBinding alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinding * cluster = [[MTRBaseClusterBinding alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -8365,12 +8714,14 @@ class ReadBindingFeatureMap : public ReadAttribute { ~ReadBindingFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001E) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinding * cluster = [[MTRBinding alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinding * cluster = [[MTRBaseClusterBinding alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Binding.FeatureMap response %@", [value description]); if (error != nil) { @@ -8391,11 +8742,13 @@ class SubscribeAttributeBindingFeatureMap : public SubscribeAttribute { ~SubscribeAttributeBindingFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001E) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinding * cluster = [[MTRBinding alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinding * cluster = [[MTRBaseClusterBinding alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -8429,12 +8782,14 @@ class ReadBindingClusterRevision : public ReadAttribute { ~ReadBindingClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001E) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinding * cluster = [[MTRBinding alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinding * cluster = [[MTRBaseClusterBinding alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Binding.ClusterRevision response %@", [value description]); if (error != nil) { @@ -8455,11 +8810,13 @@ class SubscribeAttributeBindingClusterRevision : public SubscribeAttribute { ~SubscribeAttributeBindingClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001E) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBinding * cluster = [[MTRBinding alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBinding * cluster = [[MTRBaseClusterBinding alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -8515,12 +8872,14 @@ class ReadAccessControlAcl : public ReadAttribute { ~ReadAccessControlAcl() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001F) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAccessControl * cluster = [[MTRAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; [cluster readAttributeAclWithParams:params @@ -8548,13 +8907,15 @@ class WriteAccessControlAcl : public WriteAttribute { ~WriteAccessControlAcl() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001F) WriteAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAccessControl * cluster = [[MTRAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSArray * _Nonnull value; @@ -8638,11 +8999,13 @@ class SubscribeAttributeAccessControlAcl : public SubscribeAttribute { ~SubscribeAttributeAccessControlAcl() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001F) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAccessControl * cluster = [[MTRAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -8676,12 +9039,14 @@ class ReadAccessControlExtension : public ReadAttribute { ~ReadAccessControlExtension() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001F) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAccessControl * cluster = [[MTRAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; [cluster readAttributeExtensionWithParams:params @@ -8709,13 +9074,15 @@ class WriteAccessControlExtension : public WriteAttribute { ~WriteAccessControlExtension() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001F) WriteAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAccessControl * cluster = [[MTRAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSArray * _Nonnull value; @@ -8757,11 +9124,13 @@ class SubscribeAttributeAccessControlExtension : public SubscribeAttribute { ~SubscribeAttributeAccessControlExtension() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001F) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAccessControl * cluster = [[MTRAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -8795,12 +9164,14 @@ class ReadAccessControlSubjectsPerAccessControlEntry : public ReadAttribute { ~ReadAccessControlSubjectsPerAccessControlEntry() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001F) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAccessControl * cluster = [[MTRAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeSubjectsPerAccessControlEntryWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"AccessControl.SubjectsPerAccessControlEntry response %@", [value description]); @@ -8822,11 +9193,13 @@ class SubscribeAttributeAccessControlSubjectsPerAccessControlEntry : public Subs ~SubscribeAttributeAccessControlSubjectsPerAccessControlEntry() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001F) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAccessControl * cluster = [[MTRAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -8860,12 +9233,14 @@ class ReadAccessControlTargetsPerAccessControlEntry : public ReadAttribute { ~ReadAccessControlTargetsPerAccessControlEntry() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001F) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAccessControl * cluster = [[MTRAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeTargetsPerAccessControlEntryWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"AccessControl.TargetsPerAccessControlEntry response %@", [value description]); @@ -8887,11 +9262,13 @@ class SubscribeAttributeAccessControlTargetsPerAccessControlEntry : public Subsc ~SubscribeAttributeAccessControlTargetsPerAccessControlEntry() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001F) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAccessControl * cluster = [[MTRAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -8925,12 +9302,14 @@ class ReadAccessControlAccessControlEntriesPerFabric : public ReadAttribute { ~ReadAccessControlAccessControlEntriesPerFabric() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001F) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAccessControl * cluster = [[MTRAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAccessControlEntriesPerFabricWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"AccessControl.AccessControlEntriesPerFabric response %@", [value description]); @@ -8952,11 +9331,13 @@ class SubscribeAttributeAccessControlAccessControlEntriesPerFabric : public Subs ~SubscribeAttributeAccessControlAccessControlEntriesPerFabric() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001F) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAccessControl * cluster = [[MTRAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -8990,12 +9371,14 @@ class ReadAccessControlGeneratedCommandList : public ReadAttribute { ~ReadAccessControlGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001F) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAccessControl * cluster = [[MTRAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"AccessControl.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -9016,11 +9399,13 @@ class SubscribeAttributeAccessControlGeneratedCommandList : public SubscribeAttr ~SubscribeAttributeAccessControlGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001F) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAccessControl * cluster = [[MTRAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -9054,12 +9439,14 @@ class ReadAccessControlAcceptedCommandList : public ReadAttribute { ~ReadAccessControlAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001F) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAccessControl * cluster = [[MTRAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"AccessControl.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -9080,11 +9467,13 @@ class SubscribeAttributeAccessControlAcceptedCommandList : public SubscribeAttri ~SubscribeAttributeAccessControlAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001F) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAccessControl * cluster = [[MTRAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -9118,12 +9507,14 @@ class ReadAccessControlAttributeList : public ReadAttribute { ~ReadAccessControlAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001F) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAccessControl * cluster = [[MTRAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"AccessControl.AttributeList response %@", [value description]); if (error != nil) { @@ -9144,11 +9535,13 @@ class SubscribeAttributeAccessControlAttributeList : public SubscribeAttribute { ~SubscribeAttributeAccessControlAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001F) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAccessControl * cluster = [[MTRAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -9182,12 +9575,14 @@ class ReadAccessControlFeatureMap : public ReadAttribute { ~ReadAccessControlFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001F) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAccessControl * cluster = [[MTRAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"AccessControl.FeatureMap response %@", [value description]); if (error != nil) { @@ -9208,11 +9603,13 @@ class SubscribeAttributeAccessControlFeatureMap : public SubscribeAttribute { ~SubscribeAttributeAccessControlFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001F) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAccessControl * cluster = [[MTRAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -9246,12 +9643,14 @@ class ReadAccessControlClusterRevision : public ReadAttribute { ~ReadAccessControlClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001F) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAccessControl * cluster = [[MTRAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"AccessControl.ClusterRevision response %@", [value description]); if (error != nil) { @@ -9272,11 +9671,13 @@ class SubscribeAttributeAccessControlClusterRevision : public SubscribeAttribute ~SubscribeAttributeAccessControlClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000001F) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAccessControl * cluster = [[MTRAccessControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -9343,12 +9744,14 @@ class BridgedActionsInstantAction : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBridgedActions * cluster = [[MTRBaseClusterBridgedActions alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRBridgedActionsClusterInstantActionParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -9394,12 +9797,14 @@ class BridgedActionsInstantActionWithTransition : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) command (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBridgedActions * cluster = [[MTRBaseClusterBridgedActions alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRBridgedActionsClusterInstantActionWithTransitionParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -9445,12 +9850,14 @@ class BridgedActionsStartAction : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) command (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBridgedActions * cluster = [[MTRBaseClusterBridgedActions alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRBridgedActionsClusterStartActionParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -9496,12 +9903,14 @@ class BridgedActionsStartActionWithDuration : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) command (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBridgedActions * cluster = [[MTRBaseClusterBridgedActions alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRBridgedActionsClusterStartActionWithDurationParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -9547,12 +9956,14 @@ class BridgedActionsStopAction : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) command (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBridgedActions * cluster = [[MTRBaseClusterBridgedActions alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRBridgedActionsClusterStopActionParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -9597,12 +10008,14 @@ class BridgedActionsPauseAction : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) command (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBridgedActions * cluster = [[MTRBaseClusterBridgedActions alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRBridgedActionsClusterPauseActionParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -9648,12 +10061,14 @@ class BridgedActionsPauseActionWithDuration : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) command (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBridgedActions * cluster = [[MTRBaseClusterBridgedActions alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRBridgedActionsClusterPauseActionWithDurationParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -9699,12 +10114,14 @@ class BridgedActionsResumeAction : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) command (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBridgedActions * cluster = [[MTRBaseClusterBridgedActions alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRBridgedActionsClusterResumeActionParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -9749,12 +10166,14 @@ class BridgedActionsEnableAction : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) command (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBridgedActions * cluster = [[MTRBaseClusterBridgedActions alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRBridgedActionsClusterEnableActionParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -9800,12 +10219,14 @@ class BridgedActionsEnableActionWithDuration : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) command (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBridgedActions * cluster = [[MTRBaseClusterBridgedActions alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRBridgedActionsClusterEnableActionWithDurationParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -9851,12 +10272,14 @@ class BridgedActionsDisableAction : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) command (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBridgedActions * cluster = [[MTRBaseClusterBridgedActions alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRBridgedActionsClusterDisableActionParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -9902,12 +10325,14 @@ class BridgedActionsDisableActionWithDuration : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) command (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBridgedActions * cluster = [[MTRBaseClusterBridgedActions alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRBridgedActionsClusterDisableActionWithDurationParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -9952,12 +10377,14 @@ class ReadBridgedActionsActionList : public ReadAttribute { ~ReadBridgedActionsActionList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBridgedActions * cluster = [[MTRBaseClusterBridgedActions alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeActionListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedActions.ActionList response %@", [value description]); if (error != nil) { @@ -9978,11 +10405,13 @@ class SubscribeAttributeBridgedActionsActionList : public SubscribeAttribute { ~SubscribeAttributeBridgedActionsActionList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBridgedActions * cluster = [[MTRBaseClusterBridgedActions alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -10016,12 +10445,14 @@ class ReadBridgedActionsEndpointList : public ReadAttribute { ~ReadBridgedActionsEndpointList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBridgedActions * cluster = [[MTRBaseClusterBridgedActions alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeEndpointListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedActions.EndpointList response %@", [value description]); if (error != nil) { @@ -10042,11 +10473,13 @@ class SubscribeAttributeBridgedActionsEndpointList : public SubscribeAttribute { ~SubscribeAttributeBridgedActionsEndpointList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBridgedActions * cluster = [[MTRBaseClusterBridgedActions alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -10080,12 +10513,14 @@ class ReadBridgedActionsSetupUrl : public ReadAttribute { ~ReadBridgedActionsSetupUrl() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBridgedActions * cluster = [[MTRBaseClusterBridgedActions alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeSetupUrlWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedActions.SetupUrl response %@", [value description]); if (error != nil) { @@ -10106,11 +10541,13 @@ class SubscribeAttributeBridgedActionsSetupUrl : public SubscribeAttribute { ~SubscribeAttributeBridgedActionsSetupUrl() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBridgedActions * cluster = [[MTRBaseClusterBridgedActions alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -10144,12 +10581,14 @@ class ReadBridgedActionsGeneratedCommandList : public ReadAttribute { ~ReadBridgedActionsGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBridgedActions * cluster = [[MTRBaseClusterBridgedActions alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedActions.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -10170,11 +10609,13 @@ class SubscribeAttributeBridgedActionsGeneratedCommandList : public SubscribeAtt ~SubscribeAttributeBridgedActionsGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBridgedActions * cluster = [[MTRBaseClusterBridgedActions alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -10208,12 +10649,14 @@ class ReadBridgedActionsAcceptedCommandList : public ReadAttribute { ~ReadBridgedActionsAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBridgedActions * cluster = [[MTRBaseClusterBridgedActions alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedActions.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -10234,11 +10677,13 @@ class SubscribeAttributeBridgedActionsAcceptedCommandList : public SubscribeAttr ~SubscribeAttributeBridgedActionsAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBridgedActions * cluster = [[MTRBaseClusterBridgedActions alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -10272,12 +10717,14 @@ class ReadBridgedActionsAttributeList : public ReadAttribute { ~ReadBridgedActionsAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBridgedActions * cluster = [[MTRBaseClusterBridgedActions alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedActions.AttributeList response %@", [value description]); if (error != nil) { @@ -10298,11 +10745,13 @@ class SubscribeAttributeBridgedActionsAttributeList : public SubscribeAttribute ~SubscribeAttributeBridgedActionsAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBridgedActions * cluster = [[MTRBaseClusterBridgedActions alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -10336,12 +10785,14 @@ class ReadBridgedActionsFeatureMap : public ReadAttribute { ~ReadBridgedActionsFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBridgedActions * cluster = [[MTRBaseClusterBridgedActions alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedActions.FeatureMap response %@", [value description]); if (error != nil) { @@ -10362,11 +10813,13 @@ class SubscribeAttributeBridgedActionsFeatureMap : public SubscribeAttribute { ~SubscribeAttributeBridgedActionsFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBridgedActions * cluster = [[MTRBaseClusterBridgedActions alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -10400,12 +10853,14 @@ class ReadBridgedActionsClusterRevision : public ReadAttribute { ~ReadBridgedActionsClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBridgedActions * cluster = [[MTRBaseClusterBridgedActions alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedActions.ClusterRevision response %@", [value description]); if (error != nil) { @@ -10426,11 +10881,13 @@ class SubscribeAttributeBridgedActionsClusterRevision : public SubscribeAttribut ~SubscribeAttributeBridgedActionsClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000025) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedActions * cluster = [[MTRBridgedActions alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBridgedActions * cluster = [[MTRBaseClusterBridgedActions alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -10503,12 +10960,12 @@ class BasicMfgSpecificPing : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; __auto_type * params = [[MTRBasicClusterMfgSpecificPingParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -10545,12 +11002,12 @@ class ReadBasicDataModelRevision : public ReadAttribute { ~ReadBasicDataModelRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeDataModelRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.DataModelRevision response %@", [value description]); if (error != nil) { @@ -10571,11 +11028,11 @@ class SubscribeAttributeBasicDataModelRevision : public SubscribeAttribute { ~SubscribeAttributeBasicDataModelRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -10609,12 +11066,12 @@ class ReadBasicVendorName : public ReadAttribute { ~ReadBasicVendorName() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeVendorNameWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.VendorName response %@", [value description]); if (error != nil) { @@ -10635,11 +11092,11 @@ class SubscribeAttributeBasicVendorName : public SubscribeAttribute { ~SubscribeAttributeBasicVendorName() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -10673,12 +11130,12 @@ class ReadBasicVendorID : public ReadAttribute { ~ReadBasicVendorID() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeVendorIDWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.VendorID response %@", [value description]); if (error != nil) { @@ -10699,11 +11156,11 @@ class SubscribeAttributeBasicVendorID : public SubscribeAttribute { ~SubscribeAttributeBasicVendorID() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -10737,12 +11194,12 @@ class ReadBasicProductName : public ReadAttribute { ~ReadBasicProductName() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeProductNameWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.ProductName response %@", [value description]); if (error != nil) { @@ -10763,11 +11220,11 @@ class SubscribeAttributeBasicProductName : public SubscribeAttribute { ~SubscribeAttributeBasicProductName() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -10801,12 +11258,12 @@ class ReadBasicProductID : public ReadAttribute { ~ReadBasicProductID() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeProductIDWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.ProductID response %@", [value description]); if (error != nil) { @@ -10827,11 +11284,11 @@ class SubscribeAttributeBasicProductID : public SubscribeAttribute { ~SubscribeAttributeBasicProductID() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -10865,12 +11322,12 @@ class ReadBasicNodeLabel : public ReadAttribute { ~ReadBasicNodeLabel() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.NodeLabel response %@", [value description]); if (error != nil) { @@ -10894,13 +11351,13 @@ class WriteBasicNodeLabel : public WriteAttribute { ~WriteBasicNodeLabel() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) WriteAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSString * _Nonnull value = [[NSString alloc] initWithBytes:mValue.data() @@ -10931,11 +11388,11 @@ class SubscribeAttributeBasicNodeLabel : public SubscribeAttribute { ~SubscribeAttributeBasicNodeLabel() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -10969,12 +11426,12 @@ class ReadBasicLocation : public ReadAttribute { ~ReadBasicLocation() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeLocationWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.Location response %@", [value description]); if (error != nil) { @@ -10998,13 +11455,13 @@ class WriteBasicLocation : public WriteAttribute { ~WriteBasicLocation() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) WriteAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSString * _Nonnull value = [[NSString alloc] initWithBytes:mValue.data() @@ -11035,11 +11492,11 @@ class SubscribeAttributeBasicLocation : public SubscribeAttribute { ~SubscribeAttributeBasicLocation() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -11073,12 +11530,12 @@ class ReadBasicHardwareVersion : public ReadAttribute { ~ReadBasicHardwareVersion() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeHardwareVersionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.HardwareVersion response %@", [value description]); if (error != nil) { @@ -11099,11 +11556,11 @@ class SubscribeAttributeBasicHardwareVersion : public SubscribeAttribute { ~SubscribeAttributeBasicHardwareVersion() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -11137,12 +11594,12 @@ class ReadBasicHardwareVersionString : public ReadAttribute { ~ReadBasicHardwareVersionString() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeHardwareVersionStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.HardwareVersionString response %@", [value description]); if (error != nil) { @@ -11163,11 +11620,11 @@ class SubscribeAttributeBasicHardwareVersionString : public SubscribeAttribute { ~SubscribeAttributeBasicHardwareVersionString() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -11201,12 +11658,12 @@ class ReadBasicSoftwareVersion : public ReadAttribute { ~ReadBasicSoftwareVersion() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeSoftwareVersionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.SoftwareVersion response %@", [value description]); if (error != nil) { @@ -11227,11 +11684,11 @@ class SubscribeAttributeBasicSoftwareVersion : public SubscribeAttribute { ~SubscribeAttributeBasicSoftwareVersion() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -11265,12 +11722,12 @@ class ReadBasicSoftwareVersionString : public ReadAttribute { ~ReadBasicSoftwareVersionString() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeSoftwareVersionStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.SoftwareVersionString response %@", [value description]); if (error != nil) { @@ -11291,11 +11748,11 @@ class SubscribeAttributeBasicSoftwareVersionString : public SubscribeAttribute { ~SubscribeAttributeBasicSoftwareVersionString() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -11329,12 +11786,12 @@ class ReadBasicManufacturingDate : public ReadAttribute { ~ReadBasicManufacturingDate() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeManufacturingDateWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.ManufacturingDate response %@", [value description]); if (error != nil) { @@ -11355,11 +11812,11 @@ class SubscribeAttributeBasicManufacturingDate : public SubscribeAttribute { ~SubscribeAttributeBasicManufacturingDate() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -11393,12 +11850,12 @@ class ReadBasicPartNumber : public ReadAttribute { ~ReadBasicPartNumber() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x0000000C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePartNumberWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.PartNumber response %@", [value description]); if (error != nil) { @@ -11419,11 +11876,11 @@ class SubscribeAttributeBasicPartNumber : public SubscribeAttribute { ~SubscribeAttributeBasicPartNumber() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x0000000C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -11457,12 +11914,12 @@ class ReadBasicProductURL : public ReadAttribute { ~ReadBasicProductURL() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x0000000D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeProductURLWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.ProductURL response %@", [value description]); if (error != nil) { @@ -11483,11 +11940,11 @@ class SubscribeAttributeBasicProductURL : public SubscribeAttribute { ~SubscribeAttributeBasicProductURL() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x0000000D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -11521,12 +11978,12 @@ class ReadBasicProductLabel : public ReadAttribute { ~ReadBasicProductLabel() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x0000000E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeProductLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.ProductLabel response %@", [value description]); if (error != nil) { @@ -11547,11 +12004,11 @@ class SubscribeAttributeBasicProductLabel : public SubscribeAttribute { ~SubscribeAttributeBasicProductLabel() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x0000000E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -11585,12 +12042,12 @@ class ReadBasicSerialNumber : public ReadAttribute { ~ReadBasicSerialNumber() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeSerialNumberWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.SerialNumber response %@", [value description]); if (error != nil) { @@ -11611,11 +12068,11 @@ class SubscribeAttributeBasicSerialNumber : public SubscribeAttribute { ~SubscribeAttributeBasicSerialNumber() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -11649,12 +12106,12 @@ class ReadBasicLocalConfigDisabled : public ReadAttribute { ~ReadBasicLocalConfigDisabled() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeLocalConfigDisabledWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.LocalConfigDisabled response %@", [value description]); if (error != nil) { @@ -11678,13 +12135,13 @@ class WriteBasicLocalConfigDisabled : public WriteAttribute { ~WriteBasicLocalConfigDisabled() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) WriteAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithBool:mValue]; @@ -11713,11 +12170,11 @@ class SubscribeAttributeBasicLocalConfigDisabled : public SubscribeAttribute { ~SubscribeAttributeBasicLocalConfigDisabled() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -11751,12 +12208,12 @@ class ReadBasicReachable : public ReadAttribute { ~ReadBasicReachable() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeReachableWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.Reachable response %@", [value description]); if (error != nil) { @@ -11777,11 +12234,11 @@ class SubscribeAttributeBasicReachable : public SubscribeAttribute { ~SubscribeAttributeBasicReachable() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -11815,12 +12272,12 @@ class ReadBasicUniqueID : public ReadAttribute { ~ReadBasicUniqueID() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeUniqueIDWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.UniqueID response %@", [value description]); if (error != nil) { @@ -11841,11 +12298,11 @@ class SubscribeAttributeBasicUniqueID : public SubscribeAttribute { ~SubscribeAttributeBasicUniqueID() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -11879,12 +12336,12 @@ class ReadBasicCapabilityMinima : public ReadAttribute { ~ReadBasicCapabilityMinima() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeCapabilityMinimaWithCompletionHandler:^( MTRBasicClusterCapabilityMinimaStruct * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.CapabilityMinima response %@", [value description]); @@ -11906,11 +12363,11 @@ class SubscribeAttributeBasicCapabilityMinima : public SubscribeAttribute { ~SubscribeAttributeBasicCapabilityMinima() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -11944,12 +12401,12 @@ class ReadBasicGeneratedCommandList : public ReadAttribute { ~ReadBasicGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -11970,11 +12427,11 @@ class SubscribeAttributeBasicGeneratedCommandList : public SubscribeAttribute { ~SubscribeAttributeBasicGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -12008,12 +12465,12 @@ class ReadBasicAcceptedCommandList : public ReadAttribute { ~ReadBasicAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -12034,11 +12491,11 @@ class SubscribeAttributeBasicAcceptedCommandList : public SubscribeAttribute { ~SubscribeAttributeBasicAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -12072,12 +12529,12 @@ class ReadBasicAttributeList : public ReadAttribute { ~ReadBasicAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.AttributeList response %@", [value description]); if (error != nil) { @@ -12098,11 +12555,11 @@ class SubscribeAttributeBasicAttributeList : public SubscribeAttribute { ~SubscribeAttributeBasicAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -12136,12 +12593,12 @@ class ReadBasicFeatureMap : public ReadAttribute { ~ReadBasicFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.FeatureMap response %@", [value description]); if (error != nil) { @@ -12162,11 +12619,11 @@ class SubscribeAttributeBasicFeatureMap : public SubscribeAttribute { ~SubscribeAttributeBasicFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -12200,12 +12657,12 @@ class ReadBasicClusterRevision : public ReadAttribute { ~ReadBasicClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Basic.ClusterRevision response %@", [value description]); if (error != nil) { @@ -12226,11 +12683,11 @@ class SubscribeAttributeBasicClusterRevision : public SubscribeAttribute { ~SubscribeAttributeBasicClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000028) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBasic * cluster = [[MTRBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -12290,14 +12747,13 @@ class OtaSoftwareUpdateProviderQueryImage : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000029) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROtaSoftwareUpdateProvider * cluster = [[MTROtaSoftwareUpdateProvider alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOtaSoftwareUpdateProvider * cluster = + [[MTRBaseClusterOtaSoftwareUpdateProvider alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; __auto_type * params = [[MTROtaSoftwareUpdateProviderClusterQueryImageParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -12375,14 +12831,13 @@ class OtaSoftwareUpdateProviderApplyUpdateRequest : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000029) command (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROtaSoftwareUpdateProvider * cluster = [[MTROtaSoftwareUpdateProvider alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOtaSoftwareUpdateProvider * cluster = + [[MTRBaseClusterOtaSoftwareUpdateProvider alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; __auto_type * params = [[MTROtaSoftwareUpdateProviderClusterApplyUpdateRequestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -12425,14 +12880,13 @@ class OtaSoftwareUpdateProviderNotifyUpdateApplied : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000029) command (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROtaSoftwareUpdateProvider * cluster = [[MTROtaSoftwareUpdateProvider alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOtaSoftwareUpdateProvider * cluster = + [[MTRBaseClusterOtaSoftwareUpdateProvider alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; __auto_type * params = [[MTROtaSoftwareUpdateProviderClusterNotifyUpdateAppliedParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -12472,14 +12926,13 @@ class ReadOtaSoftwareUpdateProviderGeneratedCommandList : public ReadAttribute { ~ReadOtaSoftwareUpdateProviderGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000029) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROtaSoftwareUpdateProvider * cluster = [[MTROtaSoftwareUpdateProvider alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOtaSoftwareUpdateProvider * cluster = + [[MTRBaseClusterOtaSoftwareUpdateProvider alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"OtaSoftwareUpdateProvider.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -12500,13 +12953,12 @@ class SubscribeAttributeOtaSoftwareUpdateProviderGeneratedCommandList : public S ~SubscribeAttributeOtaSoftwareUpdateProviderGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000029) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROtaSoftwareUpdateProvider * cluster = [[MTROtaSoftwareUpdateProvider alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOtaSoftwareUpdateProvider * cluster = + [[MTRBaseClusterOtaSoftwareUpdateProvider alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -12540,14 +12992,13 @@ class ReadOtaSoftwareUpdateProviderAcceptedCommandList : public ReadAttribute { ~ReadOtaSoftwareUpdateProviderAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000029) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROtaSoftwareUpdateProvider * cluster = [[MTROtaSoftwareUpdateProvider alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOtaSoftwareUpdateProvider * cluster = + [[MTRBaseClusterOtaSoftwareUpdateProvider alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"OtaSoftwareUpdateProvider.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -12568,13 +13019,12 @@ class SubscribeAttributeOtaSoftwareUpdateProviderAcceptedCommandList : public Su ~SubscribeAttributeOtaSoftwareUpdateProviderAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000029) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROtaSoftwareUpdateProvider * cluster = [[MTROtaSoftwareUpdateProvider alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOtaSoftwareUpdateProvider * cluster = + [[MTRBaseClusterOtaSoftwareUpdateProvider alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -12608,14 +13058,13 @@ class ReadOtaSoftwareUpdateProviderAttributeList : public ReadAttribute { ~ReadOtaSoftwareUpdateProviderAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000029) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROtaSoftwareUpdateProvider * cluster = [[MTROtaSoftwareUpdateProvider alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOtaSoftwareUpdateProvider * cluster = + [[MTRBaseClusterOtaSoftwareUpdateProvider alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"OtaSoftwareUpdateProvider.AttributeList response %@", [value description]); if (error != nil) { @@ -12636,13 +13085,12 @@ class SubscribeAttributeOtaSoftwareUpdateProviderAttributeList : public Subscrib ~SubscribeAttributeOtaSoftwareUpdateProviderAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000029) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROtaSoftwareUpdateProvider * cluster = [[MTROtaSoftwareUpdateProvider alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOtaSoftwareUpdateProvider * cluster = + [[MTRBaseClusterOtaSoftwareUpdateProvider alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -12676,14 +13124,13 @@ class ReadOtaSoftwareUpdateProviderFeatureMap : public ReadAttribute { ~ReadOtaSoftwareUpdateProviderFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000029) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROtaSoftwareUpdateProvider * cluster = [[MTROtaSoftwareUpdateProvider alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOtaSoftwareUpdateProvider * cluster = + [[MTRBaseClusterOtaSoftwareUpdateProvider alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OtaSoftwareUpdateProvider.FeatureMap response %@", [value description]); if (error != nil) { @@ -12704,13 +13151,12 @@ class SubscribeAttributeOtaSoftwareUpdateProviderFeatureMap : public SubscribeAt ~SubscribeAttributeOtaSoftwareUpdateProviderFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000029) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROtaSoftwareUpdateProvider * cluster = [[MTROtaSoftwareUpdateProvider alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOtaSoftwareUpdateProvider * cluster = + [[MTRBaseClusterOtaSoftwareUpdateProvider alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -12744,14 +13190,13 @@ class ReadOtaSoftwareUpdateProviderClusterRevision : public ReadAttribute { ~ReadOtaSoftwareUpdateProviderClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000029) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROtaSoftwareUpdateProvider * cluster = [[MTROtaSoftwareUpdateProvider alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOtaSoftwareUpdateProvider * cluster = + [[MTRBaseClusterOtaSoftwareUpdateProvider alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OtaSoftwareUpdateProvider.ClusterRevision response %@", [value description]); if (error != nil) { @@ -12772,13 +13217,12 @@ class SubscribeAttributeOtaSoftwareUpdateProviderClusterRevision : public Subscr ~SubscribeAttributeOtaSoftwareUpdateProviderClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000029) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROtaSoftwareUpdateProvider * cluster = [[MTROtaSoftwareUpdateProvider alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOtaSoftwareUpdateProvider * cluster = + [[MTRBaseClusterOtaSoftwareUpdateProvider alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -12839,14 +13283,13 @@ class OtaSoftwareUpdateRequestorAnnounceOtaProvider : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002A) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROtaSoftwareUpdateRequestor * cluster = [[MTROtaSoftwareUpdateRequestor alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOtaSoftwareUpdateRequestor * cluster = + [[MTRBaseClusterOtaSoftwareUpdateRequestor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; __auto_type * params = [[MTROtaSoftwareUpdateRequestorClusterAnnounceOtaProviderParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -12894,14 +13337,13 @@ class ReadOtaSoftwareUpdateRequestorDefaultOtaProviders : public ReadAttribute { ~ReadOtaSoftwareUpdateRequestorDefaultOtaProviders() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002A) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROtaSoftwareUpdateRequestor * cluster = [[MTROtaSoftwareUpdateRequestor alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOtaSoftwareUpdateRequestor * cluster = + [[MTRBaseClusterOtaSoftwareUpdateRequestor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; [cluster @@ -12930,15 +13372,14 @@ class WriteOtaSoftwareUpdateRequestorDefaultOtaProviders : public WriteAttribute ~WriteOtaSoftwareUpdateRequestorDefaultOtaProviders() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002A) WriteAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROtaSoftwareUpdateRequestor * cluster = [[MTROtaSoftwareUpdateRequestor alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOtaSoftwareUpdateRequestor * cluster = + [[MTRBaseClusterOtaSoftwareUpdateRequestor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSArray * _Nonnull value; @@ -12982,13 +13423,12 @@ class SubscribeAttributeOtaSoftwareUpdateRequestorDefaultOtaProviders : public S ~SubscribeAttributeOtaSoftwareUpdateRequestorDefaultOtaProviders() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002A) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROtaSoftwareUpdateRequestor * cluster = [[MTROtaSoftwareUpdateRequestor alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOtaSoftwareUpdateRequestor * cluster = + [[MTRBaseClusterOtaSoftwareUpdateRequestor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -13022,14 +13462,13 @@ class ReadOtaSoftwareUpdateRequestorUpdatePossible : public ReadAttribute { ~ReadOtaSoftwareUpdateRequestorUpdatePossible() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002A) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROtaSoftwareUpdateRequestor * cluster = [[MTROtaSoftwareUpdateRequestor alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOtaSoftwareUpdateRequestor * cluster = + [[MTRBaseClusterOtaSoftwareUpdateRequestor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeUpdatePossibleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OtaSoftwareUpdateRequestor.UpdatePossible response %@", [value description]); if (error != nil) { @@ -13050,13 +13489,12 @@ class SubscribeAttributeOtaSoftwareUpdateRequestorUpdatePossible : public Subscr ~SubscribeAttributeOtaSoftwareUpdateRequestorUpdatePossible() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002A) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROtaSoftwareUpdateRequestor * cluster = [[MTROtaSoftwareUpdateRequestor alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOtaSoftwareUpdateRequestor * cluster = + [[MTRBaseClusterOtaSoftwareUpdateRequestor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -13090,14 +13528,13 @@ class ReadOtaSoftwareUpdateRequestorUpdateState : public ReadAttribute { ~ReadOtaSoftwareUpdateRequestorUpdateState() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002A) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROtaSoftwareUpdateRequestor * cluster = [[MTROtaSoftwareUpdateRequestor alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOtaSoftwareUpdateRequestor * cluster = + [[MTRBaseClusterOtaSoftwareUpdateRequestor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeUpdateStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OtaSoftwareUpdateRequestor.UpdateState response %@", [value description]); if (error != nil) { @@ -13118,13 +13555,12 @@ class SubscribeAttributeOtaSoftwareUpdateRequestorUpdateState : public Subscribe ~SubscribeAttributeOtaSoftwareUpdateRequestorUpdateState() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002A) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROtaSoftwareUpdateRequestor * cluster = [[MTROtaSoftwareUpdateRequestor alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOtaSoftwareUpdateRequestor * cluster = + [[MTRBaseClusterOtaSoftwareUpdateRequestor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -13158,14 +13594,13 @@ class ReadOtaSoftwareUpdateRequestorUpdateStateProgress : public ReadAttribute { ~ReadOtaSoftwareUpdateRequestorUpdateStateProgress() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002A) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROtaSoftwareUpdateRequestor * cluster = [[MTROtaSoftwareUpdateRequestor alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOtaSoftwareUpdateRequestor * cluster = + [[MTRBaseClusterOtaSoftwareUpdateRequestor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeUpdateStateProgressWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OtaSoftwareUpdateRequestor.UpdateStateProgress response %@", [value description]); if (error != nil) { @@ -13186,13 +13621,12 @@ class SubscribeAttributeOtaSoftwareUpdateRequestorUpdateStateProgress : public S ~SubscribeAttributeOtaSoftwareUpdateRequestorUpdateStateProgress() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002A) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROtaSoftwareUpdateRequestor * cluster = [[MTROtaSoftwareUpdateRequestor alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOtaSoftwareUpdateRequestor * cluster = + [[MTRBaseClusterOtaSoftwareUpdateRequestor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -13226,14 +13660,13 @@ class ReadOtaSoftwareUpdateRequestorGeneratedCommandList : public ReadAttribute ~ReadOtaSoftwareUpdateRequestorGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002A) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROtaSoftwareUpdateRequestor * cluster = [[MTROtaSoftwareUpdateRequestor alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOtaSoftwareUpdateRequestor * cluster = + [[MTRBaseClusterOtaSoftwareUpdateRequestor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"OtaSoftwareUpdateRequestor.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -13254,13 +13687,12 @@ class SubscribeAttributeOtaSoftwareUpdateRequestorGeneratedCommandList : public ~SubscribeAttributeOtaSoftwareUpdateRequestorGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002A) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROtaSoftwareUpdateRequestor * cluster = [[MTROtaSoftwareUpdateRequestor alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOtaSoftwareUpdateRequestor * cluster = + [[MTRBaseClusterOtaSoftwareUpdateRequestor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -13294,14 +13726,13 @@ class ReadOtaSoftwareUpdateRequestorAcceptedCommandList : public ReadAttribute { ~ReadOtaSoftwareUpdateRequestorAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002A) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROtaSoftwareUpdateRequestor * cluster = [[MTROtaSoftwareUpdateRequestor alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOtaSoftwareUpdateRequestor * cluster = + [[MTRBaseClusterOtaSoftwareUpdateRequestor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"OtaSoftwareUpdateRequestor.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -13322,13 +13753,12 @@ class SubscribeAttributeOtaSoftwareUpdateRequestorAcceptedCommandList : public S ~SubscribeAttributeOtaSoftwareUpdateRequestorAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002A) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROtaSoftwareUpdateRequestor * cluster = [[MTROtaSoftwareUpdateRequestor alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOtaSoftwareUpdateRequestor * cluster = + [[MTRBaseClusterOtaSoftwareUpdateRequestor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -13362,14 +13792,13 @@ class ReadOtaSoftwareUpdateRequestorAttributeList : public ReadAttribute { ~ReadOtaSoftwareUpdateRequestorAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002A) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROtaSoftwareUpdateRequestor * cluster = [[MTROtaSoftwareUpdateRequestor alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOtaSoftwareUpdateRequestor * cluster = + [[MTRBaseClusterOtaSoftwareUpdateRequestor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"OtaSoftwareUpdateRequestor.AttributeList response %@", [value description]); if (error != nil) { @@ -13390,13 +13819,12 @@ class SubscribeAttributeOtaSoftwareUpdateRequestorAttributeList : public Subscri ~SubscribeAttributeOtaSoftwareUpdateRequestorAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002A) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROtaSoftwareUpdateRequestor * cluster = [[MTROtaSoftwareUpdateRequestor alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOtaSoftwareUpdateRequestor * cluster = + [[MTRBaseClusterOtaSoftwareUpdateRequestor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -13430,14 +13858,13 @@ class ReadOtaSoftwareUpdateRequestorFeatureMap : public ReadAttribute { ~ReadOtaSoftwareUpdateRequestorFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002A) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROtaSoftwareUpdateRequestor * cluster = [[MTROtaSoftwareUpdateRequestor alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOtaSoftwareUpdateRequestor * cluster = + [[MTRBaseClusterOtaSoftwareUpdateRequestor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OtaSoftwareUpdateRequestor.FeatureMap response %@", [value description]); if (error != nil) { @@ -13458,13 +13885,12 @@ class SubscribeAttributeOtaSoftwareUpdateRequestorFeatureMap : public SubscribeA ~SubscribeAttributeOtaSoftwareUpdateRequestorFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002A) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROtaSoftwareUpdateRequestor * cluster = [[MTROtaSoftwareUpdateRequestor alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOtaSoftwareUpdateRequestor * cluster = + [[MTRBaseClusterOtaSoftwareUpdateRequestor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -13498,14 +13924,13 @@ class ReadOtaSoftwareUpdateRequestorClusterRevision : public ReadAttribute { ~ReadOtaSoftwareUpdateRequestorClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002A) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROtaSoftwareUpdateRequestor * cluster = [[MTROtaSoftwareUpdateRequestor alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOtaSoftwareUpdateRequestor * cluster = + [[MTRBaseClusterOtaSoftwareUpdateRequestor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OtaSoftwareUpdateRequestor.ClusterRevision response %@", [value description]); if (error != nil) { @@ -13526,13 +13951,12 @@ class SubscribeAttributeOtaSoftwareUpdateRequestorClusterRevision : public Subsc ~SubscribeAttributeOtaSoftwareUpdateRequestorClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002A) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROtaSoftwareUpdateRequestor * cluster = [[MTROtaSoftwareUpdateRequestor alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOtaSoftwareUpdateRequestor * cluster = + [[MTRBaseClusterOtaSoftwareUpdateRequestor alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -13583,14 +14007,13 @@ class ReadLocalizationConfigurationActiveLocale : public ReadAttribute { ~ReadLocalizationConfigurationActiveLocale() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002B) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLocalizationConfiguration * cluster = [[MTRLocalizationConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterLocalizationConfiguration * cluster = + [[MTRBaseClusterLocalizationConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeActiveLocaleWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"LocalizationConfiguration.ActiveLocale response %@", [value description]); if (error != nil) { @@ -13614,15 +14037,14 @@ class WriteLocalizationConfigurationActiveLocale : public WriteAttribute { ~WriteLocalizationConfigurationActiveLocale() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002B) WriteAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLocalizationConfiguration * cluster = [[MTRLocalizationConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterLocalizationConfiguration * cluster = + [[MTRBaseClusterLocalizationConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSString * _Nonnull value = [[NSString alloc] initWithBytes:mValue.data() @@ -13653,13 +14075,12 @@ class SubscribeAttributeLocalizationConfigurationActiveLocale : public Subscribe ~SubscribeAttributeLocalizationConfigurationActiveLocale() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002B) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLocalizationConfiguration * cluster = [[MTRLocalizationConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterLocalizationConfiguration * cluster = + [[MTRBaseClusterLocalizationConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -13693,14 +14114,13 @@ class ReadLocalizationConfigurationSupportedLocales : public ReadAttribute { ~ReadLocalizationConfigurationSupportedLocales() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002B) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLocalizationConfiguration * cluster = [[MTRLocalizationConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterLocalizationConfiguration * cluster = + [[MTRBaseClusterLocalizationConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeSupportedLocalesWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"LocalizationConfiguration.SupportedLocales response %@", [value description]); if (error != nil) { @@ -13721,13 +14141,12 @@ class SubscribeAttributeLocalizationConfigurationSupportedLocales : public Subsc ~SubscribeAttributeLocalizationConfigurationSupportedLocales() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002B) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLocalizationConfiguration * cluster = [[MTRLocalizationConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterLocalizationConfiguration * cluster = + [[MTRBaseClusterLocalizationConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -13761,14 +14180,13 @@ class ReadLocalizationConfigurationGeneratedCommandList : public ReadAttribute { ~ReadLocalizationConfigurationGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002B) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLocalizationConfiguration * cluster = [[MTRLocalizationConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterLocalizationConfiguration * cluster = + [[MTRBaseClusterLocalizationConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"LocalizationConfiguration.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -13789,13 +14207,12 @@ class SubscribeAttributeLocalizationConfigurationGeneratedCommandList : public S ~SubscribeAttributeLocalizationConfigurationGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002B) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLocalizationConfiguration * cluster = [[MTRLocalizationConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterLocalizationConfiguration * cluster = + [[MTRBaseClusterLocalizationConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -13829,14 +14246,13 @@ class ReadLocalizationConfigurationAcceptedCommandList : public ReadAttribute { ~ReadLocalizationConfigurationAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002B) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLocalizationConfiguration * cluster = [[MTRLocalizationConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterLocalizationConfiguration * cluster = + [[MTRBaseClusterLocalizationConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"LocalizationConfiguration.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -13857,13 +14273,12 @@ class SubscribeAttributeLocalizationConfigurationAcceptedCommandList : public Su ~SubscribeAttributeLocalizationConfigurationAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002B) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLocalizationConfiguration * cluster = [[MTRLocalizationConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterLocalizationConfiguration * cluster = + [[MTRBaseClusterLocalizationConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -13897,14 +14312,13 @@ class ReadLocalizationConfigurationAttributeList : public ReadAttribute { ~ReadLocalizationConfigurationAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002B) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLocalizationConfiguration * cluster = [[MTRLocalizationConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterLocalizationConfiguration * cluster = + [[MTRBaseClusterLocalizationConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"LocalizationConfiguration.AttributeList response %@", [value description]); if (error != nil) { @@ -13925,13 +14339,12 @@ class SubscribeAttributeLocalizationConfigurationAttributeList : public Subscrib ~SubscribeAttributeLocalizationConfigurationAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002B) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLocalizationConfiguration * cluster = [[MTRLocalizationConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterLocalizationConfiguration * cluster = + [[MTRBaseClusterLocalizationConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -13965,14 +14378,13 @@ class ReadLocalizationConfigurationFeatureMap : public ReadAttribute { ~ReadLocalizationConfigurationFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002B) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLocalizationConfiguration * cluster = [[MTRLocalizationConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterLocalizationConfiguration * cluster = + [[MTRBaseClusterLocalizationConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"LocalizationConfiguration.FeatureMap response %@", [value description]); if (error != nil) { @@ -13993,13 +14405,12 @@ class SubscribeAttributeLocalizationConfigurationFeatureMap : public SubscribeAt ~SubscribeAttributeLocalizationConfigurationFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002B) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLocalizationConfiguration * cluster = [[MTRLocalizationConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterLocalizationConfiguration * cluster = + [[MTRBaseClusterLocalizationConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -14033,14 +14444,13 @@ class ReadLocalizationConfigurationClusterRevision : public ReadAttribute { ~ReadLocalizationConfigurationClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002B) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLocalizationConfiguration * cluster = [[MTRLocalizationConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterLocalizationConfiguration * cluster = + [[MTRBaseClusterLocalizationConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"LocalizationConfiguration.ClusterRevision response %@", [value description]); if (error != nil) { @@ -14061,13 +14471,12 @@ class SubscribeAttributeLocalizationConfigurationClusterRevision : public Subscr ~SubscribeAttributeLocalizationConfigurationClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002B) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLocalizationConfiguration * cluster = [[MTRLocalizationConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterLocalizationConfiguration * cluster = + [[MTRBaseClusterLocalizationConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -14119,14 +14528,13 @@ class ReadTimeFormatLocalizationHourFormat : public ReadAttribute { ~ReadTimeFormatLocalizationHourFormat() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002C) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTimeFormatLocalization * cluster = [[MTRTimeFormatLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterTimeFormatLocalization * cluster = + [[MTRBaseClusterTimeFormatLocalization alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeHourFormatWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TimeFormatLocalization.HourFormat response %@", [value description]); if (error != nil) { @@ -14150,15 +14558,14 @@ class WriteTimeFormatLocalizationHourFormat : public WriteAttribute { ~WriteTimeFormatLocalizationHourFormat() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002C) WriteAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTimeFormatLocalization * cluster = [[MTRTimeFormatLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterTimeFormatLocalization * cluster = + [[MTRBaseClusterTimeFormatLocalization alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; @@ -14187,13 +14594,12 @@ class SubscribeAttributeTimeFormatLocalizationHourFormat : public SubscribeAttri ~SubscribeAttributeTimeFormatLocalizationHourFormat() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002C) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTimeFormatLocalization * cluster = [[MTRTimeFormatLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterTimeFormatLocalization * cluster = + [[MTRBaseClusterTimeFormatLocalization alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -14227,14 +14633,13 @@ class ReadTimeFormatLocalizationActiveCalendarType : public ReadAttribute { ~ReadTimeFormatLocalizationActiveCalendarType() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002C) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTimeFormatLocalization * cluster = [[MTRTimeFormatLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterTimeFormatLocalization * cluster = + [[MTRBaseClusterTimeFormatLocalization alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeActiveCalendarTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TimeFormatLocalization.ActiveCalendarType response %@", [value description]); if (error != nil) { @@ -14258,15 +14663,14 @@ class WriteTimeFormatLocalizationActiveCalendarType : public WriteAttribute { ~WriteTimeFormatLocalizationActiveCalendarType() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002C) WriteAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTimeFormatLocalization * cluster = [[MTRTimeFormatLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterTimeFormatLocalization * cluster = + [[MTRBaseClusterTimeFormatLocalization alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; @@ -14295,13 +14699,12 @@ class SubscribeAttributeTimeFormatLocalizationActiveCalendarType : public Subscr ~SubscribeAttributeTimeFormatLocalizationActiveCalendarType() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002C) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTimeFormatLocalization * cluster = [[MTRTimeFormatLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterTimeFormatLocalization * cluster = + [[MTRBaseClusterTimeFormatLocalization alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -14335,14 +14738,13 @@ class ReadTimeFormatLocalizationSupportedCalendarTypes : public ReadAttribute { ~ReadTimeFormatLocalizationSupportedCalendarTypes() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002C) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTimeFormatLocalization * cluster = [[MTRTimeFormatLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterTimeFormatLocalization * cluster = + [[MTRBaseClusterTimeFormatLocalization alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeSupportedCalendarTypesWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"TimeFormatLocalization.SupportedCalendarTypes response %@", [value description]); if (error != nil) { @@ -14363,13 +14765,12 @@ class SubscribeAttributeTimeFormatLocalizationSupportedCalendarTypes : public Su ~SubscribeAttributeTimeFormatLocalizationSupportedCalendarTypes() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002C) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTimeFormatLocalization * cluster = [[MTRTimeFormatLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterTimeFormatLocalization * cluster = + [[MTRBaseClusterTimeFormatLocalization alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -14403,14 +14804,13 @@ class ReadTimeFormatLocalizationGeneratedCommandList : public ReadAttribute { ~ReadTimeFormatLocalizationGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002C) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTimeFormatLocalization * cluster = [[MTRTimeFormatLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterTimeFormatLocalization * cluster = + [[MTRBaseClusterTimeFormatLocalization alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"TimeFormatLocalization.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -14431,13 +14831,12 @@ class SubscribeAttributeTimeFormatLocalizationGeneratedCommandList : public Subs ~SubscribeAttributeTimeFormatLocalizationGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002C) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTimeFormatLocalization * cluster = [[MTRTimeFormatLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterTimeFormatLocalization * cluster = + [[MTRBaseClusterTimeFormatLocalization alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -14471,14 +14870,13 @@ class ReadTimeFormatLocalizationAcceptedCommandList : public ReadAttribute { ~ReadTimeFormatLocalizationAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002C) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTimeFormatLocalization * cluster = [[MTRTimeFormatLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterTimeFormatLocalization * cluster = + [[MTRBaseClusterTimeFormatLocalization alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"TimeFormatLocalization.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -14499,13 +14897,12 @@ class SubscribeAttributeTimeFormatLocalizationAcceptedCommandList : public Subsc ~SubscribeAttributeTimeFormatLocalizationAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002C) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTimeFormatLocalization * cluster = [[MTRTimeFormatLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterTimeFormatLocalization * cluster = + [[MTRBaseClusterTimeFormatLocalization alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -14539,14 +14936,13 @@ class ReadTimeFormatLocalizationAttributeList : public ReadAttribute { ~ReadTimeFormatLocalizationAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002C) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTimeFormatLocalization * cluster = [[MTRTimeFormatLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterTimeFormatLocalization * cluster = + [[MTRBaseClusterTimeFormatLocalization alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"TimeFormatLocalization.AttributeList response %@", [value description]); if (error != nil) { @@ -14567,13 +14963,12 @@ class SubscribeAttributeTimeFormatLocalizationAttributeList : public SubscribeAt ~SubscribeAttributeTimeFormatLocalizationAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002C) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTimeFormatLocalization * cluster = [[MTRTimeFormatLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterTimeFormatLocalization * cluster = + [[MTRBaseClusterTimeFormatLocalization alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -14607,14 +15002,13 @@ class ReadTimeFormatLocalizationFeatureMap : public ReadAttribute { ~ReadTimeFormatLocalizationFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002C) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTimeFormatLocalization * cluster = [[MTRTimeFormatLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterTimeFormatLocalization * cluster = + [[MTRBaseClusterTimeFormatLocalization alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TimeFormatLocalization.FeatureMap response %@", [value description]); if (error != nil) { @@ -14635,13 +15029,12 @@ class SubscribeAttributeTimeFormatLocalizationFeatureMap : public SubscribeAttri ~SubscribeAttributeTimeFormatLocalizationFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002C) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTimeFormatLocalization * cluster = [[MTRTimeFormatLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterTimeFormatLocalization * cluster = + [[MTRBaseClusterTimeFormatLocalization alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -14675,14 +15068,13 @@ class ReadTimeFormatLocalizationClusterRevision : public ReadAttribute { ~ReadTimeFormatLocalizationClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002C) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTimeFormatLocalization * cluster = [[MTRTimeFormatLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterTimeFormatLocalization * cluster = + [[MTRBaseClusterTimeFormatLocalization alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TimeFormatLocalization.ClusterRevision response %@", [value description]); if (error != nil) { @@ -14703,13 +15095,12 @@ class SubscribeAttributeTimeFormatLocalizationClusterRevision : public Subscribe ~SubscribeAttributeTimeFormatLocalizationClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002C) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTimeFormatLocalization * cluster = [[MTRTimeFormatLocalization alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterTimeFormatLocalization * cluster = + [[MTRBaseClusterTimeFormatLocalization alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -14759,12 +15150,14 @@ class ReadUnitLocalizationTemperatureUnit : public ReadAttribute { ~ReadUnitLocalizationTemperatureUnit() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002D) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRUnitLocalization * cluster = [[MTRUnitLocalization alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterUnitLocalization * cluster = [[MTRBaseClusterUnitLocalization alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeTemperatureUnitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"UnitLocalization.TemperatureUnit response %@", [value description]); if (error != nil) { @@ -14788,13 +15181,15 @@ class WriteUnitLocalizationTemperatureUnit : public WriteAttribute { ~WriteUnitLocalizationTemperatureUnit() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002D) WriteAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRUnitLocalization * cluster = [[MTRUnitLocalization alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterUnitLocalization * cluster = [[MTRBaseClusterUnitLocalization alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; @@ -14823,11 +15218,13 @@ class SubscribeAttributeUnitLocalizationTemperatureUnit : public SubscribeAttrib ~SubscribeAttributeUnitLocalizationTemperatureUnit() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002D) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRUnitLocalization * cluster = [[MTRUnitLocalization alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterUnitLocalization * cluster = [[MTRBaseClusterUnitLocalization alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -14861,12 +15258,14 @@ class ReadUnitLocalizationGeneratedCommandList : public ReadAttribute { ~ReadUnitLocalizationGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002D) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRUnitLocalization * cluster = [[MTRUnitLocalization alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterUnitLocalization * cluster = [[MTRBaseClusterUnitLocalization alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"UnitLocalization.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -14887,11 +15286,13 @@ class SubscribeAttributeUnitLocalizationGeneratedCommandList : public SubscribeA ~SubscribeAttributeUnitLocalizationGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002D) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRUnitLocalization * cluster = [[MTRUnitLocalization alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterUnitLocalization * cluster = [[MTRBaseClusterUnitLocalization alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -14925,12 +15326,14 @@ class ReadUnitLocalizationAcceptedCommandList : public ReadAttribute { ~ReadUnitLocalizationAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002D) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRUnitLocalization * cluster = [[MTRUnitLocalization alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterUnitLocalization * cluster = [[MTRBaseClusterUnitLocalization alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"UnitLocalization.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -14951,11 +15354,13 @@ class SubscribeAttributeUnitLocalizationAcceptedCommandList : public SubscribeAt ~SubscribeAttributeUnitLocalizationAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002D) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRUnitLocalization * cluster = [[MTRUnitLocalization alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterUnitLocalization * cluster = [[MTRBaseClusterUnitLocalization alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -14989,12 +15394,14 @@ class ReadUnitLocalizationAttributeList : public ReadAttribute { ~ReadUnitLocalizationAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002D) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRUnitLocalization * cluster = [[MTRUnitLocalization alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterUnitLocalization * cluster = [[MTRBaseClusterUnitLocalization alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"UnitLocalization.AttributeList response %@", [value description]); if (error != nil) { @@ -15015,11 +15422,13 @@ class SubscribeAttributeUnitLocalizationAttributeList : public SubscribeAttribut ~SubscribeAttributeUnitLocalizationAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002D) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRUnitLocalization * cluster = [[MTRUnitLocalization alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterUnitLocalization * cluster = [[MTRBaseClusterUnitLocalization alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -15053,12 +15462,14 @@ class ReadUnitLocalizationFeatureMap : public ReadAttribute { ~ReadUnitLocalizationFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002D) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRUnitLocalization * cluster = [[MTRUnitLocalization alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterUnitLocalization * cluster = [[MTRBaseClusterUnitLocalization alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"UnitLocalization.FeatureMap response %@", [value description]); if (error != nil) { @@ -15079,11 +15490,13 @@ class SubscribeAttributeUnitLocalizationFeatureMap : public SubscribeAttribute { ~SubscribeAttributeUnitLocalizationFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002D) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRUnitLocalization * cluster = [[MTRUnitLocalization alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterUnitLocalization * cluster = [[MTRBaseClusterUnitLocalization alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -15117,12 +15530,14 @@ class ReadUnitLocalizationClusterRevision : public ReadAttribute { ~ReadUnitLocalizationClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002D) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRUnitLocalization * cluster = [[MTRUnitLocalization alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterUnitLocalization * cluster = [[MTRBaseClusterUnitLocalization alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"UnitLocalization.ClusterRevision response %@", [value description]); if (error != nil) { @@ -15143,11 +15558,13 @@ class SubscribeAttributeUnitLocalizationClusterRevision : public SubscribeAttrib ~SubscribeAttributeUnitLocalizationClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002D) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRUnitLocalization * cluster = [[MTRUnitLocalization alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterUnitLocalization * cluster = [[MTRBaseClusterUnitLocalization alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -15197,14 +15614,13 @@ class ReadPowerSourceConfigurationSources : public ReadAttribute { ~ReadPowerSourceConfigurationSources() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002E) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSourceConfiguration * cluster = [[MTRPowerSourceConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPowerSourceConfiguration * cluster = + [[MTRBaseClusterPowerSourceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeSourcesWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSourceConfiguration.Sources response %@", [value description]); if (error != nil) { @@ -15225,13 +15641,12 @@ class SubscribeAttributePowerSourceConfigurationSources : public SubscribeAttrib ~SubscribeAttributePowerSourceConfigurationSources() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002E) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSourceConfiguration * cluster = [[MTRPowerSourceConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPowerSourceConfiguration * cluster = + [[MTRBaseClusterPowerSourceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -15265,14 +15680,13 @@ class ReadPowerSourceConfigurationGeneratedCommandList : public ReadAttribute { ~ReadPowerSourceConfigurationGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002E) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSourceConfiguration * cluster = [[MTRPowerSourceConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPowerSourceConfiguration * cluster = + [[MTRBaseClusterPowerSourceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSourceConfiguration.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -15293,13 +15707,12 @@ class SubscribeAttributePowerSourceConfigurationGeneratedCommandList : public Su ~SubscribeAttributePowerSourceConfigurationGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002E) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSourceConfiguration * cluster = [[MTRPowerSourceConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPowerSourceConfiguration * cluster = + [[MTRBaseClusterPowerSourceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -15333,14 +15746,13 @@ class ReadPowerSourceConfigurationAcceptedCommandList : public ReadAttribute { ~ReadPowerSourceConfigurationAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002E) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSourceConfiguration * cluster = [[MTRPowerSourceConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPowerSourceConfiguration * cluster = + [[MTRBaseClusterPowerSourceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSourceConfiguration.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -15361,13 +15773,12 @@ class SubscribeAttributePowerSourceConfigurationAcceptedCommandList : public Sub ~SubscribeAttributePowerSourceConfigurationAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002E) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSourceConfiguration * cluster = [[MTRPowerSourceConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPowerSourceConfiguration * cluster = + [[MTRBaseClusterPowerSourceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -15401,14 +15812,13 @@ class ReadPowerSourceConfigurationAttributeList : public ReadAttribute { ~ReadPowerSourceConfigurationAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002E) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSourceConfiguration * cluster = [[MTRPowerSourceConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPowerSourceConfiguration * cluster = + [[MTRBaseClusterPowerSourceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSourceConfiguration.AttributeList response %@", [value description]); if (error != nil) { @@ -15429,13 +15839,12 @@ class SubscribeAttributePowerSourceConfigurationAttributeList : public Subscribe ~SubscribeAttributePowerSourceConfigurationAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002E) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSourceConfiguration * cluster = [[MTRPowerSourceConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPowerSourceConfiguration * cluster = + [[MTRBaseClusterPowerSourceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -15469,14 +15878,13 @@ class ReadPowerSourceConfigurationFeatureMap : public ReadAttribute { ~ReadPowerSourceConfigurationFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002E) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSourceConfiguration * cluster = [[MTRPowerSourceConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPowerSourceConfiguration * cluster = + [[MTRBaseClusterPowerSourceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSourceConfiguration.FeatureMap response %@", [value description]); if (error != nil) { @@ -15497,13 +15905,12 @@ class SubscribeAttributePowerSourceConfigurationFeatureMap : public SubscribeAtt ~SubscribeAttributePowerSourceConfigurationFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002E) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSourceConfiguration * cluster = [[MTRPowerSourceConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPowerSourceConfiguration * cluster = + [[MTRBaseClusterPowerSourceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -15537,14 +15944,13 @@ class ReadPowerSourceConfigurationClusterRevision : public ReadAttribute { ~ReadPowerSourceConfigurationClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002E) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSourceConfiguration * cluster = [[MTRPowerSourceConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPowerSourceConfiguration * cluster = + [[MTRBaseClusterPowerSourceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSourceConfiguration.ClusterRevision response %@", [value description]); if (error != nil) { @@ -15565,13 +15971,12 @@ class SubscribeAttributePowerSourceConfigurationClusterRevision : public Subscri ~SubscribeAttributePowerSourceConfigurationClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002E) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSourceConfiguration * cluster = [[MTRPowerSourceConfiguration alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPowerSourceConfiguration * cluster = + [[MTRBaseClusterPowerSourceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -15651,12 +16056,14 @@ class ReadPowerSourceStatus : public ReadAttribute { ~ReadPowerSourceStatus() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.Status response %@", [value description]); if (error != nil) { @@ -15677,11 +16084,13 @@ class SubscribeAttributePowerSourceStatus : public SubscribeAttribute { ~SubscribeAttributePowerSourceStatus() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -15715,12 +16124,14 @@ class ReadPowerSourceOrder : public ReadAttribute { ~ReadPowerSourceOrder() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeOrderWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.Order response %@", [value description]); if (error != nil) { @@ -15741,11 +16152,13 @@ class SubscribeAttributePowerSourceOrder : public SubscribeAttribute { ~SubscribeAttributePowerSourceOrder() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -15779,12 +16192,14 @@ class ReadPowerSourceDescription : public ReadAttribute { ~ReadPowerSourceDescription() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeDescriptionWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.Description response %@", [value description]); if (error != nil) { @@ -15805,11 +16220,13 @@ class SubscribeAttributePowerSourceDescription : public SubscribeAttribute { ~SubscribeAttributePowerSourceDescription() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -15843,12 +16260,14 @@ class ReadPowerSourceWiredAssessedInputVoltage : public ReadAttribute { ~ReadPowerSourceWiredAssessedInputVoltage() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeWiredAssessedInputVoltageWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.WiredAssessedInputVoltage response %@", [value description]); @@ -15870,11 +16289,13 @@ class SubscribeAttributePowerSourceWiredAssessedInputVoltage : public SubscribeA ~SubscribeAttributePowerSourceWiredAssessedInputVoltage() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -15908,12 +16329,14 @@ class ReadPowerSourceWiredAssessedInputFrequency : public ReadAttribute { ~ReadPowerSourceWiredAssessedInputFrequency() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeWiredAssessedInputFrequencyWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.WiredAssessedInputFrequency response %@", [value description]); @@ -15935,11 +16358,13 @@ class SubscribeAttributePowerSourceWiredAssessedInputFrequency : public Subscrib ~SubscribeAttributePowerSourceWiredAssessedInputFrequency() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -15973,12 +16398,14 @@ class ReadPowerSourceWiredCurrentType : public ReadAttribute { ~ReadPowerSourceWiredCurrentType() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeWiredCurrentTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.WiredCurrentType response %@", [value description]); if (error != nil) { @@ -15999,11 +16426,13 @@ class SubscribeAttributePowerSourceWiredCurrentType : public SubscribeAttribute ~SubscribeAttributePowerSourceWiredCurrentType() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -16037,12 +16466,14 @@ class ReadPowerSourceWiredAssessedCurrent : public ReadAttribute { ~ReadPowerSourceWiredAssessedCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeWiredAssessedCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.WiredAssessedCurrent response %@", [value description]); if (error != nil) { @@ -16063,11 +16494,13 @@ class SubscribeAttributePowerSourceWiredAssessedCurrent : public SubscribeAttrib ~SubscribeAttributePowerSourceWiredAssessedCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -16101,12 +16534,14 @@ class ReadPowerSourceWiredNominalVoltage : public ReadAttribute { ~ReadPowerSourceWiredNominalVoltage() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeWiredNominalVoltageWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.WiredNominalVoltage response %@", [value description]); if (error != nil) { @@ -16127,11 +16562,13 @@ class SubscribeAttributePowerSourceWiredNominalVoltage : public SubscribeAttribu ~SubscribeAttributePowerSourceWiredNominalVoltage() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -16165,12 +16602,14 @@ class ReadPowerSourceWiredMaximumCurrent : public ReadAttribute { ~ReadPowerSourceWiredMaximumCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeWiredMaximumCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.WiredMaximumCurrent response %@", [value description]); if (error != nil) { @@ -16191,11 +16630,13 @@ class SubscribeAttributePowerSourceWiredMaximumCurrent : public SubscribeAttribu ~SubscribeAttributePowerSourceWiredMaximumCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -16229,12 +16670,14 @@ class ReadPowerSourceWiredPresent : public ReadAttribute { ~ReadPowerSourceWiredPresent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeWiredPresentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.WiredPresent response %@", [value description]); if (error != nil) { @@ -16255,11 +16698,13 @@ class SubscribeAttributePowerSourceWiredPresent : public SubscribeAttribute { ~SubscribeAttributePowerSourceWiredPresent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -16293,12 +16738,14 @@ class ReadPowerSourceActiveWiredFaults : public ReadAttribute { ~ReadPowerSourceActiveWiredFaults() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeActiveWiredFaultsWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.ActiveWiredFaults response %@", [value description]); if (error != nil) { @@ -16319,11 +16766,13 @@ class SubscribeAttributePowerSourceActiveWiredFaults : public SubscribeAttribute ~SubscribeAttributePowerSourceActiveWiredFaults() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -16357,12 +16806,14 @@ class ReadPowerSourceBatteryVoltage : public ReadAttribute { ~ReadPowerSourceBatteryVoltage() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeBatteryVoltageWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.BatteryVoltage response %@", [value description]); if (error != nil) { @@ -16383,11 +16834,13 @@ class SubscribeAttributePowerSourceBatteryVoltage : public SubscribeAttribute { ~SubscribeAttributePowerSourceBatteryVoltage() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -16421,12 +16874,14 @@ class ReadPowerSourceBatteryPercentRemaining : public ReadAttribute { ~ReadPowerSourceBatteryPercentRemaining() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x0000000C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeBatteryPercentRemainingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.BatteryPercentRemaining response %@", [value description]); @@ -16448,11 +16903,13 @@ class SubscribeAttributePowerSourceBatteryPercentRemaining : public SubscribeAtt ~SubscribeAttributePowerSourceBatteryPercentRemaining() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x0000000C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -16486,12 +16943,14 @@ class ReadPowerSourceBatteryTimeRemaining : public ReadAttribute { ~ReadPowerSourceBatteryTimeRemaining() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x0000000D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeBatteryTimeRemainingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.BatteryTimeRemaining response %@", [value description]); if (error != nil) { @@ -16512,11 +16971,13 @@ class SubscribeAttributePowerSourceBatteryTimeRemaining : public SubscribeAttrib ~SubscribeAttributePowerSourceBatteryTimeRemaining() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x0000000D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -16550,12 +17011,14 @@ class ReadPowerSourceBatteryChargeLevel : public ReadAttribute { ~ReadPowerSourceBatteryChargeLevel() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x0000000E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeBatteryChargeLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.BatteryChargeLevel response %@", [value description]); if (error != nil) { @@ -16576,11 +17039,13 @@ class SubscribeAttributePowerSourceBatteryChargeLevel : public SubscribeAttribut ~SubscribeAttributePowerSourceBatteryChargeLevel() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x0000000E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -16614,12 +17079,14 @@ class ReadPowerSourceBatteryReplacementNeeded : public ReadAttribute { ~ReadPowerSourceBatteryReplacementNeeded() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeBatteryReplacementNeededWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.BatteryReplacementNeeded response %@", [value description]); @@ -16641,11 +17108,13 @@ class SubscribeAttributePowerSourceBatteryReplacementNeeded : public SubscribeAt ~SubscribeAttributePowerSourceBatteryReplacementNeeded() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -16679,12 +17148,14 @@ class ReadPowerSourceBatteryReplaceability : public ReadAttribute { ~ReadPowerSourceBatteryReplaceability() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeBatteryReplaceabilityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.BatteryReplaceability response %@", [value description]); if (error != nil) { @@ -16705,11 +17176,13 @@ class SubscribeAttributePowerSourceBatteryReplaceability : public SubscribeAttri ~SubscribeAttributePowerSourceBatteryReplaceability() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -16743,12 +17216,14 @@ class ReadPowerSourceBatteryPresent : public ReadAttribute { ~ReadPowerSourceBatteryPresent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeBatteryPresentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.BatteryPresent response %@", [value description]); if (error != nil) { @@ -16769,11 +17244,13 @@ class SubscribeAttributePowerSourceBatteryPresent : public SubscribeAttribute { ~SubscribeAttributePowerSourceBatteryPresent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -16807,12 +17284,14 @@ class ReadPowerSourceActiveBatteryFaults : public ReadAttribute { ~ReadPowerSourceActiveBatteryFaults() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeActiveBatteryFaultsWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.ActiveBatteryFaults response %@", [value description]); if (error != nil) { @@ -16833,11 +17312,13 @@ class SubscribeAttributePowerSourceActiveBatteryFaults : public SubscribeAttribu ~SubscribeAttributePowerSourceActiveBatteryFaults() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -16871,12 +17352,14 @@ class ReadPowerSourceBatteryReplacementDescription : public ReadAttribute { ~ReadPowerSourceBatteryReplacementDescription() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeBatteryReplacementDescriptionWithCompletionHandler:^( NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.BatteryReplacementDescription response %@", [value description]); @@ -16898,11 +17381,13 @@ class SubscribeAttributePowerSourceBatteryReplacementDescription : public Subscr ~SubscribeAttributePowerSourceBatteryReplacementDescription() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -16936,12 +17421,14 @@ class ReadPowerSourceBatteryCommonDesignation : public ReadAttribute { ~ReadPowerSourceBatteryCommonDesignation() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x00000014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeBatteryCommonDesignationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.BatteryCommonDesignation response %@", [value description]); @@ -16963,11 +17450,13 @@ class SubscribeAttributePowerSourceBatteryCommonDesignation : public SubscribeAt ~SubscribeAttributePowerSourceBatteryCommonDesignation() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x00000014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -17001,12 +17490,14 @@ class ReadPowerSourceBatteryANSIDesignation : public ReadAttribute { ~ReadPowerSourceBatteryANSIDesignation() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x00000015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeBatteryANSIDesignationWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.BatteryANSIDesignation response %@", [value description]); if (error != nil) { @@ -17027,11 +17518,13 @@ class SubscribeAttributePowerSourceBatteryANSIDesignation : public SubscribeAttr ~SubscribeAttributePowerSourceBatteryANSIDesignation() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x00000015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -17065,12 +17558,14 @@ class ReadPowerSourceBatteryIECDesignation : public ReadAttribute { ~ReadPowerSourceBatteryIECDesignation() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x00000016) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeBatteryIECDesignationWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.BatteryIECDesignation response %@", [value description]); if (error != nil) { @@ -17091,11 +17586,13 @@ class SubscribeAttributePowerSourceBatteryIECDesignation : public SubscribeAttri ~SubscribeAttributePowerSourceBatteryIECDesignation() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x00000016) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -17129,12 +17626,14 @@ class ReadPowerSourceBatteryApprovedChemistry : public ReadAttribute { ~ReadPowerSourceBatteryApprovedChemistry() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x00000017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeBatteryApprovedChemistryWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.BatteryApprovedChemistry response %@", [value description]); @@ -17156,11 +17655,13 @@ class SubscribeAttributePowerSourceBatteryApprovedChemistry : public SubscribeAt ~SubscribeAttributePowerSourceBatteryApprovedChemistry() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x00000017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -17194,12 +17695,14 @@ class ReadPowerSourceBatteryCapacity : public ReadAttribute { ~ReadPowerSourceBatteryCapacity() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x00000018) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeBatteryCapacityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.BatteryCapacity response %@", [value description]); if (error != nil) { @@ -17220,11 +17723,13 @@ class SubscribeAttributePowerSourceBatteryCapacity : public SubscribeAttribute { ~SubscribeAttributePowerSourceBatteryCapacity() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x00000018) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -17258,12 +17763,14 @@ class ReadPowerSourceBatteryQuantity : public ReadAttribute { ~ReadPowerSourceBatteryQuantity() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x00000019) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeBatteryQuantityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.BatteryQuantity response %@", [value description]); if (error != nil) { @@ -17284,11 +17791,13 @@ class SubscribeAttributePowerSourceBatteryQuantity : public SubscribeAttribute { ~SubscribeAttributePowerSourceBatteryQuantity() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x00000019) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -17322,12 +17831,14 @@ class ReadPowerSourceBatteryChargeState : public ReadAttribute { ~ReadPowerSourceBatteryChargeState() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x0000001A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeBatteryChargeStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.BatteryChargeState response %@", [value description]); if (error != nil) { @@ -17348,11 +17859,13 @@ class SubscribeAttributePowerSourceBatteryChargeState : public SubscribeAttribut ~SubscribeAttributePowerSourceBatteryChargeState() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x0000001A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -17386,12 +17899,14 @@ class ReadPowerSourceBatteryTimeToFullCharge : public ReadAttribute { ~ReadPowerSourceBatteryTimeToFullCharge() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x0000001B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeBatteryTimeToFullChargeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.BatteryTimeToFullCharge response %@", [value description]); @@ -17413,11 +17928,13 @@ class SubscribeAttributePowerSourceBatteryTimeToFullCharge : public SubscribeAtt ~SubscribeAttributePowerSourceBatteryTimeToFullCharge() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x0000001B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -17451,12 +17968,14 @@ class ReadPowerSourceBatteryFunctionalWhileCharging : public ReadAttribute { ~ReadPowerSourceBatteryFunctionalWhileCharging() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x0000001C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeBatteryFunctionalWhileChargingWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.BatteryFunctionalWhileCharging response %@", [value description]); @@ -17478,11 +17997,13 @@ class SubscribeAttributePowerSourceBatteryFunctionalWhileCharging : public Subsc ~SubscribeAttributePowerSourceBatteryFunctionalWhileCharging() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x0000001C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -17516,12 +18037,14 @@ class ReadPowerSourceBatteryChargingCurrent : public ReadAttribute { ~ReadPowerSourceBatteryChargingCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x0000001D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeBatteryChargingCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.BatteryChargingCurrent response %@", [value description]); if (error != nil) { @@ -17542,11 +18065,13 @@ class SubscribeAttributePowerSourceBatteryChargingCurrent : public SubscribeAttr ~SubscribeAttributePowerSourceBatteryChargingCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x0000001D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -17580,12 +18105,14 @@ class ReadPowerSourceActiveBatteryChargeFaults : public ReadAttribute { ~ReadPowerSourceActiveBatteryChargeFaults() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x0000001E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeActiveBatteryChargeFaultsWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.ActiveBatteryChargeFaults response %@", [value description]); @@ -17607,11 +18134,13 @@ class SubscribeAttributePowerSourceActiveBatteryChargeFaults : public SubscribeA ~SubscribeAttributePowerSourceActiveBatteryChargeFaults() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x0000001E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -17645,12 +18174,14 @@ class ReadPowerSourceGeneratedCommandList : public ReadAttribute { ~ReadPowerSourceGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -17671,11 +18202,13 @@ class SubscribeAttributePowerSourceGeneratedCommandList : public SubscribeAttrib ~SubscribeAttributePowerSourceGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -17709,12 +18242,14 @@ class ReadPowerSourceAcceptedCommandList : public ReadAttribute { ~ReadPowerSourceAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -17735,11 +18270,13 @@ class SubscribeAttributePowerSourceAcceptedCommandList : public SubscribeAttribu ~SubscribeAttributePowerSourceAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -17773,12 +18310,14 @@ class ReadPowerSourceAttributeList : public ReadAttribute { ~ReadPowerSourceAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.AttributeList response %@", [value description]); if (error != nil) { @@ -17799,11 +18338,13 @@ class SubscribeAttributePowerSourceAttributeList : public SubscribeAttribute { ~SubscribeAttributePowerSourceAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -17837,12 +18378,14 @@ class ReadPowerSourceFeatureMap : public ReadAttribute { ~ReadPowerSourceFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.FeatureMap response %@", [value description]); if (error != nil) { @@ -17863,11 +18406,13 @@ class SubscribeAttributePowerSourceFeatureMap : public SubscribeAttribute { ~SubscribeAttributePowerSourceFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -17901,12 +18446,14 @@ class ReadPowerSourceClusterRevision : public ReadAttribute { ~ReadPowerSourceClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PowerSource.ClusterRevision response %@", [value description]); if (error != nil) { @@ -17927,11 +18474,13 @@ class SubscribeAttributePowerSourceClusterRevision : public SubscribeAttribute { ~SubscribeAttributePowerSourceClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000002F) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPowerSource * cluster = [[MTRPowerSource alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -17989,14 +18538,14 @@ class GeneralCommissioningArmFailSafe : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRGeneralCommissioningClusterArmFailSafeParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -18040,14 +18589,14 @@ class GeneralCommissioningSetRegulatoryConfig : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) command (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRGeneralCommissioningClusterSetRegulatoryConfigParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -18092,14 +18641,14 @@ class GeneralCommissioningCommissioningComplete : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) command (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRGeneralCommissioningClusterCommissioningCompleteParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -18139,14 +18688,14 @@ class ReadGeneralCommissioningBreadcrumb : public ReadAttribute { ~ReadGeneralCommissioningBreadcrumb() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeBreadcrumbWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralCommissioning.Breadcrumb response %@", [value description]); if (error != nil) { @@ -18170,15 +18719,15 @@ class WriteGeneralCommissioningBreadcrumb : public WriteAttribute { ~WriteGeneralCommissioningBreadcrumb() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) WriteAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedLongLong:mValue]; @@ -18207,13 +18756,13 @@ class SubscribeAttributeGeneralCommissioningBreadcrumb : public SubscribeAttribu ~SubscribeAttributeGeneralCommissioningBreadcrumb() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -18247,14 +18796,14 @@ class ReadGeneralCommissioningBasicCommissioningInfo : public ReadAttribute { ~ReadGeneralCommissioningBasicCommissioningInfo() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeBasicCommissioningInfoWithCompletionHandler:^( MTRGeneralCommissioningClusterBasicCommissioningInfo * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralCommissioning.BasicCommissioningInfo response %@", [value description]); @@ -18276,13 +18825,13 @@ class SubscribeAttributeGeneralCommissioningBasicCommissioningInfo : public Subs ~SubscribeAttributeGeneralCommissioningBasicCommissioningInfo() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -18316,14 +18865,14 @@ class ReadGeneralCommissioningRegulatoryConfig : public ReadAttribute { ~ReadGeneralCommissioningRegulatoryConfig() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRegulatoryConfigWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralCommissioning.RegulatoryConfig response %@", [value description]); if (error != nil) { @@ -18344,13 +18893,13 @@ class SubscribeAttributeGeneralCommissioningRegulatoryConfig : public SubscribeA ~SubscribeAttributeGeneralCommissioningRegulatoryConfig() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -18384,14 +18933,14 @@ class ReadGeneralCommissioningLocationCapability : public ReadAttribute { ~ReadGeneralCommissioningLocationCapability() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeLocationCapabilityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralCommissioning.LocationCapability response %@", [value description]); if (error != nil) { @@ -18412,13 +18961,13 @@ class SubscribeAttributeGeneralCommissioningLocationCapability : public Subscrib ~SubscribeAttributeGeneralCommissioningLocationCapability() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -18452,14 +19001,14 @@ class ReadGeneralCommissioningSupportsConcurrentConnection : public ReadAttribut ~ReadGeneralCommissioningSupportsConcurrentConnection() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeSupportsConcurrentConnectionWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralCommissioning.SupportsConcurrentConnection response %@", [value description]); @@ -18481,13 +19030,13 @@ class SubscribeAttributeGeneralCommissioningSupportsConcurrentConnection : publi ~SubscribeAttributeGeneralCommissioningSupportsConcurrentConnection() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -18521,14 +19070,14 @@ class ReadGeneralCommissioningGeneratedCommandList : public ReadAttribute { ~ReadGeneralCommissioningGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralCommissioning.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -18549,13 +19098,13 @@ class SubscribeAttributeGeneralCommissioningGeneratedCommandList : public Subscr ~SubscribeAttributeGeneralCommissioningGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -18589,14 +19138,14 @@ class ReadGeneralCommissioningAcceptedCommandList : public ReadAttribute { ~ReadGeneralCommissioningAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralCommissioning.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -18617,13 +19166,13 @@ class SubscribeAttributeGeneralCommissioningAcceptedCommandList : public Subscri ~SubscribeAttributeGeneralCommissioningAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -18657,14 +19206,14 @@ class ReadGeneralCommissioningAttributeList : public ReadAttribute { ~ReadGeneralCommissioningAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralCommissioning.AttributeList response %@", [value description]); if (error != nil) { @@ -18685,13 +19234,13 @@ class SubscribeAttributeGeneralCommissioningAttributeList : public SubscribeAttr ~SubscribeAttributeGeneralCommissioningAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -18725,14 +19274,14 @@ class ReadGeneralCommissioningFeatureMap : public ReadAttribute { ~ReadGeneralCommissioningFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralCommissioning.FeatureMap response %@", [value description]); if (error != nil) { @@ -18753,13 +19302,13 @@ class SubscribeAttributeGeneralCommissioningFeatureMap : public SubscribeAttribu ~SubscribeAttributeGeneralCommissioningFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -18793,14 +19342,14 @@ class ReadGeneralCommissioningClusterRevision : public ReadAttribute { ~ReadGeneralCommissioningClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralCommissioning.ClusterRevision response %@", [value description]); if (error != nil) { @@ -18821,13 +19370,13 @@ class SubscribeAttributeGeneralCommissioningClusterRevision : public SubscribeAt ~SubscribeAttributeGeneralCommissioningClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000030) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralCommissioning * cluster = [[MTRGeneralCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -18891,14 +19440,14 @@ class NetworkCommissioningScanNetworks : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterNetworkCommissioning * cluster = [[MTRBaseClusterNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRNetworkCommissioningClusterScanNetworksParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -18955,14 +19504,14 @@ class NetworkCommissioningAddOrUpdateWiFiNetwork : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) command (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterNetworkCommissioning * cluster = [[MTRBaseClusterNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRNetworkCommissioningClusterAddOrUpdateWiFiNetworkParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -19011,14 +19560,14 @@ class NetworkCommissioningAddOrUpdateThreadNetwork : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) command (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterNetworkCommissioning * cluster = [[MTRBaseClusterNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRNetworkCommissioningClusterAddOrUpdateThreadNetworkParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -19067,14 +19616,14 @@ class NetworkCommissioningRemoveNetwork : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) command (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterNetworkCommissioning * cluster = [[MTRBaseClusterNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRNetworkCommissioningClusterRemoveNetworkParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -19121,14 +19670,14 @@ class NetworkCommissioningConnectNetwork : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) command (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterNetworkCommissioning * cluster = [[MTRBaseClusterNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRNetworkCommissioningClusterConnectNetworkParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -19176,14 +19725,14 @@ class NetworkCommissioningReorderNetwork : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) command (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterNetworkCommissioning * cluster = [[MTRBaseClusterNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRNetworkCommissioningClusterReorderNetworkParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -19230,14 +19779,14 @@ class ReadNetworkCommissioningMaxNetworks : public ReadAttribute { ~ReadNetworkCommissioningMaxNetworks() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterNetworkCommissioning * cluster = [[MTRBaseClusterNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMaxNetworksWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"NetworkCommissioning.MaxNetworks response %@", [value description]); if (error != nil) { @@ -19258,13 +19807,13 @@ class SubscribeAttributeNetworkCommissioningMaxNetworks : public SubscribeAttrib ~SubscribeAttributeNetworkCommissioningMaxNetworks() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterNetworkCommissioning * cluster = [[MTRBaseClusterNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -19298,14 +19847,14 @@ class ReadNetworkCommissioningNetworks : public ReadAttribute { ~ReadNetworkCommissioningNetworks() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterNetworkCommissioning * cluster = [[MTRBaseClusterNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNetworksWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"NetworkCommissioning.Networks response %@", [value description]); if (error != nil) { @@ -19326,13 +19875,13 @@ class SubscribeAttributeNetworkCommissioningNetworks : public SubscribeAttribute ~SubscribeAttributeNetworkCommissioningNetworks() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterNetworkCommissioning * cluster = [[MTRBaseClusterNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -19366,14 +19915,14 @@ class ReadNetworkCommissioningScanMaxTimeSeconds : public ReadAttribute { ~ReadNetworkCommissioningScanMaxTimeSeconds() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterNetworkCommissioning * cluster = [[MTRBaseClusterNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeScanMaxTimeSecondsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"NetworkCommissioning.ScanMaxTimeSeconds response %@", [value description]); if (error != nil) { @@ -19394,13 +19943,13 @@ class SubscribeAttributeNetworkCommissioningScanMaxTimeSeconds : public Subscrib ~SubscribeAttributeNetworkCommissioningScanMaxTimeSeconds() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterNetworkCommissioning * cluster = [[MTRBaseClusterNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -19434,14 +19983,14 @@ class ReadNetworkCommissioningConnectMaxTimeSeconds : public ReadAttribute { ~ReadNetworkCommissioningConnectMaxTimeSeconds() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterNetworkCommissioning * cluster = [[MTRBaseClusterNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeConnectMaxTimeSecondsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"NetworkCommissioning.ConnectMaxTimeSeconds response %@", [value description]); if (error != nil) { @@ -19462,13 +20011,13 @@ class SubscribeAttributeNetworkCommissioningConnectMaxTimeSeconds : public Subsc ~SubscribeAttributeNetworkCommissioningConnectMaxTimeSeconds() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterNetworkCommissioning * cluster = [[MTRBaseClusterNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -19502,14 +20051,14 @@ class ReadNetworkCommissioningInterfaceEnabled : public ReadAttribute { ~ReadNetworkCommissioningInterfaceEnabled() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterNetworkCommissioning * cluster = [[MTRBaseClusterNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeInterfaceEnabledWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"NetworkCommissioning.InterfaceEnabled response %@", [value description]); if (error != nil) { @@ -19533,15 +20082,15 @@ class WriteNetworkCommissioningInterfaceEnabled : public WriteAttribute { ~WriteNetworkCommissioningInterfaceEnabled() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) WriteAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterNetworkCommissioning * cluster = [[MTRBaseClusterNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithBool:mValue]; @@ -19570,13 +20119,13 @@ class SubscribeAttributeNetworkCommissioningInterfaceEnabled : public SubscribeA ~SubscribeAttributeNetworkCommissioningInterfaceEnabled() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterNetworkCommissioning * cluster = [[MTRBaseClusterNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -19610,14 +20159,14 @@ class ReadNetworkCommissioningLastNetworkingStatus : public ReadAttribute { ~ReadNetworkCommissioningLastNetworkingStatus() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReadAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterNetworkCommissioning * cluster = [[MTRBaseClusterNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeLastNetworkingStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"NetworkCommissioning.LastNetworkingStatus response %@", [value description]); if (error != nil) { @@ -19638,13 +20187,13 @@ class SubscribeAttributeNetworkCommissioningLastNetworkingStatus : public Subscr ~SubscribeAttributeNetworkCommissioningLastNetworkingStatus() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReportAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterNetworkCommissioning * cluster = [[MTRBaseClusterNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -19678,14 +20227,14 @@ class ReadNetworkCommissioningLastNetworkID : public ReadAttribute { ~ReadNetworkCommissioningLastNetworkID() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReadAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterNetworkCommissioning * cluster = [[MTRBaseClusterNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeLastNetworkIDWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable error) { NSLog(@"NetworkCommissioning.LastNetworkID response %@", [value description]); if (error != nil) { @@ -19706,13 +20255,13 @@ class SubscribeAttributeNetworkCommissioningLastNetworkID : public SubscribeAttr ~SubscribeAttributeNetworkCommissioningLastNetworkID() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReportAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterNetworkCommissioning * cluster = [[MTRBaseClusterNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -19746,14 +20295,14 @@ class ReadNetworkCommissioningLastConnectErrorValue : public ReadAttribute { ~ReadNetworkCommissioningLastConnectErrorValue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReadAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterNetworkCommissioning * cluster = [[MTRBaseClusterNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeLastConnectErrorValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"NetworkCommissioning.LastConnectErrorValue response %@", [value description]); if (error != nil) { @@ -19774,13 +20323,13 @@ class SubscribeAttributeNetworkCommissioningLastConnectErrorValue : public Subsc ~SubscribeAttributeNetworkCommissioningLastConnectErrorValue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReportAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterNetworkCommissioning * cluster = [[MTRBaseClusterNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -19814,14 +20363,14 @@ class ReadNetworkCommissioningGeneratedCommandList : public ReadAttribute { ~ReadNetworkCommissioningGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterNetworkCommissioning * cluster = [[MTRBaseClusterNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"NetworkCommissioning.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -19842,13 +20391,13 @@ class SubscribeAttributeNetworkCommissioningGeneratedCommandList : public Subscr ~SubscribeAttributeNetworkCommissioningGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterNetworkCommissioning * cluster = [[MTRBaseClusterNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -19882,14 +20431,14 @@ class ReadNetworkCommissioningAcceptedCommandList : public ReadAttribute { ~ReadNetworkCommissioningAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterNetworkCommissioning * cluster = [[MTRBaseClusterNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"NetworkCommissioning.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -19910,13 +20459,13 @@ class SubscribeAttributeNetworkCommissioningAcceptedCommandList : public Subscri ~SubscribeAttributeNetworkCommissioningAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterNetworkCommissioning * cluster = [[MTRBaseClusterNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -19950,14 +20499,14 @@ class ReadNetworkCommissioningAttributeList : public ReadAttribute { ~ReadNetworkCommissioningAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterNetworkCommissioning * cluster = [[MTRBaseClusterNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"NetworkCommissioning.AttributeList response %@", [value description]); if (error != nil) { @@ -19978,13 +20527,13 @@ class SubscribeAttributeNetworkCommissioningAttributeList : public SubscribeAttr ~SubscribeAttributeNetworkCommissioningAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterNetworkCommissioning * cluster = [[MTRBaseClusterNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -20018,14 +20567,14 @@ class ReadNetworkCommissioningFeatureMap : public ReadAttribute { ~ReadNetworkCommissioningFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterNetworkCommissioning * cluster = [[MTRBaseClusterNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"NetworkCommissioning.FeatureMap response %@", [value description]); if (error != nil) { @@ -20046,13 +20595,13 @@ class SubscribeAttributeNetworkCommissioningFeatureMap : public SubscribeAttribu ~SubscribeAttributeNetworkCommissioningFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterNetworkCommissioning * cluster = [[MTRBaseClusterNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -20086,14 +20635,14 @@ class ReadNetworkCommissioningClusterRevision : public ReadAttribute { ~ReadNetworkCommissioningClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterNetworkCommissioning * cluster = [[MTRBaseClusterNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"NetworkCommissioning.ClusterRevision response %@", [value description]); if (error != nil) { @@ -20114,13 +20663,13 @@ class SubscribeAttributeNetworkCommissioningClusterRevision : public SubscribeAt ~SubscribeAttributeNetworkCommissioningClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000031) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRNetworkCommissioning * cluster = [[MTRNetworkCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterNetworkCommissioning * cluster = [[MTRBaseClusterNetworkCommissioning alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -20172,12 +20721,14 @@ class DiagnosticLogsRetrieveLogsRequest : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000032) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDiagnosticLogs * cluster = [[MTRDiagnosticLogs alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDiagnosticLogs * cluster = [[MTRBaseClusterDiagnosticLogs alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRDiagnosticLogsClusterRetrieveLogsRequestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -20221,12 +20772,14 @@ class ReadDiagnosticLogsGeneratedCommandList : public ReadAttribute { ~ReadDiagnosticLogsGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000032) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDiagnosticLogs * cluster = [[MTRDiagnosticLogs alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDiagnosticLogs * cluster = [[MTRBaseClusterDiagnosticLogs alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"DiagnosticLogs.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -20247,11 +20800,13 @@ class SubscribeAttributeDiagnosticLogsGeneratedCommandList : public SubscribeAtt ~SubscribeAttributeDiagnosticLogsGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000032) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDiagnosticLogs * cluster = [[MTRDiagnosticLogs alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDiagnosticLogs * cluster = [[MTRBaseClusterDiagnosticLogs alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -20285,12 +20840,14 @@ class ReadDiagnosticLogsAcceptedCommandList : public ReadAttribute { ~ReadDiagnosticLogsAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000032) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDiagnosticLogs * cluster = [[MTRDiagnosticLogs alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDiagnosticLogs * cluster = [[MTRBaseClusterDiagnosticLogs alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"DiagnosticLogs.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -20311,11 +20868,13 @@ class SubscribeAttributeDiagnosticLogsAcceptedCommandList : public SubscribeAttr ~SubscribeAttributeDiagnosticLogsAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000032) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDiagnosticLogs * cluster = [[MTRDiagnosticLogs alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDiagnosticLogs * cluster = [[MTRBaseClusterDiagnosticLogs alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -20349,12 +20908,14 @@ class ReadDiagnosticLogsAttributeList : public ReadAttribute { ~ReadDiagnosticLogsAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000032) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDiagnosticLogs * cluster = [[MTRDiagnosticLogs alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDiagnosticLogs * cluster = [[MTRBaseClusterDiagnosticLogs alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"DiagnosticLogs.AttributeList response %@", [value description]); if (error != nil) { @@ -20375,11 +20936,13 @@ class SubscribeAttributeDiagnosticLogsAttributeList : public SubscribeAttribute ~SubscribeAttributeDiagnosticLogsAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000032) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDiagnosticLogs * cluster = [[MTRDiagnosticLogs alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDiagnosticLogs * cluster = [[MTRBaseClusterDiagnosticLogs alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -20413,12 +20976,14 @@ class ReadDiagnosticLogsFeatureMap : public ReadAttribute { ~ReadDiagnosticLogsFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000032) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDiagnosticLogs * cluster = [[MTRDiagnosticLogs alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDiagnosticLogs * cluster = [[MTRBaseClusterDiagnosticLogs alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DiagnosticLogs.FeatureMap response %@", [value description]); if (error != nil) { @@ -20439,11 +21004,13 @@ class SubscribeAttributeDiagnosticLogsFeatureMap : public SubscribeAttribute { ~SubscribeAttributeDiagnosticLogsFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000032) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDiagnosticLogs * cluster = [[MTRDiagnosticLogs alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDiagnosticLogs * cluster = [[MTRBaseClusterDiagnosticLogs alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -20477,12 +21044,14 @@ class ReadDiagnosticLogsClusterRevision : public ReadAttribute { ~ReadDiagnosticLogsClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000032) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDiagnosticLogs * cluster = [[MTRDiagnosticLogs alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDiagnosticLogs * cluster = [[MTRBaseClusterDiagnosticLogs alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DiagnosticLogs.ClusterRevision response %@", [value description]); if (error != nil) { @@ -20503,11 +21072,13 @@ class SubscribeAttributeDiagnosticLogsClusterRevision : public SubscribeAttribut ~SubscribeAttributeDiagnosticLogsClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000032) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDiagnosticLogs * cluster = [[MTRDiagnosticLogs alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDiagnosticLogs * cluster = [[MTRBaseClusterDiagnosticLogs alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -20571,14 +21142,14 @@ class GeneralDiagnosticsTestEventTrigger : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralDiagnostics * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRGeneralDiagnosticsClusterTestEventTriggerParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -20618,14 +21189,14 @@ class ReadGeneralDiagnosticsNetworkInterfaces : public ReadAttribute { ~ReadGeneralDiagnosticsNetworkInterfaces() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralDiagnostics * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNetworkInterfacesWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralDiagnostics.NetworkInterfaces response %@", [value description]); if (error != nil) { @@ -20646,13 +21217,13 @@ class SubscribeAttributeGeneralDiagnosticsNetworkInterfaces : public SubscribeAt ~SubscribeAttributeGeneralDiagnosticsNetworkInterfaces() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralDiagnostics * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -20686,14 +21257,14 @@ class ReadGeneralDiagnosticsRebootCount : public ReadAttribute { ~ReadGeneralDiagnosticsRebootCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralDiagnostics * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRebootCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralDiagnostics.RebootCount response %@", [value description]); if (error != nil) { @@ -20714,13 +21285,13 @@ class SubscribeAttributeGeneralDiagnosticsRebootCount : public SubscribeAttribut ~SubscribeAttributeGeneralDiagnosticsRebootCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralDiagnostics * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -20754,14 +21325,14 @@ class ReadGeneralDiagnosticsUpTime : public ReadAttribute { ~ReadGeneralDiagnosticsUpTime() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralDiagnostics * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeUpTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralDiagnostics.UpTime response %@", [value description]); if (error != nil) { @@ -20782,13 +21353,13 @@ class SubscribeAttributeGeneralDiagnosticsUpTime : public SubscribeAttribute { ~SubscribeAttributeGeneralDiagnosticsUpTime() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralDiagnostics * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -20822,14 +21393,14 @@ class ReadGeneralDiagnosticsTotalOperationalHours : public ReadAttribute { ~ReadGeneralDiagnosticsTotalOperationalHours() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralDiagnostics * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeTotalOperationalHoursWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralDiagnostics.TotalOperationalHours response %@", [value description]); if (error != nil) { @@ -20850,13 +21421,13 @@ class SubscribeAttributeGeneralDiagnosticsTotalOperationalHours : public Subscri ~SubscribeAttributeGeneralDiagnosticsTotalOperationalHours() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralDiagnostics * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -20890,14 +21461,14 @@ class ReadGeneralDiagnosticsBootReasons : public ReadAttribute { ~ReadGeneralDiagnosticsBootReasons() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralDiagnostics * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeBootReasonsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralDiagnostics.BootReasons response %@", [value description]); if (error != nil) { @@ -20918,13 +21489,13 @@ class SubscribeAttributeGeneralDiagnosticsBootReasons : public SubscribeAttribut ~SubscribeAttributeGeneralDiagnosticsBootReasons() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralDiagnostics * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -20958,14 +21529,14 @@ class ReadGeneralDiagnosticsActiveHardwareFaults : public ReadAttribute { ~ReadGeneralDiagnosticsActiveHardwareFaults() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReadAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralDiagnostics * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeActiveHardwareFaultsWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralDiagnostics.ActiveHardwareFaults response %@", [value description]); if (error != nil) { @@ -20986,13 +21557,13 @@ class SubscribeAttributeGeneralDiagnosticsActiveHardwareFaults : public Subscrib ~SubscribeAttributeGeneralDiagnosticsActiveHardwareFaults() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReportAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralDiagnostics * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -21026,14 +21597,14 @@ class ReadGeneralDiagnosticsActiveRadioFaults : public ReadAttribute { ~ReadGeneralDiagnosticsActiveRadioFaults() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReadAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralDiagnostics * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeActiveRadioFaultsWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralDiagnostics.ActiveRadioFaults response %@", [value description]); if (error != nil) { @@ -21054,13 +21625,13 @@ class SubscribeAttributeGeneralDiagnosticsActiveRadioFaults : public SubscribeAt ~SubscribeAttributeGeneralDiagnosticsActiveRadioFaults() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReportAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralDiagnostics * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -21094,14 +21665,14 @@ class ReadGeneralDiagnosticsActiveNetworkFaults : public ReadAttribute { ~ReadGeneralDiagnosticsActiveNetworkFaults() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReadAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralDiagnostics * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeActiveNetworkFaultsWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralDiagnostics.ActiveNetworkFaults response %@", [value description]); if (error != nil) { @@ -21122,13 +21693,13 @@ class SubscribeAttributeGeneralDiagnosticsActiveNetworkFaults : public Subscribe ~SubscribeAttributeGeneralDiagnosticsActiveNetworkFaults() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReportAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralDiagnostics * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -21162,14 +21733,14 @@ class ReadGeneralDiagnosticsTestEventTriggersEnabled : public ReadAttribute { ~ReadGeneralDiagnosticsTestEventTriggersEnabled() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReadAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralDiagnostics * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeTestEventTriggersEnabledWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralDiagnostics.TestEventTriggersEnabled response %@", [value description]); @@ -21191,13 +21762,13 @@ class SubscribeAttributeGeneralDiagnosticsTestEventTriggersEnabled : public Subs ~SubscribeAttributeGeneralDiagnosticsTestEventTriggersEnabled() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReportAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralDiagnostics * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -21231,14 +21802,14 @@ class ReadGeneralDiagnosticsGeneratedCommandList : public ReadAttribute { ~ReadGeneralDiagnosticsGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralDiagnostics * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralDiagnostics.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -21259,13 +21830,13 @@ class SubscribeAttributeGeneralDiagnosticsGeneratedCommandList : public Subscrib ~SubscribeAttributeGeneralDiagnosticsGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralDiagnostics * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -21299,14 +21870,14 @@ class ReadGeneralDiagnosticsAcceptedCommandList : public ReadAttribute { ~ReadGeneralDiagnosticsAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralDiagnostics * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralDiagnostics.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -21327,13 +21898,13 @@ class SubscribeAttributeGeneralDiagnosticsAcceptedCommandList : public Subscribe ~SubscribeAttributeGeneralDiagnosticsAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralDiagnostics * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -21367,14 +21938,14 @@ class ReadGeneralDiagnosticsAttributeList : public ReadAttribute { ~ReadGeneralDiagnosticsAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralDiagnostics * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralDiagnostics.AttributeList response %@", [value description]); if (error != nil) { @@ -21395,13 +21966,13 @@ class SubscribeAttributeGeneralDiagnosticsAttributeList : public SubscribeAttrib ~SubscribeAttributeGeneralDiagnosticsAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralDiagnostics * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -21435,14 +22006,14 @@ class ReadGeneralDiagnosticsFeatureMap : public ReadAttribute { ~ReadGeneralDiagnosticsFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralDiagnostics * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralDiagnostics.FeatureMap response %@", [value description]); if (error != nil) { @@ -21463,13 +22034,13 @@ class SubscribeAttributeGeneralDiagnosticsFeatureMap : public SubscribeAttribute ~SubscribeAttributeGeneralDiagnosticsFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralDiagnostics * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -21503,14 +22074,14 @@ class ReadGeneralDiagnosticsClusterRevision : public ReadAttribute { ~ReadGeneralDiagnosticsClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralDiagnostics * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"GeneralDiagnostics.ClusterRevision response %@", [value description]); if (error != nil) { @@ -21531,13 +22102,13 @@ class SubscribeAttributeGeneralDiagnosticsClusterRevision : public SubscribeAttr ~SubscribeAttributeGeneralDiagnosticsClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000033) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGeneralDiagnostics * cluster = [[MTRGeneralDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGeneralDiagnostics * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -21591,14 +22162,14 @@ class SoftwareDiagnosticsResetWatermarks : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000034) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRSoftwareDiagnostics * cluster = [[MTRSoftwareDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterSoftwareDiagnostics * cluster = [[MTRBaseClusterSoftwareDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRSoftwareDiagnosticsClusterResetWatermarksParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -21635,14 +22206,14 @@ class ReadSoftwareDiagnosticsThreadMetrics : public ReadAttribute { ~ReadSoftwareDiagnosticsThreadMetrics() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000034) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRSoftwareDiagnostics * cluster = [[MTRSoftwareDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterSoftwareDiagnostics * cluster = [[MTRBaseClusterSoftwareDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeThreadMetricsWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"SoftwareDiagnostics.ThreadMetrics response %@", [value description]); if (error != nil) { @@ -21663,13 +22234,13 @@ class SubscribeAttributeSoftwareDiagnosticsThreadMetrics : public SubscribeAttri ~SubscribeAttributeSoftwareDiagnosticsThreadMetrics() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000034) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRSoftwareDiagnostics * cluster = [[MTRSoftwareDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterSoftwareDiagnostics * cluster = [[MTRBaseClusterSoftwareDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -21703,14 +22274,14 @@ class ReadSoftwareDiagnosticsCurrentHeapFree : public ReadAttribute { ~ReadSoftwareDiagnosticsCurrentHeapFree() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000034) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRSoftwareDiagnostics * cluster = [[MTRSoftwareDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterSoftwareDiagnostics * cluster = [[MTRBaseClusterSoftwareDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeCurrentHeapFreeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"SoftwareDiagnostics.CurrentHeapFree response %@", [value description]); if (error != nil) { @@ -21731,13 +22302,13 @@ class SubscribeAttributeSoftwareDiagnosticsCurrentHeapFree : public SubscribeAtt ~SubscribeAttributeSoftwareDiagnosticsCurrentHeapFree() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000034) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRSoftwareDiagnostics * cluster = [[MTRSoftwareDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterSoftwareDiagnostics * cluster = [[MTRBaseClusterSoftwareDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -21771,14 +22342,14 @@ class ReadSoftwareDiagnosticsCurrentHeapUsed : public ReadAttribute { ~ReadSoftwareDiagnosticsCurrentHeapUsed() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000034) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRSoftwareDiagnostics * cluster = [[MTRSoftwareDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterSoftwareDiagnostics * cluster = [[MTRBaseClusterSoftwareDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeCurrentHeapUsedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"SoftwareDiagnostics.CurrentHeapUsed response %@", [value description]); if (error != nil) { @@ -21799,13 +22370,13 @@ class SubscribeAttributeSoftwareDiagnosticsCurrentHeapUsed : public SubscribeAtt ~SubscribeAttributeSoftwareDiagnosticsCurrentHeapUsed() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000034) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRSoftwareDiagnostics * cluster = [[MTRSoftwareDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterSoftwareDiagnostics * cluster = [[MTRBaseClusterSoftwareDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -21839,14 +22410,14 @@ class ReadSoftwareDiagnosticsCurrentHeapHighWatermark : public ReadAttribute { ~ReadSoftwareDiagnosticsCurrentHeapHighWatermark() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000034) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRSoftwareDiagnostics * cluster = [[MTRSoftwareDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterSoftwareDiagnostics * cluster = [[MTRBaseClusterSoftwareDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeCurrentHeapHighWatermarkWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"SoftwareDiagnostics.CurrentHeapHighWatermark response %@", [value description]); @@ -21868,13 +22439,13 @@ class SubscribeAttributeSoftwareDiagnosticsCurrentHeapHighWatermark : public Sub ~SubscribeAttributeSoftwareDiagnosticsCurrentHeapHighWatermark() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000034) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRSoftwareDiagnostics * cluster = [[MTRSoftwareDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterSoftwareDiagnostics * cluster = [[MTRBaseClusterSoftwareDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -21908,14 +22479,14 @@ class ReadSoftwareDiagnosticsGeneratedCommandList : public ReadAttribute { ~ReadSoftwareDiagnosticsGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000034) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRSoftwareDiagnostics * cluster = [[MTRSoftwareDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterSoftwareDiagnostics * cluster = [[MTRBaseClusterSoftwareDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"SoftwareDiagnostics.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -21936,13 +22507,13 @@ class SubscribeAttributeSoftwareDiagnosticsGeneratedCommandList : public Subscri ~SubscribeAttributeSoftwareDiagnosticsGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000034) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRSoftwareDiagnostics * cluster = [[MTRSoftwareDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterSoftwareDiagnostics * cluster = [[MTRBaseClusterSoftwareDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -21976,14 +22547,14 @@ class ReadSoftwareDiagnosticsAcceptedCommandList : public ReadAttribute { ~ReadSoftwareDiagnosticsAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000034) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRSoftwareDiagnostics * cluster = [[MTRSoftwareDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterSoftwareDiagnostics * cluster = [[MTRBaseClusterSoftwareDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"SoftwareDiagnostics.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -22004,13 +22575,13 @@ class SubscribeAttributeSoftwareDiagnosticsAcceptedCommandList : public Subscrib ~SubscribeAttributeSoftwareDiagnosticsAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000034) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRSoftwareDiagnostics * cluster = [[MTRSoftwareDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterSoftwareDiagnostics * cluster = [[MTRBaseClusterSoftwareDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -22044,14 +22615,14 @@ class ReadSoftwareDiagnosticsAttributeList : public ReadAttribute { ~ReadSoftwareDiagnosticsAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000034) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRSoftwareDiagnostics * cluster = [[MTRSoftwareDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterSoftwareDiagnostics * cluster = [[MTRBaseClusterSoftwareDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"SoftwareDiagnostics.AttributeList response %@", [value description]); if (error != nil) { @@ -22072,13 +22643,13 @@ class SubscribeAttributeSoftwareDiagnosticsAttributeList : public SubscribeAttri ~SubscribeAttributeSoftwareDiagnosticsAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000034) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRSoftwareDiagnostics * cluster = [[MTRSoftwareDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterSoftwareDiagnostics * cluster = [[MTRBaseClusterSoftwareDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -22112,14 +22683,14 @@ class ReadSoftwareDiagnosticsFeatureMap : public ReadAttribute { ~ReadSoftwareDiagnosticsFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000034) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRSoftwareDiagnostics * cluster = [[MTRSoftwareDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterSoftwareDiagnostics * cluster = [[MTRBaseClusterSoftwareDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"SoftwareDiagnostics.FeatureMap response %@", [value description]); if (error != nil) { @@ -22140,13 +22711,13 @@ class SubscribeAttributeSoftwareDiagnosticsFeatureMap : public SubscribeAttribut ~SubscribeAttributeSoftwareDiagnosticsFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000034) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRSoftwareDiagnostics * cluster = [[MTRSoftwareDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterSoftwareDiagnostics * cluster = [[MTRBaseClusterSoftwareDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -22180,14 +22751,14 @@ class ReadSoftwareDiagnosticsClusterRevision : public ReadAttribute { ~ReadSoftwareDiagnosticsClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000034) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRSoftwareDiagnostics * cluster = [[MTRSoftwareDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterSoftwareDiagnostics * cluster = [[MTRBaseClusterSoftwareDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"SoftwareDiagnostics.ClusterRevision response %@", [value description]); if (error != nil) { @@ -22208,13 +22779,13 @@ class SubscribeAttributeSoftwareDiagnosticsClusterRevision : public SubscribeAtt ~SubscribeAttributeSoftwareDiagnosticsClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000034) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRSoftwareDiagnostics * cluster = [[MTRSoftwareDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterSoftwareDiagnostics * cluster = [[MTRBaseClusterSoftwareDiagnostics alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -22327,14 +22898,13 @@ class ThreadNetworkDiagnosticsResetCounts : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; __auto_type * params = [[MTRThreadNetworkDiagnosticsClusterResetCountsParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -22371,14 +22941,13 @@ class ReadThreadNetworkDiagnosticsChannel : public ReadAttribute { ~ReadThreadNetworkDiagnosticsChannel() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeChannelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.Channel response %@", [value description]); if (error != nil) { @@ -22399,13 +22968,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsChannel : public SubscribeAttrib ~SubscribeAttributeThreadNetworkDiagnosticsChannel() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -22439,14 +23007,13 @@ class ReadThreadNetworkDiagnosticsRoutingRole : public ReadAttribute { ~ReadThreadNetworkDiagnosticsRoutingRole() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeRoutingRoleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.RoutingRole response %@", [value description]); if (error != nil) { @@ -22467,13 +23034,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsRoutingRole : public SubscribeAt ~SubscribeAttributeThreadNetworkDiagnosticsRoutingRole() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -22507,14 +23073,13 @@ class ReadThreadNetworkDiagnosticsNetworkName : public ReadAttribute { ~ReadThreadNetworkDiagnosticsNetworkName() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNetworkNameWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.NetworkName response %@", [value description]); if (error != nil) { @@ -22535,13 +23100,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsNetworkName : public SubscribeAt ~SubscribeAttributeThreadNetworkDiagnosticsNetworkName() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -22575,14 +23139,13 @@ class ReadThreadNetworkDiagnosticsPanId : public ReadAttribute { ~ReadThreadNetworkDiagnosticsPanId() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePanIdWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.PanId response %@", [value description]); if (error != nil) { @@ -22603,13 +23166,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsPanId : public SubscribeAttribut ~SubscribeAttributeThreadNetworkDiagnosticsPanId() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -22643,14 +23205,13 @@ class ReadThreadNetworkDiagnosticsExtendedPanId : public ReadAttribute { ~ReadThreadNetworkDiagnosticsExtendedPanId() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeExtendedPanIdWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.ExtendedPanId response %@", [value description]); if (error != nil) { @@ -22671,13 +23232,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsExtendedPanId : public Subscribe ~SubscribeAttributeThreadNetworkDiagnosticsExtendedPanId() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -22711,14 +23271,13 @@ class ReadThreadNetworkDiagnosticsMeshLocalPrefix : public ReadAttribute { ~ReadThreadNetworkDiagnosticsMeshLocalPrefix() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeMeshLocalPrefixWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.MeshLocalPrefix response %@", [value description]); if (error != nil) { @@ -22739,13 +23298,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsMeshLocalPrefix : public Subscri ~SubscribeAttributeThreadNetworkDiagnosticsMeshLocalPrefix() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -22779,14 +23337,13 @@ class ReadThreadNetworkDiagnosticsOverrunCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsOverrunCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeOverrunCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.OverrunCount response %@", [value description]); if (error != nil) { @@ -22807,13 +23364,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsOverrunCount : public SubscribeA ~SubscribeAttributeThreadNetworkDiagnosticsOverrunCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -22847,14 +23403,13 @@ class ReadThreadNetworkDiagnosticsNeighborTableList : public ReadAttribute { ~ReadThreadNetworkDiagnosticsNeighborTableList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeNeighborTableListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.NeighborTableList response %@", [value description]); if (error != nil) { @@ -22875,13 +23430,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsNeighborTableList : public Subsc ~SubscribeAttributeThreadNetworkDiagnosticsNeighborTableList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -22915,14 +23469,13 @@ class ReadThreadNetworkDiagnosticsRouteTableList : public ReadAttribute { ~ReadThreadNetworkDiagnosticsRouteTableList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeRouteTableListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.RouteTableList response %@", [value description]); if (error != nil) { @@ -22943,13 +23496,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsRouteTableList : public Subscrib ~SubscribeAttributeThreadNetworkDiagnosticsRouteTableList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -22983,14 +23535,13 @@ class ReadThreadNetworkDiagnosticsPartitionId : public ReadAttribute { ~ReadThreadNetworkDiagnosticsPartitionId() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePartitionIdWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.PartitionId response %@", [value description]); if (error != nil) { @@ -23011,13 +23562,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsPartitionId : public SubscribeAt ~SubscribeAttributeThreadNetworkDiagnosticsPartitionId() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -23051,14 +23601,13 @@ class ReadThreadNetworkDiagnosticsWeighting : public ReadAttribute { ~ReadThreadNetworkDiagnosticsWeighting() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeWeightingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.Weighting response %@", [value description]); if (error != nil) { @@ -23079,13 +23628,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsWeighting : public SubscribeAttr ~SubscribeAttributeThreadNetworkDiagnosticsWeighting() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -23119,14 +23667,13 @@ class ReadThreadNetworkDiagnosticsDataVersion : public ReadAttribute { ~ReadThreadNetworkDiagnosticsDataVersion() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeDataVersionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.DataVersion response %@", [value description]); if (error != nil) { @@ -23147,13 +23694,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsDataVersion : public SubscribeAt ~SubscribeAttributeThreadNetworkDiagnosticsDataVersion() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -23187,14 +23733,13 @@ class ReadThreadNetworkDiagnosticsStableDataVersion : public ReadAttribute { ~ReadThreadNetworkDiagnosticsStableDataVersion() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000000C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeStableDataVersionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.StableDataVersion response %@", [value description]); if (error != nil) { @@ -23215,13 +23760,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsStableDataVersion : public Subsc ~SubscribeAttributeThreadNetworkDiagnosticsStableDataVersion() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000000C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -23255,14 +23799,13 @@ class ReadThreadNetworkDiagnosticsLeaderRouterId : public ReadAttribute { ~ReadThreadNetworkDiagnosticsLeaderRouterId() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000000D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeLeaderRouterIdWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.LeaderRouterId response %@", [value description]); if (error != nil) { @@ -23283,13 +23826,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsLeaderRouterId : public Subscrib ~SubscribeAttributeThreadNetworkDiagnosticsLeaderRouterId() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000000D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -23323,14 +23865,13 @@ class ReadThreadNetworkDiagnosticsDetachedRoleCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsDetachedRoleCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000000E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeDetachedRoleCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.DetachedRoleCount response %@", [value description]); if (error != nil) { @@ -23351,13 +23892,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsDetachedRoleCount : public Subsc ~SubscribeAttributeThreadNetworkDiagnosticsDetachedRoleCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000000E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -23391,14 +23931,13 @@ class ReadThreadNetworkDiagnosticsChildRoleCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsChildRoleCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeChildRoleCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.ChildRoleCount response %@", [value description]); if (error != nil) { @@ -23419,13 +23958,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsChildRoleCount : public Subscrib ~SubscribeAttributeThreadNetworkDiagnosticsChildRoleCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -23459,14 +23997,13 @@ class ReadThreadNetworkDiagnosticsRouterRoleCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsRouterRoleCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeRouterRoleCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.RouterRoleCount response %@", [value description]); if (error != nil) { @@ -23487,13 +24024,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsRouterRoleCount : public Subscri ~SubscribeAttributeThreadNetworkDiagnosticsRouterRoleCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -23527,14 +24063,13 @@ class ReadThreadNetworkDiagnosticsLeaderRoleCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsLeaderRoleCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeLeaderRoleCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.LeaderRoleCount response %@", [value description]); if (error != nil) { @@ -23555,13 +24090,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsLeaderRoleCount : public Subscri ~SubscribeAttributeThreadNetworkDiagnosticsLeaderRoleCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -23595,14 +24129,13 @@ class ReadThreadNetworkDiagnosticsAttachAttemptCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsAttachAttemptCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttachAttemptCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.AttachAttemptCount response %@", [value description]); if (error != nil) { @@ -23623,13 +24156,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsAttachAttemptCount : public Subs ~SubscribeAttributeThreadNetworkDiagnosticsAttachAttemptCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -23663,14 +24195,13 @@ class ReadThreadNetworkDiagnosticsPartitionIdChangeCount : public ReadAttribute ~ReadThreadNetworkDiagnosticsPartitionIdChangeCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePartitionIdChangeCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.PartitionIdChangeCount response %@", [value description]); if (error != nil) { @@ -23691,13 +24222,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsPartitionIdChangeCount : public ~SubscribeAttributeThreadNetworkDiagnosticsPartitionIdChangeCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -23731,14 +24261,13 @@ class ReadThreadNetworkDiagnosticsBetterPartitionAttachAttemptCount : public Rea ~ReadThreadNetworkDiagnosticsBetterPartitionAttachAttemptCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeBetterPartitionAttachAttemptCountWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.BetterPartitionAttachAttemptCount response %@", [value description]); @@ -23760,13 +24289,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsBetterPartitionAttachAttemptCoun ~SubscribeAttributeThreadNetworkDiagnosticsBetterPartitionAttachAttemptCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -23800,14 +24328,13 @@ class ReadThreadNetworkDiagnosticsParentChangeCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsParentChangeCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeParentChangeCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.ParentChangeCount response %@", [value description]); if (error != nil) { @@ -23828,13 +24355,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsParentChangeCount : public Subsc ~SubscribeAttributeThreadNetworkDiagnosticsParentChangeCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -23868,14 +24394,13 @@ class ReadThreadNetworkDiagnosticsTxTotalCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsTxTotalCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000016) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeTxTotalCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.TxTotalCount response %@", [value description]); if (error != nil) { @@ -23896,13 +24421,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsTxTotalCount : public SubscribeA ~SubscribeAttributeThreadNetworkDiagnosticsTxTotalCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000016) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -23936,14 +24460,13 @@ class ReadThreadNetworkDiagnosticsTxUnicastCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsTxUnicastCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeTxUnicastCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.TxUnicastCount response %@", [value description]); if (error != nil) { @@ -23964,13 +24487,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsTxUnicastCount : public Subscrib ~SubscribeAttributeThreadNetworkDiagnosticsTxUnicastCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -24004,14 +24526,13 @@ class ReadThreadNetworkDiagnosticsTxBroadcastCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsTxBroadcastCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000018) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeTxBroadcastCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.TxBroadcastCount response %@", [value description]); if (error != nil) { @@ -24032,13 +24553,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsTxBroadcastCount : public Subscr ~SubscribeAttributeThreadNetworkDiagnosticsTxBroadcastCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000018) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -24072,14 +24592,13 @@ class ReadThreadNetworkDiagnosticsTxAckRequestedCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsTxAckRequestedCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000019) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeTxAckRequestedCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.TxAckRequestedCount response %@", [value description]); if (error != nil) { @@ -24100,13 +24619,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsTxAckRequestedCount : public Sub ~SubscribeAttributeThreadNetworkDiagnosticsTxAckRequestedCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000019) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -24140,14 +24658,13 @@ class ReadThreadNetworkDiagnosticsTxAckedCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsTxAckedCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000001A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeTxAckedCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.TxAckedCount response %@", [value description]); if (error != nil) { @@ -24168,13 +24685,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsTxAckedCount : public SubscribeA ~SubscribeAttributeThreadNetworkDiagnosticsTxAckedCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000001A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -24208,14 +24724,13 @@ class ReadThreadNetworkDiagnosticsTxNoAckRequestedCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsTxNoAckRequestedCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000001B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeTxNoAckRequestedCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.TxNoAckRequestedCount response %@", [value description]); if (error != nil) { @@ -24236,13 +24751,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsTxNoAckRequestedCount : public S ~SubscribeAttributeThreadNetworkDiagnosticsTxNoAckRequestedCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000001B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -24276,14 +24790,13 @@ class ReadThreadNetworkDiagnosticsTxDataCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsTxDataCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000001C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeTxDataCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.TxDataCount response %@", [value description]); if (error != nil) { @@ -24304,13 +24817,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsTxDataCount : public SubscribeAt ~SubscribeAttributeThreadNetworkDiagnosticsTxDataCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000001C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -24344,14 +24856,13 @@ class ReadThreadNetworkDiagnosticsTxDataPollCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsTxDataPollCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000001D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeTxDataPollCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.TxDataPollCount response %@", [value description]); if (error != nil) { @@ -24372,13 +24883,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsTxDataPollCount : public Subscri ~SubscribeAttributeThreadNetworkDiagnosticsTxDataPollCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000001D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -24412,14 +24922,13 @@ class ReadThreadNetworkDiagnosticsTxBeaconCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsTxBeaconCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000001E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeTxBeaconCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.TxBeaconCount response %@", [value description]); if (error != nil) { @@ -24440,13 +24949,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsTxBeaconCount : public Subscribe ~SubscribeAttributeThreadNetworkDiagnosticsTxBeaconCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000001E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -24480,14 +24988,13 @@ class ReadThreadNetworkDiagnosticsTxBeaconRequestCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsTxBeaconRequestCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000001F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeTxBeaconRequestCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.TxBeaconRequestCount response %@", [value description]); if (error != nil) { @@ -24508,13 +25015,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsTxBeaconRequestCount : public Su ~SubscribeAttributeThreadNetworkDiagnosticsTxBeaconRequestCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000001F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -24548,14 +25054,13 @@ class ReadThreadNetworkDiagnosticsTxOtherCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsTxOtherCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000020) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeTxOtherCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.TxOtherCount response %@", [value description]); if (error != nil) { @@ -24576,13 +25081,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsTxOtherCount : public SubscribeA ~SubscribeAttributeThreadNetworkDiagnosticsTxOtherCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000020) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -24616,14 +25120,13 @@ class ReadThreadNetworkDiagnosticsTxRetryCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsTxRetryCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000021) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeTxRetryCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.TxRetryCount response %@", [value description]); if (error != nil) { @@ -24644,13 +25147,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsTxRetryCount : public SubscribeA ~SubscribeAttributeThreadNetworkDiagnosticsTxRetryCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000021) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -24684,14 +25186,13 @@ class ReadThreadNetworkDiagnosticsTxDirectMaxRetryExpiryCount : public ReadAttri ~ReadThreadNetworkDiagnosticsTxDirectMaxRetryExpiryCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000022) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeTxDirectMaxRetryExpiryCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.TxDirectMaxRetryExpiryCount response %@", [value description]); @@ -24713,13 +25214,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsTxDirectMaxRetryExpiryCount : pu ~SubscribeAttributeThreadNetworkDiagnosticsTxDirectMaxRetryExpiryCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000022) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -24753,14 +25253,13 @@ class ReadThreadNetworkDiagnosticsTxIndirectMaxRetryExpiryCount : public ReadAtt ~ReadThreadNetworkDiagnosticsTxIndirectMaxRetryExpiryCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000023) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeTxIndirectMaxRetryExpiryCountWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.TxIndirectMaxRetryExpiryCount response %@", [value description]); @@ -24782,13 +25281,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsTxIndirectMaxRetryExpiryCount : ~SubscribeAttributeThreadNetworkDiagnosticsTxIndirectMaxRetryExpiryCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000023) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -24822,14 +25320,13 @@ class ReadThreadNetworkDiagnosticsTxErrCcaCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsTxErrCcaCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000024) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeTxErrCcaCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.TxErrCcaCount response %@", [value description]); if (error != nil) { @@ -24850,13 +25347,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsTxErrCcaCount : public Subscribe ~SubscribeAttributeThreadNetworkDiagnosticsTxErrCcaCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000024) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -24890,14 +25386,13 @@ class ReadThreadNetworkDiagnosticsTxErrAbortCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsTxErrAbortCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000025) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeTxErrAbortCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.TxErrAbortCount response %@", [value description]); if (error != nil) { @@ -24918,13 +25413,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsTxErrAbortCount : public Subscri ~SubscribeAttributeThreadNetworkDiagnosticsTxErrAbortCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000025) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -24958,14 +25452,13 @@ class ReadThreadNetworkDiagnosticsTxErrBusyChannelCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsTxErrBusyChannelCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000026) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeTxErrBusyChannelCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.TxErrBusyChannelCount response %@", [value description]); if (error != nil) { @@ -24986,13 +25479,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsTxErrBusyChannelCount : public S ~SubscribeAttributeThreadNetworkDiagnosticsTxErrBusyChannelCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000026) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -25026,14 +25518,13 @@ class ReadThreadNetworkDiagnosticsRxTotalCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsRxTotalCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000027) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeRxTotalCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.RxTotalCount response %@", [value description]); if (error != nil) { @@ -25054,13 +25545,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsRxTotalCount : public SubscribeA ~SubscribeAttributeThreadNetworkDiagnosticsRxTotalCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000027) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -25094,14 +25584,13 @@ class ReadThreadNetworkDiagnosticsRxUnicastCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsRxUnicastCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000028) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeRxUnicastCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.RxUnicastCount response %@", [value description]); if (error != nil) { @@ -25122,13 +25611,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsRxUnicastCount : public Subscrib ~SubscribeAttributeThreadNetworkDiagnosticsRxUnicastCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000028) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -25162,14 +25650,13 @@ class ReadThreadNetworkDiagnosticsRxBroadcastCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsRxBroadcastCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000029) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeRxBroadcastCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.RxBroadcastCount response %@", [value description]); if (error != nil) { @@ -25190,13 +25677,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsRxBroadcastCount : public Subscr ~SubscribeAttributeThreadNetworkDiagnosticsRxBroadcastCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000029) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -25230,14 +25716,13 @@ class ReadThreadNetworkDiagnosticsRxDataCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsRxDataCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000002A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeRxDataCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.RxDataCount response %@", [value description]); if (error != nil) { @@ -25258,13 +25743,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsRxDataCount : public SubscribeAt ~SubscribeAttributeThreadNetworkDiagnosticsRxDataCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000002A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -25298,14 +25782,13 @@ class ReadThreadNetworkDiagnosticsRxDataPollCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsRxDataPollCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000002B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeRxDataPollCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.RxDataPollCount response %@", [value description]); if (error != nil) { @@ -25326,13 +25809,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsRxDataPollCount : public Subscri ~SubscribeAttributeThreadNetworkDiagnosticsRxDataPollCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000002B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -25366,14 +25848,13 @@ class ReadThreadNetworkDiagnosticsRxBeaconCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsRxBeaconCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000002C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeRxBeaconCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.RxBeaconCount response %@", [value description]); if (error != nil) { @@ -25394,13 +25875,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsRxBeaconCount : public Subscribe ~SubscribeAttributeThreadNetworkDiagnosticsRxBeaconCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000002C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -25434,14 +25914,13 @@ class ReadThreadNetworkDiagnosticsRxBeaconRequestCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsRxBeaconRequestCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000002D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeRxBeaconRequestCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.RxBeaconRequestCount response %@", [value description]); if (error != nil) { @@ -25462,13 +25941,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsRxBeaconRequestCount : public Su ~SubscribeAttributeThreadNetworkDiagnosticsRxBeaconRequestCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000002D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -25502,14 +25980,13 @@ class ReadThreadNetworkDiagnosticsRxOtherCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsRxOtherCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000002E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeRxOtherCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.RxOtherCount response %@", [value description]); if (error != nil) { @@ -25530,13 +26007,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsRxOtherCount : public SubscribeA ~SubscribeAttributeThreadNetworkDiagnosticsRxOtherCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000002E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -25570,14 +26046,13 @@ class ReadThreadNetworkDiagnosticsRxAddressFilteredCount : public ReadAttribute ~ReadThreadNetworkDiagnosticsRxAddressFilteredCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000002F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeRxAddressFilteredCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.RxAddressFilteredCount response %@", [value description]); if (error != nil) { @@ -25598,13 +26073,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsRxAddressFilteredCount : public ~SubscribeAttributeThreadNetworkDiagnosticsRxAddressFilteredCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000002F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -25638,14 +26112,13 @@ class ReadThreadNetworkDiagnosticsRxDestAddrFilteredCount : public ReadAttribute ~ReadThreadNetworkDiagnosticsRxDestAddrFilteredCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000030) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeRxDestAddrFilteredCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.RxDestAddrFilteredCount response %@", [value description]); @@ -25667,13 +26140,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsRxDestAddrFilteredCount : public ~SubscribeAttributeThreadNetworkDiagnosticsRxDestAddrFilteredCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000030) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -25707,14 +26179,13 @@ class ReadThreadNetworkDiagnosticsRxDuplicatedCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsRxDuplicatedCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000031) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeRxDuplicatedCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.RxDuplicatedCount response %@", [value description]); if (error != nil) { @@ -25735,13 +26206,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsRxDuplicatedCount : public Subsc ~SubscribeAttributeThreadNetworkDiagnosticsRxDuplicatedCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000031) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -25775,14 +26245,13 @@ class ReadThreadNetworkDiagnosticsRxErrNoFrameCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsRxErrNoFrameCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000032) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeRxErrNoFrameCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.RxErrNoFrameCount response %@", [value description]); if (error != nil) { @@ -25803,13 +26272,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsRxErrNoFrameCount : public Subsc ~SubscribeAttributeThreadNetworkDiagnosticsRxErrNoFrameCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000032) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -25843,14 +26311,13 @@ class ReadThreadNetworkDiagnosticsRxErrUnknownNeighborCount : public ReadAttribu ~ReadThreadNetworkDiagnosticsRxErrUnknownNeighborCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000033) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeRxErrUnknownNeighborCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.RxErrUnknownNeighborCount response %@", [value description]); @@ -25872,13 +26339,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsRxErrUnknownNeighborCount : publ ~SubscribeAttributeThreadNetworkDiagnosticsRxErrUnknownNeighborCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000033) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -25912,14 +26378,13 @@ class ReadThreadNetworkDiagnosticsRxErrInvalidSrcAddrCount : public ReadAttribut ~ReadThreadNetworkDiagnosticsRxErrInvalidSrcAddrCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000034) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeRxErrInvalidSrcAddrCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.RxErrInvalidSrcAddrCount response %@", [value description]); @@ -25941,13 +26406,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsRxErrInvalidSrcAddrCount : publi ~SubscribeAttributeThreadNetworkDiagnosticsRxErrInvalidSrcAddrCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000034) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -25981,14 +26445,13 @@ class ReadThreadNetworkDiagnosticsRxErrSecCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsRxErrSecCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000035) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeRxErrSecCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.RxErrSecCount response %@", [value description]); if (error != nil) { @@ -26009,13 +26472,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsRxErrSecCount : public Subscribe ~SubscribeAttributeThreadNetworkDiagnosticsRxErrSecCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000035) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -26049,14 +26511,13 @@ class ReadThreadNetworkDiagnosticsRxErrFcsCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsRxErrFcsCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000036) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeRxErrFcsCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.RxErrFcsCount response %@", [value description]); if (error != nil) { @@ -26077,13 +26538,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsRxErrFcsCount : public Subscribe ~SubscribeAttributeThreadNetworkDiagnosticsRxErrFcsCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000036) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -26117,14 +26577,13 @@ class ReadThreadNetworkDiagnosticsRxErrOtherCount : public ReadAttribute { ~ReadThreadNetworkDiagnosticsRxErrOtherCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000037) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeRxErrOtherCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.RxErrOtherCount response %@", [value description]); if (error != nil) { @@ -26145,13 +26604,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsRxErrOtherCount : public Subscri ~SubscribeAttributeThreadNetworkDiagnosticsRxErrOtherCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000037) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -26185,14 +26643,13 @@ class ReadThreadNetworkDiagnosticsActiveTimestamp : public ReadAttribute { ~ReadThreadNetworkDiagnosticsActiveTimestamp() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000038) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeActiveTimestampWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.ActiveTimestamp response %@", [value description]); if (error != nil) { @@ -26213,13 +26670,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsActiveTimestamp : public Subscri ~SubscribeAttributeThreadNetworkDiagnosticsActiveTimestamp() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000038) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -26253,14 +26709,13 @@ class ReadThreadNetworkDiagnosticsPendingTimestamp : public ReadAttribute { ~ReadThreadNetworkDiagnosticsPendingTimestamp() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x00000039) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePendingTimestampWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.PendingTimestamp response %@", [value description]); if (error != nil) { @@ -26281,13 +26736,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsPendingTimestamp : public Subscr ~SubscribeAttributeThreadNetworkDiagnosticsPendingTimestamp() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x00000039) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -26321,14 +26775,13 @@ class ReadThreadNetworkDiagnosticsDelay : public ReadAttribute { ~ReadThreadNetworkDiagnosticsDelay() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000003A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeDelayWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.Delay response %@", [value description]); if (error != nil) { @@ -26349,13 +26802,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsDelay : public SubscribeAttribut ~SubscribeAttributeThreadNetworkDiagnosticsDelay() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000003A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -26389,14 +26841,13 @@ class ReadThreadNetworkDiagnosticsSecurityPolicy : public ReadAttribute { ~ReadThreadNetworkDiagnosticsSecurityPolicy() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000003B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeSecurityPolicyWithCompletionHandler:^( MTRThreadNetworkDiagnosticsClusterSecurityPolicy * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.SecurityPolicy response %@", [value description]); @@ -26418,13 +26869,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsSecurityPolicy : public Subscrib ~SubscribeAttributeThreadNetworkDiagnosticsSecurityPolicy() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000003B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -26458,14 +26908,13 @@ class ReadThreadNetworkDiagnosticsChannelMask : public ReadAttribute { ~ReadThreadNetworkDiagnosticsChannelMask() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000003C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeChannelMaskWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.ChannelMask response %@", [value description]); if (error != nil) { @@ -26486,13 +26935,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsChannelMask : public SubscribeAt ~SubscribeAttributeThreadNetworkDiagnosticsChannelMask() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000003C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -26526,14 +26974,13 @@ class ReadThreadNetworkDiagnosticsOperationalDatasetComponents : public ReadAttr ~ReadThreadNetworkDiagnosticsOperationalDatasetComponents() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000003D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeOperationalDatasetComponentsWithCompletionHandler:^( MTRThreadNetworkDiagnosticsClusterOperationalDatasetComponents * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.OperationalDatasetComponents response %@", [value description]); @@ -26555,13 +27002,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsOperationalDatasetComponents : p ~SubscribeAttributeThreadNetworkDiagnosticsOperationalDatasetComponents() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000003D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -26596,14 +27042,13 @@ class ReadThreadNetworkDiagnosticsActiveNetworkFaultsList : public ReadAttribute ~ReadThreadNetworkDiagnosticsActiveNetworkFaultsList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000003E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeActiveNetworkFaultsListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.ActiveNetworkFaultsList response %@", [value description]); if (error != nil) { @@ -26624,13 +27069,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsActiveNetworkFaultsList : public ~SubscribeAttributeThreadNetworkDiagnosticsActiveNetworkFaultsList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000003E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -26664,14 +27108,13 @@ class ReadThreadNetworkDiagnosticsGeneratedCommandList : public ReadAttribute { ~ReadThreadNetworkDiagnosticsGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -26692,13 +27135,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsGeneratedCommandList : public Su ~SubscribeAttributeThreadNetworkDiagnosticsGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -26732,14 +27174,13 @@ class ReadThreadNetworkDiagnosticsAcceptedCommandList : public ReadAttribute { ~ReadThreadNetworkDiagnosticsAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -26760,13 +27201,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsAcceptedCommandList : public Sub ~SubscribeAttributeThreadNetworkDiagnosticsAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -26800,14 +27240,13 @@ class ReadThreadNetworkDiagnosticsAttributeList : public ReadAttribute { ~ReadThreadNetworkDiagnosticsAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.AttributeList response %@", [value description]); if (error != nil) { @@ -26828,13 +27267,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsAttributeList : public Subscribe ~SubscribeAttributeThreadNetworkDiagnosticsAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -26868,14 +27306,13 @@ class ReadThreadNetworkDiagnosticsFeatureMap : public ReadAttribute { ~ReadThreadNetworkDiagnosticsFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.FeatureMap response %@", [value description]); if (error != nil) { @@ -26896,13 +27333,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsFeatureMap : public SubscribeAtt ~SubscribeAttributeThreadNetworkDiagnosticsFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -26936,14 +27372,13 @@ class ReadThreadNetworkDiagnosticsClusterRevision : public ReadAttribute { ~ReadThreadNetworkDiagnosticsClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThreadNetworkDiagnostics.ClusterRevision response %@", [value description]); if (error != nil) { @@ -26964,13 +27399,12 @@ class SubscribeAttributeThreadNetworkDiagnosticsClusterRevision : public Subscri ~SubscribeAttributeThreadNetworkDiagnosticsClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000035) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThreadNetworkDiagnostics * cluster = [[MTRThreadNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterThreadNetworkDiagnostics * cluster = + [[MTRBaseClusterThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -27035,14 +27469,13 @@ class WiFiNetworkDiagnosticsResetCounts : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; __auto_type * params = [[MTRWiFiNetworkDiagnosticsClusterResetCountsParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -27079,14 +27512,13 @@ class ReadWiFiNetworkDiagnosticsBssid : public ReadAttribute { ~ReadWiFiNetworkDiagnosticsBssid() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeBssidWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable error) { NSLog(@"WiFiNetworkDiagnostics.Bssid response %@", [value description]); if (error != nil) { @@ -27107,13 +27539,12 @@ class SubscribeAttributeWiFiNetworkDiagnosticsBssid : public SubscribeAttribute ~SubscribeAttributeWiFiNetworkDiagnosticsBssid() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -27147,14 +27578,13 @@ class ReadWiFiNetworkDiagnosticsSecurityType : public ReadAttribute { ~ReadWiFiNetworkDiagnosticsSecurityType() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeSecurityTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WiFiNetworkDiagnostics.SecurityType response %@", [value description]); if (error != nil) { @@ -27175,13 +27605,12 @@ class SubscribeAttributeWiFiNetworkDiagnosticsSecurityType : public SubscribeAtt ~SubscribeAttributeWiFiNetworkDiagnosticsSecurityType() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -27215,14 +27644,13 @@ class ReadWiFiNetworkDiagnosticsWiFiVersion : public ReadAttribute { ~ReadWiFiNetworkDiagnosticsWiFiVersion() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeWiFiVersionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WiFiNetworkDiagnostics.WiFiVersion response %@", [value description]); if (error != nil) { @@ -27243,13 +27671,12 @@ class SubscribeAttributeWiFiNetworkDiagnosticsWiFiVersion : public SubscribeAttr ~SubscribeAttributeWiFiNetworkDiagnosticsWiFiVersion() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -27283,14 +27710,13 @@ class ReadWiFiNetworkDiagnosticsChannelNumber : public ReadAttribute { ~ReadWiFiNetworkDiagnosticsChannelNumber() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeChannelNumberWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WiFiNetworkDiagnostics.ChannelNumber response %@", [value description]); if (error != nil) { @@ -27311,13 +27737,12 @@ class SubscribeAttributeWiFiNetworkDiagnosticsChannelNumber : public SubscribeAt ~SubscribeAttributeWiFiNetworkDiagnosticsChannelNumber() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -27351,14 +27776,13 @@ class ReadWiFiNetworkDiagnosticsRssi : public ReadAttribute { ~ReadWiFiNetworkDiagnosticsRssi() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeRssiWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WiFiNetworkDiagnostics.Rssi response %@", [value description]); if (error != nil) { @@ -27379,13 +27803,12 @@ class SubscribeAttributeWiFiNetworkDiagnosticsRssi : public SubscribeAttribute { ~SubscribeAttributeWiFiNetworkDiagnosticsRssi() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -27419,14 +27842,13 @@ class ReadWiFiNetworkDiagnosticsBeaconLostCount : public ReadAttribute { ~ReadWiFiNetworkDiagnosticsBeaconLostCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReadAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeBeaconLostCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WiFiNetworkDiagnostics.BeaconLostCount response %@", [value description]); if (error != nil) { @@ -27447,13 +27869,12 @@ class SubscribeAttributeWiFiNetworkDiagnosticsBeaconLostCount : public Subscribe ~SubscribeAttributeWiFiNetworkDiagnosticsBeaconLostCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReportAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -27487,14 +27908,13 @@ class ReadWiFiNetworkDiagnosticsBeaconRxCount : public ReadAttribute { ~ReadWiFiNetworkDiagnosticsBeaconRxCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReadAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeBeaconRxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WiFiNetworkDiagnostics.BeaconRxCount response %@", [value description]); if (error != nil) { @@ -27515,13 +27935,12 @@ class SubscribeAttributeWiFiNetworkDiagnosticsBeaconRxCount : public SubscribeAt ~SubscribeAttributeWiFiNetworkDiagnosticsBeaconRxCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReportAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -27555,14 +27974,13 @@ class ReadWiFiNetworkDiagnosticsPacketMulticastRxCount : public ReadAttribute { ~ReadWiFiNetworkDiagnosticsPacketMulticastRxCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReadAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePacketMulticastRxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WiFiNetworkDiagnostics.PacketMulticastRxCount response %@", [value description]); if (error != nil) { @@ -27583,13 +28001,12 @@ class SubscribeAttributeWiFiNetworkDiagnosticsPacketMulticastRxCount : public Su ~SubscribeAttributeWiFiNetworkDiagnosticsPacketMulticastRxCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReportAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -27623,14 +28040,13 @@ class ReadWiFiNetworkDiagnosticsPacketMulticastTxCount : public ReadAttribute { ~ReadWiFiNetworkDiagnosticsPacketMulticastTxCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReadAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePacketMulticastTxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WiFiNetworkDiagnostics.PacketMulticastTxCount response %@", [value description]); if (error != nil) { @@ -27651,13 +28067,12 @@ class SubscribeAttributeWiFiNetworkDiagnosticsPacketMulticastTxCount : public Su ~SubscribeAttributeWiFiNetworkDiagnosticsPacketMulticastTxCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReportAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -27691,14 +28106,13 @@ class ReadWiFiNetworkDiagnosticsPacketUnicastRxCount : public ReadAttribute { ~ReadWiFiNetworkDiagnosticsPacketUnicastRxCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReadAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePacketUnicastRxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WiFiNetworkDiagnostics.PacketUnicastRxCount response %@", [value description]); if (error != nil) { @@ -27719,13 +28133,12 @@ class SubscribeAttributeWiFiNetworkDiagnosticsPacketUnicastRxCount : public Subs ~SubscribeAttributeWiFiNetworkDiagnosticsPacketUnicastRxCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReportAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -27759,14 +28172,13 @@ class ReadWiFiNetworkDiagnosticsPacketUnicastTxCount : public ReadAttribute { ~ReadWiFiNetworkDiagnosticsPacketUnicastTxCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReadAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePacketUnicastTxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WiFiNetworkDiagnostics.PacketUnicastTxCount response %@", [value description]); if (error != nil) { @@ -27787,13 +28199,12 @@ class SubscribeAttributeWiFiNetworkDiagnosticsPacketUnicastTxCount : public Subs ~SubscribeAttributeWiFiNetworkDiagnosticsPacketUnicastTxCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReportAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -27827,14 +28238,13 @@ class ReadWiFiNetworkDiagnosticsCurrentMaxRate : public ReadAttribute { ~ReadWiFiNetworkDiagnosticsCurrentMaxRate() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReadAttribute (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeCurrentMaxRateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WiFiNetworkDiagnostics.CurrentMaxRate response %@", [value description]); if (error != nil) { @@ -27855,13 +28265,12 @@ class SubscribeAttributeWiFiNetworkDiagnosticsCurrentMaxRate : public SubscribeA ~SubscribeAttributeWiFiNetworkDiagnosticsCurrentMaxRate() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReportAttribute (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -27895,14 +28304,13 @@ class ReadWiFiNetworkDiagnosticsOverrunCount : public ReadAttribute { ~ReadWiFiNetworkDiagnosticsOverrunCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReadAttribute (0x0000000C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeOverrunCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WiFiNetworkDiagnostics.OverrunCount response %@", [value description]); if (error != nil) { @@ -27923,13 +28331,12 @@ class SubscribeAttributeWiFiNetworkDiagnosticsOverrunCount : public SubscribeAtt ~SubscribeAttributeWiFiNetworkDiagnosticsOverrunCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReportAttribute (0x0000000C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -27963,14 +28370,13 @@ class ReadWiFiNetworkDiagnosticsGeneratedCommandList : public ReadAttribute { ~ReadWiFiNetworkDiagnosticsGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"WiFiNetworkDiagnostics.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -27991,13 +28397,12 @@ class SubscribeAttributeWiFiNetworkDiagnosticsGeneratedCommandList : public Subs ~SubscribeAttributeWiFiNetworkDiagnosticsGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -28031,14 +28436,13 @@ class ReadWiFiNetworkDiagnosticsAcceptedCommandList : public ReadAttribute { ~ReadWiFiNetworkDiagnosticsAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"WiFiNetworkDiagnostics.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -28059,13 +28463,12 @@ class SubscribeAttributeWiFiNetworkDiagnosticsAcceptedCommandList : public Subsc ~SubscribeAttributeWiFiNetworkDiagnosticsAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -28099,14 +28502,13 @@ class ReadWiFiNetworkDiagnosticsAttributeList : public ReadAttribute { ~ReadWiFiNetworkDiagnosticsAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"WiFiNetworkDiagnostics.AttributeList response %@", [value description]); if (error != nil) { @@ -28127,13 +28529,12 @@ class SubscribeAttributeWiFiNetworkDiagnosticsAttributeList : public SubscribeAt ~SubscribeAttributeWiFiNetworkDiagnosticsAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -28167,14 +28568,13 @@ class ReadWiFiNetworkDiagnosticsFeatureMap : public ReadAttribute { ~ReadWiFiNetworkDiagnosticsFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WiFiNetworkDiagnostics.FeatureMap response %@", [value description]); if (error != nil) { @@ -28195,13 +28595,12 @@ class SubscribeAttributeWiFiNetworkDiagnosticsFeatureMap : public SubscribeAttri ~SubscribeAttributeWiFiNetworkDiagnosticsFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -28235,14 +28634,13 @@ class ReadWiFiNetworkDiagnosticsClusterRevision : public ReadAttribute { ~ReadWiFiNetworkDiagnosticsClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WiFiNetworkDiagnostics.ClusterRevision response %@", [value description]); if (error != nil) { @@ -28263,13 +28661,12 @@ class SubscribeAttributeWiFiNetworkDiagnosticsClusterRevision : public Subscribe ~SubscribeAttributeWiFiNetworkDiagnosticsClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000036) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWiFiNetworkDiagnostics * cluster = [[MTRWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -28327,14 +28724,13 @@ class EthernetNetworkDiagnosticsResetCounts : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterEthernetNetworkDiagnostics * cluster = + [[MTRBaseClusterEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; __auto_type * params = [[MTREthernetNetworkDiagnosticsClusterResetCountsParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -28371,14 +28767,13 @@ class ReadEthernetNetworkDiagnosticsPHYRate : public ReadAttribute { ~ReadEthernetNetworkDiagnosticsPHYRate() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterEthernetNetworkDiagnostics * cluster = + [[MTRBaseClusterEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePHYRateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"EthernetNetworkDiagnostics.PHYRate response %@", [value description]); if (error != nil) { @@ -28399,13 +28794,12 @@ class SubscribeAttributeEthernetNetworkDiagnosticsPHYRate : public SubscribeAttr ~SubscribeAttributeEthernetNetworkDiagnosticsPHYRate() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterEthernetNetworkDiagnostics * cluster = + [[MTRBaseClusterEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -28439,14 +28833,13 @@ class ReadEthernetNetworkDiagnosticsFullDuplex : public ReadAttribute { ~ReadEthernetNetworkDiagnosticsFullDuplex() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterEthernetNetworkDiagnostics * cluster = + [[MTRBaseClusterEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFullDuplexWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"EthernetNetworkDiagnostics.FullDuplex response %@", [value description]); if (error != nil) { @@ -28467,13 +28860,12 @@ class SubscribeAttributeEthernetNetworkDiagnosticsFullDuplex : public SubscribeA ~SubscribeAttributeEthernetNetworkDiagnosticsFullDuplex() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterEthernetNetworkDiagnostics * cluster = + [[MTRBaseClusterEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -28507,14 +28899,13 @@ class ReadEthernetNetworkDiagnosticsPacketRxCount : public ReadAttribute { ~ReadEthernetNetworkDiagnosticsPacketRxCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterEthernetNetworkDiagnostics * cluster = + [[MTRBaseClusterEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePacketRxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"EthernetNetworkDiagnostics.PacketRxCount response %@", [value description]); if (error != nil) { @@ -28535,13 +28926,12 @@ class SubscribeAttributeEthernetNetworkDiagnosticsPacketRxCount : public Subscri ~SubscribeAttributeEthernetNetworkDiagnosticsPacketRxCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterEthernetNetworkDiagnostics * cluster = + [[MTRBaseClusterEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -28575,14 +28965,13 @@ class ReadEthernetNetworkDiagnosticsPacketTxCount : public ReadAttribute { ~ReadEthernetNetworkDiagnosticsPacketTxCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterEthernetNetworkDiagnostics * cluster = + [[MTRBaseClusterEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePacketTxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"EthernetNetworkDiagnostics.PacketTxCount response %@", [value description]); if (error != nil) { @@ -28603,13 +28992,12 @@ class SubscribeAttributeEthernetNetworkDiagnosticsPacketTxCount : public Subscri ~SubscribeAttributeEthernetNetworkDiagnosticsPacketTxCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterEthernetNetworkDiagnostics * cluster = + [[MTRBaseClusterEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -28643,14 +29031,13 @@ class ReadEthernetNetworkDiagnosticsTxErrCount : public ReadAttribute { ~ReadEthernetNetworkDiagnosticsTxErrCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterEthernetNetworkDiagnostics * cluster = + [[MTRBaseClusterEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeTxErrCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"EthernetNetworkDiagnostics.TxErrCount response %@", [value description]); if (error != nil) { @@ -28671,13 +29058,12 @@ class SubscribeAttributeEthernetNetworkDiagnosticsTxErrCount : public SubscribeA ~SubscribeAttributeEthernetNetworkDiagnosticsTxErrCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterEthernetNetworkDiagnostics * cluster = + [[MTRBaseClusterEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -28711,14 +29097,13 @@ class ReadEthernetNetworkDiagnosticsCollisionCount : public ReadAttribute { ~ReadEthernetNetworkDiagnosticsCollisionCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReadAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterEthernetNetworkDiagnostics * cluster = + [[MTRBaseClusterEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeCollisionCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"EthernetNetworkDiagnostics.CollisionCount response %@", [value description]); if (error != nil) { @@ -28739,13 +29124,12 @@ class SubscribeAttributeEthernetNetworkDiagnosticsCollisionCount : public Subscr ~SubscribeAttributeEthernetNetworkDiagnosticsCollisionCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReportAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterEthernetNetworkDiagnostics * cluster = + [[MTRBaseClusterEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -28779,14 +29163,13 @@ class ReadEthernetNetworkDiagnosticsOverrunCount : public ReadAttribute { ~ReadEthernetNetworkDiagnosticsOverrunCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReadAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterEthernetNetworkDiagnostics * cluster = + [[MTRBaseClusterEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeOverrunCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"EthernetNetworkDiagnostics.OverrunCount response %@", [value description]); if (error != nil) { @@ -28807,13 +29190,12 @@ class SubscribeAttributeEthernetNetworkDiagnosticsOverrunCount : public Subscrib ~SubscribeAttributeEthernetNetworkDiagnosticsOverrunCount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReportAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterEthernetNetworkDiagnostics * cluster = + [[MTRBaseClusterEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -28847,14 +29229,13 @@ class ReadEthernetNetworkDiagnosticsCarrierDetect : public ReadAttribute { ~ReadEthernetNetworkDiagnosticsCarrierDetect() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReadAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterEthernetNetworkDiagnostics * cluster = + [[MTRBaseClusterEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeCarrierDetectWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"EthernetNetworkDiagnostics.CarrierDetect response %@", [value description]); if (error != nil) { @@ -28875,13 +29256,12 @@ class SubscribeAttributeEthernetNetworkDiagnosticsCarrierDetect : public Subscri ~SubscribeAttributeEthernetNetworkDiagnosticsCarrierDetect() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReportAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterEthernetNetworkDiagnostics * cluster = + [[MTRBaseClusterEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -28915,14 +29295,13 @@ class ReadEthernetNetworkDiagnosticsTimeSinceReset : public ReadAttribute { ~ReadEthernetNetworkDiagnosticsTimeSinceReset() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReadAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterEthernetNetworkDiagnostics * cluster = + [[MTRBaseClusterEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeTimeSinceResetWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"EthernetNetworkDiagnostics.TimeSinceReset response %@", [value description]); if (error != nil) { @@ -28943,13 +29322,12 @@ class SubscribeAttributeEthernetNetworkDiagnosticsTimeSinceReset : public Subscr ~SubscribeAttributeEthernetNetworkDiagnosticsTimeSinceReset() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReportAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterEthernetNetworkDiagnostics * cluster = + [[MTRBaseClusterEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -28983,14 +29361,13 @@ class ReadEthernetNetworkDiagnosticsGeneratedCommandList : public ReadAttribute ~ReadEthernetNetworkDiagnosticsGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterEthernetNetworkDiagnostics * cluster = + [[MTRBaseClusterEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"EthernetNetworkDiagnostics.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -29011,13 +29388,12 @@ class SubscribeAttributeEthernetNetworkDiagnosticsGeneratedCommandList : public ~SubscribeAttributeEthernetNetworkDiagnosticsGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterEthernetNetworkDiagnostics * cluster = + [[MTRBaseClusterEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -29051,14 +29427,13 @@ class ReadEthernetNetworkDiagnosticsAcceptedCommandList : public ReadAttribute { ~ReadEthernetNetworkDiagnosticsAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterEthernetNetworkDiagnostics * cluster = + [[MTRBaseClusterEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"EthernetNetworkDiagnostics.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -29079,13 +29454,12 @@ class SubscribeAttributeEthernetNetworkDiagnosticsAcceptedCommandList : public S ~SubscribeAttributeEthernetNetworkDiagnosticsAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterEthernetNetworkDiagnostics * cluster = + [[MTRBaseClusterEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -29119,14 +29493,13 @@ class ReadEthernetNetworkDiagnosticsAttributeList : public ReadAttribute { ~ReadEthernetNetworkDiagnosticsAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterEthernetNetworkDiagnostics * cluster = + [[MTRBaseClusterEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"EthernetNetworkDiagnostics.AttributeList response %@", [value description]); if (error != nil) { @@ -29147,13 +29520,12 @@ class SubscribeAttributeEthernetNetworkDiagnosticsAttributeList : public Subscri ~SubscribeAttributeEthernetNetworkDiagnosticsAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterEthernetNetworkDiagnostics * cluster = + [[MTRBaseClusterEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -29187,14 +29559,13 @@ class ReadEthernetNetworkDiagnosticsFeatureMap : public ReadAttribute { ~ReadEthernetNetworkDiagnosticsFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterEthernetNetworkDiagnostics * cluster = + [[MTRBaseClusterEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"EthernetNetworkDiagnostics.FeatureMap response %@", [value description]); if (error != nil) { @@ -29215,13 +29586,12 @@ class SubscribeAttributeEthernetNetworkDiagnosticsFeatureMap : public SubscribeA ~SubscribeAttributeEthernetNetworkDiagnosticsFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterEthernetNetworkDiagnostics * cluster = + [[MTRBaseClusterEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -29255,14 +29625,13 @@ class ReadEthernetNetworkDiagnosticsClusterRevision : public ReadAttribute { ~ReadEthernetNetworkDiagnosticsClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterEthernetNetworkDiagnostics * cluster = + [[MTRBaseClusterEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"EthernetNetworkDiagnostics.ClusterRevision response %@", [value description]); if (error != nil) { @@ -29283,13 +29652,12 @@ class SubscribeAttributeEthernetNetworkDiagnosticsClusterRevision : public Subsc ~SubscribeAttributeEthernetNetworkDiagnosticsClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000037) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTREthernetNetworkDiagnostics * cluster = [[MTREthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterEthernetNetworkDiagnostics * cluster = + [[MTRBaseClusterEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -29357,14 +29725,14 @@ class ReadBridgedDeviceBasicVendorName : public ReadAttribute { ~ReadBridgedDeviceBasicVendorName() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterBridgedDeviceBasic * cluster = [[MTRBaseClusterBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeVendorNameWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedDeviceBasic.VendorName response %@", [value description]); if (error != nil) { @@ -29385,13 +29753,13 @@ class SubscribeAttributeBridgedDeviceBasicVendorName : public SubscribeAttribute ~SubscribeAttributeBridgedDeviceBasicVendorName() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterBridgedDeviceBasic * cluster = [[MTRBaseClusterBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -29425,14 +29793,14 @@ class ReadBridgedDeviceBasicVendorID : public ReadAttribute { ~ReadBridgedDeviceBasicVendorID() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterBridgedDeviceBasic * cluster = [[MTRBaseClusterBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeVendorIDWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedDeviceBasic.VendorID response %@", [value description]); if (error != nil) { @@ -29453,13 +29821,13 @@ class SubscribeAttributeBridgedDeviceBasicVendorID : public SubscribeAttribute { ~SubscribeAttributeBridgedDeviceBasicVendorID() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterBridgedDeviceBasic * cluster = [[MTRBaseClusterBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -29493,14 +29861,14 @@ class ReadBridgedDeviceBasicProductName : public ReadAttribute { ~ReadBridgedDeviceBasicProductName() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterBridgedDeviceBasic * cluster = [[MTRBaseClusterBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeProductNameWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedDeviceBasic.ProductName response %@", [value description]); if (error != nil) { @@ -29521,13 +29889,13 @@ class SubscribeAttributeBridgedDeviceBasicProductName : public SubscribeAttribut ~SubscribeAttributeBridgedDeviceBasicProductName() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterBridgedDeviceBasic * cluster = [[MTRBaseClusterBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -29561,14 +29929,14 @@ class ReadBridgedDeviceBasicNodeLabel : public ReadAttribute { ~ReadBridgedDeviceBasicNodeLabel() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReadAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterBridgedDeviceBasic * cluster = [[MTRBaseClusterBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedDeviceBasic.NodeLabel response %@", [value description]); if (error != nil) { @@ -29592,15 +29960,15 @@ class WriteBridgedDeviceBasicNodeLabel : public WriteAttribute { ~WriteBridgedDeviceBasicNodeLabel() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) WriteAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterBridgedDeviceBasic * cluster = [[MTRBaseClusterBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSString * _Nonnull value = [[NSString alloc] initWithBytes:mValue.data() @@ -29631,13 +29999,13 @@ class SubscribeAttributeBridgedDeviceBasicNodeLabel : public SubscribeAttribute ~SubscribeAttributeBridgedDeviceBasicNodeLabel() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReportAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterBridgedDeviceBasic * cluster = [[MTRBaseClusterBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -29671,14 +30039,14 @@ class ReadBridgedDeviceBasicHardwareVersion : public ReadAttribute { ~ReadBridgedDeviceBasicHardwareVersion() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReadAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterBridgedDeviceBasic * cluster = [[MTRBaseClusterBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeHardwareVersionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedDeviceBasic.HardwareVersion response %@", [value description]); if (error != nil) { @@ -29699,13 +30067,13 @@ class SubscribeAttributeBridgedDeviceBasicHardwareVersion : public SubscribeAttr ~SubscribeAttributeBridgedDeviceBasicHardwareVersion() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReportAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterBridgedDeviceBasic * cluster = [[MTRBaseClusterBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -29739,14 +30107,14 @@ class ReadBridgedDeviceBasicHardwareVersionString : public ReadAttribute { ~ReadBridgedDeviceBasicHardwareVersionString() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReadAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterBridgedDeviceBasic * cluster = [[MTRBaseClusterBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeHardwareVersionStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedDeviceBasic.HardwareVersionString response %@", [value description]); if (error != nil) { @@ -29767,13 +30135,13 @@ class SubscribeAttributeBridgedDeviceBasicHardwareVersionString : public Subscri ~SubscribeAttributeBridgedDeviceBasicHardwareVersionString() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReportAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterBridgedDeviceBasic * cluster = [[MTRBaseClusterBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -29807,14 +30175,14 @@ class ReadBridgedDeviceBasicSoftwareVersion : public ReadAttribute { ~ReadBridgedDeviceBasicSoftwareVersion() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReadAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterBridgedDeviceBasic * cluster = [[MTRBaseClusterBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeSoftwareVersionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedDeviceBasic.SoftwareVersion response %@", [value description]); if (error != nil) { @@ -29835,13 +30203,13 @@ class SubscribeAttributeBridgedDeviceBasicSoftwareVersion : public SubscribeAttr ~SubscribeAttributeBridgedDeviceBasicSoftwareVersion() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReportAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterBridgedDeviceBasic * cluster = [[MTRBaseClusterBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -29875,14 +30243,14 @@ class ReadBridgedDeviceBasicSoftwareVersionString : public ReadAttribute { ~ReadBridgedDeviceBasicSoftwareVersionString() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReadAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterBridgedDeviceBasic * cluster = [[MTRBaseClusterBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeSoftwareVersionStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedDeviceBasic.SoftwareVersionString response %@", [value description]); if (error != nil) { @@ -29903,13 +30271,13 @@ class SubscribeAttributeBridgedDeviceBasicSoftwareVersionString : public Subscri ~SubscribeAttributeBridgedDeviceBasicSoftwareVersionString() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReportAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterBridgedDeviceBasic * cluster = [[MTRBaseClusterBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -29943,14 +30311,14 @@ class ReadBridgedDeviceBasicManufacturingDate : public ReadAttribute { ~ReadBridgedDeviceBasicManufacturingDate() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReadAttribute (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterBridgedDeviceBasic * cluster = [[MTRBaseClusterBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeManufacturingDateWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedDeviceBasic.ManufacturingDate response %@", [value description]); if (error != nil) { @@ -29971,13 +30339,13 @@ class SubscribeAttributeBridgedDeviceBasicManufacturingDate : public SubscribeAt ~SubscribeAttributeBridgedDeviceBasicManufacturingDate() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReportAttribute (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterBridgedDeviceBasic * cluster = [[MTRBaseClusterBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -30011,14 +30379,14 @@ class ReadBridgedDeviceBasicPartNumber : public ReadAttribute { ~ReadBridgedDeviceBasicPartNumber() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReadAttribute (0x0000000C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterBridgedDeviceBasic * cluster = [[MTRBaseClusterBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePartNumberWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedDeviceBasic.PartNumber response %@", [value description]); if (error != nil) { @@ -30039,13 +30407,13 @@ class SubscribeAttributeBridgedDeviceBasicPartNumber : public SubscribeAttribute ~SubscribeAttributeBridgedDeviceBasicPartNumber() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReportAttribute (0x0000000C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterBridgedDeviceBasic * cluster = [[MTRBaseClusterBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -30079,14 +30447,14 @@ class ReadBridgedDeviceBasicProductURL : public ReadAttribute { ~ReadBridgedDeviceBasicProductURL() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReadAttribute (0x0000000D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterBridgedDeviceBasic * cluster = [[MTRBaseClusterBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeProductURLWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedDeviceBasic.ProductURL response %@", [value description]); if (error != nil) { @@ -30107,13 +30475,13 @@ class SubscribeAttributeBridgedDeviceBasicProductURL : public SubscribeAttribute ~SubscribeAttributeBridgedDeviceBasicProductURL() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReportAttribute (0x0000000D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterBridgedDeviceBasic * cluster = [[MTRBaseClusterBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -30147,14 +30515,14 @@ class ReadBridgedDeviceBasicProductLabel : public ReadAttribute { ~ReadBridgedDeviceBasicProductLabel() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReadAttribute (0x0000000E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterBridgedDeviceBasic * cluster = [[MTRBaseClusterBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeProductLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedDeviceBasic.ProductLabel response %@", [value description]); if (error != nil) { @@ -30175,13 +30543,13 @@ class SubscribeAttributeBridgedDeviceBasicProductLabel : public SubscribeAttribu ~SubscribeAttributeBridgedDeviceBasicProductLabel() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReportAttribute (0x0000000E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterBridgedDeviceBasic * cluster = [[MTRBaseClusterBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -30215,14 +30583,14 @@ class ReadBridgedDeviceBasicSerialNumber : public ReadAttribute { ~ReadBridgedDeviceBasicSerialNumber() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReadAttribute (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterBridgedDeviceBasic * cluster = [[MTRBaseClusterBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeSerialNumberWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedDeviceBasic.SerialNumber response %@", [value description]); if (error != nil) { @@ -30243,13 +30611,13 @@ class SubscribeAttributeBridgedDeviceBasicSerialNumber : public SubscribeAttribu ~SubscribeAttributeBridgedDeviceBasicSerialNumber() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReportAttribute (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterBridgedDeviceBasic * cluster = [[MTRBaseClusterBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -30283,14 +30651,14 @@ class ReadBridgedDeviceBasicReachable : public ReadAttribute { ~ReadBridgedDeviceBasicReachable() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReadAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterBridgedDeviceBasic * cluster = [[MTRBaseClusterBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeReachableWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedDeviceBasic.Reachable response %@", [value description]); if (error != nil) { @@ -30311,13 +30679,13 @@ class SubscribeAttributeBridgedDeviceBasicReachable : public SubscribeAttribute ~SubscribeAttributeBridgedDeviceBasicReachable() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReportAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterBridgedDeviceBasic * cluster = [[MTRBaseClusterBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -30351,14 +30719,14 @@ class ReadBridgedDeviceBasicUniqueID : public ReadAttribute { ~ReadBridgedDeviceBasicUniqueID() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReadAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterBridgedDeviceBasic * cluster = [[MTRBaseClusterBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeUniqueIDWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedDeviceBasic.UniqueID response %@", [value description]); if (error != nil) { @@ -30379,13 +30747,13 @@ class SubscribeAttributeBridgedDeviceBasicUniqueID : public SubscribeAttribute { ~SubscribeAttributeBridgedDeviceBasicUniqueID() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReportAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterBridgedDeviceBasic * cluster = [[MTRBaseClusterBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -30419,14 +30787,14 @@ class ReadBridgedDeviceBasicGeneratedCommandList : public ReadAttribute { ~ReadBridgedDeviceBasicGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterBridgedDeviceBasic * cluster = [[MTRBaseClusterBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedDeviceBasic.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -30447,13 +30815,13 @@ class SubscribeAttributeBridgedDeviceBasicGeneratedCommandList : public Subscrib ~SubscribeAttributeBridgedDeviceBasicGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterBridgedDeviceBasic * cluster = [[MTRBaseClusterBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -30487,14 +30855,14 @@ class ReadBridgedDeviceBasicAcceptedCommandList : public ReadAttribute { ~ReadBridgedDeviceBasicAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterBridgedDeviceBasic * cluster = [[MTRBaseClusterBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedDeviceBasic.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -30515,13 +30883,13 @@ class SubscribeAttributeBridgedDeviceBasicAcceptedCommandList : public Subscribe ~SubscribeAttributeBridgedDeviceBasicAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterBridgedDeviceBasic * cluster = [[MTRBaseClusterBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -30555,14 +30923,14 @@ class ReadBridgedDeviceBasicAttributeList : public ReadAttribute { ~ReadBridgedDeviceBasicAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterBridgedDeviceBasic * cluster = [[MTRBaseClusterBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedDeviceBasic.AttributeList response %@", [value description]); if (error != nil) { @@ -30583,13 +30951,13 @@ class SubscribeAttributeBridgedDeviceBasicAttributeList : public SubscribeAttrib ~SubscribeAttributeBridgedDeviceBasicAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterBridgedDeviceBasic * cluster = [[MTRBaseClusterBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -30623,14 +30991,14 @@ class ReadBridgedDeviceBasicFeatureMap : public ReadAttribute { ~ReadBridgedDeviceBasicFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterBridgedDeviceBasic * cluster = [[MTRBaseClusterBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedDeviceBasic.FeatureMap response %@", [value description]); if (error != nil) { @@ -30651,13 +31019,13 @@ class SubscribeAttributeBridgedDeviceBasicFeatureMap : public SubscribeAttribute ~SubscribeAttributeBridgedDeviceBasicFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterBridgedDeviceBasic * cluster = [[MTRBaseClusterBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -30691,14 +31059,14 @@ class ReadBridgedDeviceBasicClusterRevision : public ReadAttribute { ~ReadBridgedDeviceBasicClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterBridgedDeviceBasic * cluster = [[MTRBaseClusterBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BridgedDeviceBasic.ClusterRevision response %@", [value description]); if (error != nil) { @@ -30719,13 +31087,13 @@ class SubscribeAttributeBridgedDeviceBasicClusterRevision : public SubscribeAttr ~SubscribeAttributeBridgedDeviceBasicClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000039) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBridgedDeviceBasic * cluster = [[MTRBridgedDeviceBasic alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterBridgedDeviceBasic * cluster = [[MTRBaseClusterBridgedDeviceBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -30784,12 +31152,14 @@ class ReadSwitchNumberOfPositions : public ReadAttribute { ~ReadSwitchNumberOfPositions() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003B) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRSwitch * cluster = [[MTRSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterSwitch * cluster = [[MTRBaseClusterSwitch alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNumberOfPositionsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Switch.NumberOfPositions response %@", [value description]); if (error != nil) { @@ -30810,11 +31180,13 @@ class SubscribeAttributeSwitchNumberOfPositions : public SubscribeAttribute { ~SubscribeAttributeSwitchNumberOfPositions() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003B) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRSwitch * cluster = [[MTRSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterSwitch * cluster = [[MTRBaseClusterSwitch alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -30848,12 +31220,14 @@ class ReadSwitchCurrentPosition : public ReadAttribute { ~ReadSwitchCurrentPosition() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003B) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRSwitch * cluster = [[MTRSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterSwitch * cluster = [[MTRBaseClusterSwitch alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeCurrentPositionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Switch.CurrentPosition response %@", [value description]); if (error != nil) { @@ -30874,11 +31248,13 @@ class SubscribeAttributeSwitchCurrentPosition : public SubscribeAttribute { ~SubscribeAttributeSwitchCurrentPosition() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003B) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRSwitch * cluster = [[MTRSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterSwitch * cluster = [[MTRBaseClusterSwitch alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -30912,12 +31288,14 @@ class ReadSwitchMultiPressMax : public ReadAttribute { ~ReadSwitchMultiPressMax() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003B) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRSwitch * cluster = [[MTRSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterSwitch * cluster = [[MTRBaseClusterSwitch alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMultiPressMaxWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Switch.MultiPressMax response %@", [value description]); if (error != nil) { @@ -30938,11 +31316,13 @@ class SubscribeAttributeSwitchMultiPressMax : public SubscribeAttribute { ~SubscribeAttributeSwitchMultiPressMax() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003B) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRSwitch * cluster = [[MTRSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterSwitch * cluster = [[MTRBaseClusterSwitch alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -30976,12 +31356,14 @@ class ReadSwitchGeneratedCommandList : public ReadAttribute { ~ReadSwitchGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003B) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRSwitch * cluster = [[MTRSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterSwitch * cluster = [[MTRBaseClusterSwitch alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Switch.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -31002,11 +31384,13 @@ class SubscribeAttributeSwitchGeneratedCommandList : public SubscribeAttribute { ~SubscribeAttributeSwitchGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003B) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRSwitch * cluster = [[MTRSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterSwitch * cluster = [[MTRBaseClusterSwitch alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -31040,12 +31424,14 @@ class ReadSwitchAcceptedCommandList : public ReadAttribute { ~ReadSwitchAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003B) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRSwitch * cluster = [[MTRSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterSwitch * cluster = [[MTRBaseClusterSwitch alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Switch.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -31066,11 +31452,13 @@ class SubscribeAttributeSwitchAcceptedCommandList : public SubscribeAttribute { ~SubscribeAttributeSwitchAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003B) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRSwitch * cluster = [[MTRSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterSwitch * cluster = [[MTRBaseClusterSwitch alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -31104,12 +31492,14 @@ class ReadSwitchAttributeList : public ReadAttribute { ~ReadSwitchAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003B) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRSwitch * cluster = [[MTRSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterSwitch * cluster = [[MTRBaseClusterSwitch alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Switch.AttributeList response %@", [value description]); if (error != nil) { @@ -31130,11 +31520,13 @@ class SubscribeAttributeSwitchAttributeList : public SubscribeAttribute { ~SubscribeAttributeSwitchAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003B) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRSwitch * cluster = [[MTRSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterSwitch * cluster = [[MTRBaseClusterSwitch alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -31168,12 +31560,14 @@ class ReadSwitchFeatureMap : public ReadAttribute { ~ReadSwitchFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003B) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRSwitch * cluster = [[MTRSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterSwitch * cluster = [[MTRBaseClusterSwitch alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Switch.FeatureMap response %@", [value description]); if (error != nil) { @@ -31194,11 +31588,13 @@ class SubscribeAttributeSwitchFeatureMap : public SubscribeAttribute { ~SubscribeAttributeSwitchFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003B) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRSwitch * cluster = [[MTRSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterSwitch * cluster = [[MTRBaseClusterSwitch alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -31232,12 +31628,14 @@ class ReadSwitchClusterRevision : public ReadAttribute { ~ReadSwitchClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003B) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRSwitch * cluster = [[MTRSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterSwitch * cluster = [[MTRBaseClusterSwitch alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Switch.ClusterRevision response %@", [value description]); if (error != nil) { @@ -31258,11 +31656,13 @@ class SubscribeAttributeSwitchClusterRevision : public SubscribeAttribute { ~SubscribeAttributeSwitchClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003B) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRSwitch * cluster = [[MTRSwitch alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterSwitch * cluster = [[MTRBaseClusterSwitch alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -31321,14 +31721,13 @@ class AdministratorCommissioningOpenCommissioningWindow : public ClusterCommand ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003C) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAdministratorCommissioning * cluster = [[MTRAdministratorCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterAdministratorCommissioning * cluster = + [[MTRBaseClusterAdministratorCommissioning alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; __auto_type * params = [[MTRAdministratorCommissioningClusterOpenCommissioningWindowParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -31371,14 +31770,13 @@ class AdministratorCommissioningOpenBasicCommissioningWindow : public ClusterCom ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003C) command (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAdministratorCommissioning * cluster = [[MTRAdministratorCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterAdministratorCommissioning * cluster = + [[MTRBaseClusterAdministratorCommissioning alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; __auto_type * params = [[MTRAdministratorCommissioningClusterOpenBasicCommissioningWindowParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -31416,14 +31814,13 @@ class AdministratorCommissioningRevokeCommissioning : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003C) command (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAdministratorCommissioning * cluster = [[MTRAdministratorCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterAdministratorCommissioning * cluster = + [[MTRBaseClusterAdministratorCommissioning alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; __auto_type * params = [[MTRAdministratorCommissioningClusterRevokeCommissioningParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -31460,14 +31857,13 @@ class ReadAdministratorCommissioningWindowStatus : public ReadAttribute { ~ReadAdministratorCommissioningWindowStatus() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003C) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAdministratorCommissioning * cluster = [[MTRAdministratorCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterAdministratorCommissioning * cluster = + [[MTRBaseClusterAdministratorCommissioning alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeWindowStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"AdministratorCommissioning.WindowStatus response %@", [value description]); if (error != nil) { @@ -31488,13 +31884,12 @@ class SubscribeAttributeAdministratorCommissioningWindowStatus : public Subscrib ~SubscribeAttributeAdministratorCommissioningWindowStatus() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003C) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAdministratorCommissioning * cluster = [[MTRAdministratorCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterAdministratorCommissioning * cluster = + [[MTRBaseClusterAdministratorCommissioning alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -31528,14 +31923,13 @@ class ReadAdministratorCommissioningAdminFabricIndex : public ReadAttribute { ~ReadAdministratorCommissioningAdminFabricIndex() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003C) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAdministratorCommissioning * cluster = [[MTRAdministratorCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterAdministratorCommissioning * cluster = + [[MTRBaseClusterAdministratorCommissioning alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAdminFabricIndexWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"AdministratorCommissioning.AdminFabricIndex response %@", [value description]); if (error != nil) { @@ -31556,13 +31950,12 @@ class SubscribeAttributeAdministratorCommissioningAdminFabricIndex : public Subs ~SubscribeAttributeAdministratorCommissioningAdminFabricIndex() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003C) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAdministratorCommissioning * cluster = [[MTRAdministratorCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterAdministratorCommissioning * cluster = + [[MTRBaseClusterAdministratorCommissioning alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -31596,14 +31989,13 @@ class ReadAdministratorCommissioningAdminVendorId : public ReadAttribute { ~ReadAdministratorCommissioningAdminVendorId() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003C) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAdministratorCommissioning * cluster = [[MTRAdministratorCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterAdministratorCommissioning * cluster = + [[MTRBaseClusterAdministratorCommissioning alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAdminVendorIdWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"AdministratorCommissioning.AdminVendorId response %@", [value description]); if (error != nil) { @@ -31624,13 +32016,12 @@ class SubscribeAttributeAdministratorCommissioningAdminVendorId : public Subscri ~SubscribeAttributeAdministratorCommissioningAdminVendorId() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003C) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAdministratorCommissioning * cluster = [[MTRAdministratorCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterAdministratorCommissioning * cluster = + [[MTRBaseClusterAdministratorCommissioning alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -31664,14 +32055,13 @@ class ReadAdministratorCommissioningGeneratedCommandList : public ReadAttribute ~ReadAdministratorCommissioningGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003C) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAdministratorCommissioning * cluster = [[MTRAdministratorCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterAdministratorCommissioning * cluster = + [[MTRBaseClusterAdministratorCommissioning alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"AdministratorCommissioning.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -31692,13 +32082,12 @@ class SubscribeAttributeAdministratorCommissioningGeneratedCommandList : public ~SubscribeAttributeAdministratorCommissioningGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003C) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAdministratorCommissioning * cluster = [[MTRAdministratorCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterAdministratorCommissioning * cluster = + [[MTRBaseClusterAdministratorCommissioning alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -31732,14 +32121,13 @@ class ReadAdministratorCommissioningAcceptedCommandList : public ReadAttribute { ~ReadAdministratorCommissioningAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003C) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAdministratorCommissioning * cluster = [[MTRAdministratorCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterAdministratorCommissioning * cluster = + [[MTRBaseClusterAdministratorCommissioning alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"AdministratorCommissioning.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -31760,13 +32148,12 @@ class SubscribeAttributeAdministratorCommissioningAcceptedCommandList : public S ~SubscribeAttributeAdministratorCommissioningAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003C) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAdministratorCommissioning * cluster = [[MTRAdministratorCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterAdministratorCommissioning * cluster = + [[MTRBaseClusterAdministratorCommissioning alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -31800,14 +32187,13 @@ class ReadAdministratorCommissioningAttributeList : public ReadAttribute { ~ReadAdministratorCommissioningAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003C) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAdministratorCommissioning * cluster = [[MTRAdministratorCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterAdministratorCommissioning * cluster = + [[MTRBaseClusterAdministratorCommissioning alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"AdministratorCommissioning.AttributeList response %@", [value description]); if (error != nil) { @@ -31828,13 +32214,12 @@ class SubscribeAttributeAdministratorCommissioningAttributeList : public Subscri ~SubscribeAttributeAdministratorCommissioningAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003C) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAdministratorCommissioning * cluster = [[MTRAdministratorCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterAdministratorCommissioning * cluster = + [[MTRBaseClusterAdministratorCommissioning alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -31868,14 +32253,13 @@ class ReadAdministratorCommissioningFeatureMap : public ReadAttribute { ~ReadAdministratorCommissioningFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003C) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAdministratorCommissioning * cluster = [[MTRAdministratorCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterAdministratorCommissioning * cluster = + [[MTRBaseClusterAdministratorCommissioning alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"AdministratorCommissioning.FeatureMap response %@", [value description]); if (error != nil) { @@ -31896,13 +32280,12 @@ class SubscribeAttributeAdministratorCommissioningFeatureMap : public SubscribeA ~SubscribeAttributeAdministratorCommissioningFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003C) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAdministratorCommissioning * cluster = [[MTRAdministratorCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterAdministratorCommissioning * cluster = + [[MTRBaseClusterAdministratorCommissioning alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -31936,14 +32319,13 @@ class ReadAdministratorCommissioningClusterRevision : public ReadAttribute { ~ReadAdministratorCommissioningClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003C) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAdministratorCommissioning * cluster = [[MTRAdministratorCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterAdministratorCommissioning * cluster = + [[MTRBaseClusterAdministratorCommissioning alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"AdministratorCommissioning.ClusterRevision response %@", [value description]); if (error != nil) { @@ -31964,13 +32346,12 @@ class SubscribeAttributeAdministratorCommissioningClusterRevision : public Subsc ~SubscribeAttributeAdministratorCommissioningClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003C) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAdministratorCommissioning * cluster = [[MTRAdministratorCommissioning alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterAdministratorCommissioning * cluster = + [[MTRBaseClusterAdministratorCommissioning alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -32033,14 +32414,13 @@ class OperationalCredentialsAttestationRequest : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; __auto_type * params = [[MTROperationalCredentialsClusterAttestationRequestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -32081,14 +32461,13 @@ class OperationalCredentialsCertificateChainRequest : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) command (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; __auto_type * params = [[MTROperationalCredentialsClusterCertificateChainRequestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -32131,14 +32510,13 @@ class OperationalCredentialsCSRRequest : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) command (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; __auto_type * params = [[MTROperationalCredentialsClusterCSRRequestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -32188,14 +32566,13 @@ class OperationalCredentialsAddNOC : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) command (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; __auto_type * params = [[MTROperationalCredentialsClusterAddNOCParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -32245,14 +32622,13 @@ class OperationalCredentialsUpdateNOC : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) command (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; __auto_type * params = [[MTROperationalCredentialsClusterUpdateNOCParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -32298,14 +32674,13 @@ class OperationalCredentialsUpdateFabricLabel : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) command (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; __auto_type * params = [[MTROperationalCredentialsClusterUpdateFabricLabelParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -32348,14 +32723,13 @@ class OperationalCredentialsRemoveFabric : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) command (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; __auto_type * params = [[MTROperationalCredentialsClusterRemoveFabricParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -32396,14 +32770,13 @@ class OperationalCredentialsAddTrustedRootCertificate : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) command (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; __auto_type * params = [[MTROperationalCredentialsClusterAddTrustedRootCertificateParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -32442,14 +32815,13 @@ class ReadOperationalCredentialsNOCs : public ReadAttribute { ~ReadOperationalCredentialsNOCs() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; [cluster readAttributeNOCsWithParams:params @@ -32473,13 +32845,12 @@ class SubscribeAttributeOperationalCredentialsNOCs : public SubscribeAttribute { ~SubscribeAttributeOperationalCredentialsNOCs() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -32513,14 +32884,13 @@ class ReadOperationalCredentialsFabrics : public ReadAttribute { ~ReadOperationalCredentialsFabrics() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; [cluster readAttributeFabricsWithParams:params @@ -32544,13 +32914,12 @@ class SubscribeAttributeOperationalCredentialsFabrics : public SubscribeAttribut ~SubscribeAttributeOperationalCredentialsFabrics() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -32584,14 +32953,13 @@ class ReadOperationalCredentialsSupportedFabrics : public ReadAttribute { ~ReadOperationalCredentialsSupportedFabrics() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeSupportedFabricsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OperationalCredentials.SupportedFabrics response %@", [value description]); if (error != nil) { @@ -32612,13 +32980,12 @@ class SubscribeAttributeOperationalCredentialsSupportedFabrics : public Subscrib ~SubscribeAttributeOperationalCredentialsSupportedFabrics() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -32652,14 +33019,13 @@ class ReadOperationalCredentialsCommissionedFabrics : public ReadAttribute { ~ReadOperationalCredentialsCommissionedFabrics() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeCommissionedFabricsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OperationalCredentials.CommissionedFabrics response %@", [value description]); if (error != nil) { @@ -32680,13 +33046,12 @@ class SubscribeAttributeOperationalCredentialsCommissionedFabrics : public Subsc ~SubscribeAttributeOperationalCredentialsCommissionedFabrics() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -32720,14 +33085,13 @@ class ReadOperationalCredentialsTrustedRootCertificates : public ReadAttribute { ~ReadOperationalCredentialsTrustedRootCertificates() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeTrustedRootCertificatesWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"OperationalCredentials.TrustedRootCertificates response %@", [value description]); if (error != nil) { @@ -32748,13 +33112,12 @@ class SubscribeAttributeOperationalCredentialsTrustedRootCertificates : public S ~SubscribeAttributeOperationalCredentialsTrustedRootCertificates() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -32788,14 +33151,13 @@ class ReadOperationalCredentialsCurrentFabricIndex : public ReadAttribute { ~ReadOperationalCredentialsCurrentFabricIndex() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) ReadAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeCurrentFabricIndexWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OperationalCredentials.CurrentFabricIndex response %@", [value description]); if (error != nil) { @@ -32816,13 +33178,12 @@ class SubscribeAttributeOperationalCredentialsCurrentFabricIndex : public Subscr ~SubscribeAttributeOperationalCredentialsCurrentFabricIndex() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) ReportAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -32856,14 +33217,13 @@ class ReadOperationalCredentialsGeneratedCommandList : public ReadAttribute { ~ReadOperationalCredentialsGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"OperationalCredentials.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -32884,13 +33244,12 @@ class SubscribeAttributeOperationalCredentialsGeneratedCommandList : public Subs ~SubscribeAttributeOperationalCredentialsGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -32924,14 +33283,13 @@ class ReadOperationalCredentialsAcceptedCommandList : public ReadAttribute { ~ReadOperationalCredentialsAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"OperationalCredentials.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -32952,13 +33310,12 @@ class SubscribeAttributeOperationalCredentialsAcceptedCommandList : public Subsc ~SubscribeAttributeOperationalCredentialsAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -32992,14 +33349,13 @@ class ReadOperationalCredentialsAttributeList : public ReadAttribute { ~ReadOperationalCredentialsAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"OperationalCredentials.AttributeList response %@", [value description]); if (error != nil) { @@ -33020,13 +33376,12 @@ class SubscribeAttributeOperationalCredentialsAttributeList : public SubscribeAt ~SubscribeAttributeOperationalCredentialsAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -33060,14 +33415,13 @@ class ReadOperationalCredentialsFeatureMap : public ReadAttribute { ~ReadOperationalCredentialsFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OperationalCredentials.FeatureMap response %@", [value description]); if (error != nil) { @@ -33088,13 +33442,12 @@ class SubscribeAttributeOperationalCredentialsFeatureMap : public SubscribeAttri ~SubscribeAttributeOperationalCredentialsFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -33128,14 +33481,13 @@ class ReadOperationalCredentialsClusterRevision : public ReadAttribute { ~ReadOperationalCredentialsClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OperationalCredentials.ClusterRevision response %@", [value description]); if (error != nil) { @@ -33156,13 +33508,12 @@ class SubscribeAttributeOperationalCredentialsClusterRevision : public Subscribe ~SubscribeAttributeOperationalCredentialsClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003E) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROperationalCredentials * cluster = [[MTROperationalCredentials alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -33220,14 +33571,14 @@ class GroupKeyManagementKeySetWrite : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGroupKeyManagement * cluster = [[MTRBaseClusterGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRGroupKeyManagementClusterKeySetWriteParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -33303,14 +33654,14 @@ class GroupKeyManagementKeySetRead : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) command (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGroupKeyManagement * cluster = [[MTRBaseClusterGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRGroupKeyManagementClusterKeySetReadParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -33351,14 +33702,14 @@ class GroupKeyManagementKeySetRemove : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) command (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGroupKeyManagement * cluster = [[MTRBaseClusterGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRGroupKeyManagementClusterKeySetRemoveParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -33398,14 +33749,14 @@ class GroupKeyManagementKeySetReadAllIndices : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) command (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGroupKeyManagement * cluster = [[MTRBaseClusterGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRGroupKeyManagementClusterKeySetReadAllIndicesParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -33456,14 +33807,14 @@ class ReadGroupKeyManagementGroupKeyMap : public ReadAttribute { ~ReadGroupKeyManagementGroupKeyMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGroupKeyManagement * cluster = [[MTRBaseClusterGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; [cluster readAttributeGroupKeyMapWithParams:params @@ -33491,15 +33842,15 @@ class WriteGroupKeyManagementGroupKeyMap : public WriteAttribute { ~WriteGroupKeyManagementGroupKeyMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) WriteAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGroupKeyManagement * cluster = [[MTRBaseClusterGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSArray * _Nonnull value; @@ -33543,13 +33894,13 @@ class SubscribeAttributeGroupKeyManagementGroupKeyMap : public SubscribeAttribut ~SubscribeAttributeGroupKeyManagementGroupKeyMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGroupKeyManagement * cluster = [[MTRBaseClusterGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -33583,14 +33934,14 @@ class ReadGroupKeyManagementGroupTable : public ReadAttribute { ~ReadGroupKeyManagementGroupTable() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGroupKeyManagement * cluster = [[MTRBaseClusterGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; [cluster readAttributeGroupTableWithParams:params @@ -33614,13 +33965,13 @@ class SubscribeAttributeGroupKeyManagementGroupTable : public SubscribeAttribute ~SubscribeAttributeGroupKeyManagementGroupTable() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGroupKeyManagement * cluster = [[MTRBaseClusterGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -33654,14 +34005,14 @@ class ReadGroupKeyManagementMaxGroupsPerFabric : public ReadAttribute { ~ReadGroupKeyManagementMaxGroupsPerFabric() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGroupKeyManagement * cluster = [[MTRBaseClusterGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMaxGroupsPerFabricWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"GroupKeyManagement.MaxGroupsPerFabric response %@", [value description]); if (error != nil) { @@ -33682,13 +34033,13 @@ class SubscribeAttributeGroupKeyManagementMaxGroupsPerFabric : public SubscribeA ~SubscribeAttributeGroupKeyManagementMaxGroupsPerFabric() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGroupKeyManagement * cluster = [[MTRBaseClusterGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -33722,14 +34073,14 @@ class ReadGroupKeyManagementMaxGroupKeysPerFabric : public ReadAttribute { ~ReadGroupKeyManagementMaxGroupKeysPerFabric() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGroupKeyManagement * cluster = [[MTRBaseClusterGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMaxGroupKeysPerFabricWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"GroupKeyManagement.MaxGroupKeysPerFabric response %@", [value description]); if (error != nil) { @@ -33750,13 +34101,13 @@ class SubscribeAttributeGroupKeyManagementMaxGroupKeysPerFabric : public Subscri ~SubscribeAttributeGroupKeyManagementMaxGroupKeysPerFabric() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGroupKeyManagement * cluster = [[MTRBaseClusterGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -33790,14 +34141,14 @@ class ReadGroupKeyManagementGeneratedCommandList : public ReadAttribute { ~ReadGroupKeyManagementGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGroupKeyManagement * cluster = [[MTRBaseClusterGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"GroupKeyManagement.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -33818,13 +34169,13 @@ class SubscribeAttributeGroupKeyManagementGeneratedCommandList : public Subscrib ~SubscribeAttributeGroupKeyManagementGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGroupKeyManagement * cluster = [[MTRBaseClusterGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -33858,14 +34209,14 @@ class ReadGroupKeyManagementAcceptedCommandList : public ReadAttribute { ~ReadGroupKeyManagementAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGroupKeyManagement * cluster = [[MTRBaseClusterGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"GroupKeyManagement.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -33886,13 +34237,13 @@ class SubscribeAttributeGroupKeyManagementAcceptedCommandList : public Subscribe ~SubscribeAttributeGroupKeyManagementAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGroupKeyManagement * cluster = [[MTRBaseClusterGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -33926,14 +34277,14 @@ class ReadGroupKeyManagementAttributeList : public ReadAttribute { ~ReadGroupKeyManagementAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGroupKeyManagement * cluster = [[MTRBaseClusterGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"GroupKeyManagement.AttributeList response %@", [value description]); if (error != nil) { @@ -33954,13 +34305,13 @@ class SubscribeAttributeGroupKeyManagementAttributeList : public SubscribeAttrib ~SubscribeAttributeGroupKeyManagementAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGroupKeyManagement * cluster = [[MTRBaseClusterGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -33994,14 +34345,14 @@ class ReadGroupKeyManagementFeatureMap : public ReadAttribute { ~ReadGroupKeyManagementFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGroupKeyManagement * cluster = [[MTRBaseClusterGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"GroupKeyManagement.FeatureMap response %@", [value description]); if (error != nil) { @@ -34022,13 +34373,13 @@ class SubscribeAttributeGroupKeyManagementFeatureMap : public SubscribeAttribute ~SubscribeAttributeGroupKeyManagementFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGroupKeyManagement * cluster = [[MTRBaseClusterGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -34062,14 +34413,14 @@ class ReadGroupKeyManagementClusterRevision : public ReadAttribute { ~ReadGroupKeyManagementClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGroupKeyManagement * cluster = [[MTRBaseClusterGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"GroupKeyManagement.ClusterRevision response %@", [value description]); if (error != nil) { @@ -34090,13 +34441,13 @@ class SubscribeAttributeGroupKeyManagementClusterRevision : public SubscribeAttr ~SubscribeAttributeGroupKeyManagementClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000003F) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRGroupKeyManagement * cluster = [[MTRGroupKeyManagement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterGroupKeyManagement * cluster = [[MTRBaseClusterGroupKeyManagement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -34146,12 +34497,14 @@ class ReadFixedLabelLabelList : public ReadAttribute { ~ReadFixedLabelLabelList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000040) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFixedLabel * cluster = [[MTRFixedLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFixedLabel * cluster = [[MTRBaseClusterFixedLabel alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeLabelListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"FixedLabel.LabelList response %@", [value description]); if (error != nil) { @@ -34172,11 +34525,13 @@ class SubscribeAttributeFixedLabelLabelList : public SubscribeAttribute { ~SubscribeAttributeFixedLabelLabelList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000040) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFixedLabel * cluster = [[MTRFixedLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFixedLabel * cluster = [[MTRBaseClusterFixedLabel alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -34210,12 +34565,14 @@ class ReadFixedLabelGeneratedCommandList : public ReadAttribute { ~ReadFixedLabelGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000040) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFixedLabel * cluster = [[MTRFixedLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFixedLabel * cluster = [[MTRBaseClusterFixedLabel alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"FixedLabel.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -34236,11 +34593,13 @@ class SubscribeAttributeFixedLabelGeneratedCommandList : public SubscribeAttribu ~SubscribeAttributeFixedLabelGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000040) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFixedLabel * cluster = [[MTRFixedLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFixedLabel * cluster = [[MTRBaseClusterFixedLabel alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -34274,12 +34633,14 @@ class ReadFixedLabelAcceptedCommandList : public ReadAttribute { ~ReadFixedLabelAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000040) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFixedLabel * cluster = [[MTRFixedLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFixedLabel * cluster = [[MTRBaseClusterFixedLabel alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"FixedLabel.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -34300,11 +34661,13 @@ class SubscribeAttributeFixedLabelAcceptedCommandList : public SubscribeAttribut ~SubscribeAttributeFixedLabelAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000040) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFixedLabel * cluster = [[MTRFixedLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFixedLabel * cluster = [[MTRBaseClusterFixedLabel alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -34338,12 +34701,14 @@ class ReadFixedLabelAttributeList : public ReadAttribute { ~ReadFixedLabelAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000040) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFixedLabel * cluster = [[MTRFixedLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFixedLabel * cluster = [[MTRBaseClusterFixedLabel alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"FixedLabel.AttributeList response %@", [value description]); if (error != nil) { @@ -34364,11 +34729,13 @@ class SubscribeAttributeFixedLabelAttributeList : public SubscribeAttribute { ~SubscribeAttributeFixedLabelAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000040) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFixedLabel * cluster = [[MTRFixedLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFixedLabel * cluster = [[MTRBaseClusterFixedLabel alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -34402,12 +34769,14 @@ class ReadFixedLabelFeatureMap : public ReadAttribute { ~ReadFixedLabelFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000040) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFixedLabel * cluster = [[MTRFixedLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFixedLabel * cluster = [[MTRBaseClusterFixedLabel alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"FixedLabel.FeatureMap response %@", [value description]); if (error != nil) { @@ -34428,11 +34797,13 @@ class SubscribeAttributeFixedLabelFeatureMap : public SubscribeAttribute { ~SubscribeAttributeFixedLabelFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000040) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFixedLabel * cluster = [[MTRFixedLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFixedLabel * cluster = [[MTRBaseClusterFixedLabel alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -34466,12 +34837,14 @@ class ReadFixedLabelClusterRevision : public ReadAttribute { ~ReadFixedLabelClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000040) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFixedLabel * cluster = [[MTRFixedLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFixedLabel * cluster = [[MTRBaseClusterFixedLabel alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"FixedLabel.ClusterRevision response %@", [value description]); if (error != nil) { @@ -34492,11 +34865,13 @@ class SubscribeAttributeFixedLabelClusterRevision : public SubscribeAttribute { ~SubscribeAttributeFixedLabelClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000040) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFixedLabel * cluster = [[MTRFixedLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFixedLabel * cluster = [[MTRBaseClusterFixedLabel alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -34546,12 +34921,14 @@ class ReadUserLabelLabelList : public ReadAttribute { ~ReadUserLabelLabelList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000041) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRUserLabel * cluster = [[MTRUserLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterUserLabel * cluster = [[MTRBaseClusterUserLabel alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeLabelListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"UserLabel.LabelList response %@", [value description]); if (error != nil) { @@ -34576,13 +34953,15 @@ class WriteUserLabelLabelList : public WriteAttribute { ~WriteUserLabelLabelList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000041) WriteAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRUserLabel * cluster = [[MTRUserLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterUserLabel * cluster = [[MTRBaseClusterUserLabel alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSArray * _Nonnull value; @@ -34627,11 +35006,13 @@ class SubscribeAttributeUserLabelLabelList : public SubscribeAttribute { ~SubscribeAttributeUserLabelLabelList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000041) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRUserLabel * cluster = [[MTRUserLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterUserLabel * cluster = [[MTRBaseClusterUserLabel alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -34665,12 +35046,14 @@ class ReadUserLabelGeneratedCommandList : public ReadAttribute { ~ReadUserLabelGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000041) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRUserLabel * cluster = [[MTRUserLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterUserLabel * cluster = [[MTRBaseClusterUserLabel alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"UserLabel.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -34691,11 +35074,13 @@ class SubscribeAttributeUserLabelGeneratedCommandList : public SubscribeAttribut ~SubscribeAttributeUserLabelGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000041) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRUserLabel * cluster = [[MTRUserLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterUserLabel * cluster = [[MTRBaseClusterUserLabel alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -34729,12 +35114,14 @@ class ReadUserLabelAcceptedCommandList : public ReadAttribute { ~ReadUserLabelAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000041) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRUserLabel * cluster = [[MTRUserLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterUserLabel * cluster = [[MTRBaseClusterUserLabel alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"UserLabel.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -34755,11 +35142,13 @@ class SubscribeAttributeUserLabelAcceptedCommandList : public SubscribeAttribute ~SubscribeAttributeUserLabelAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000041) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRUserLabel * cluster = [[MTRUserLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterUserLabel * cluster = [[MTRBaseClusterUserLabel alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -34793,12 +35182,14 @@ class ReadUserLabelAttributeList : public ReadAttribute { ~ReadUserLabelAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000041) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRUserLabel * cluster = [[MTRUserLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterUserLabel * cluster = [[MTRBaseClusterUserLabel alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"UserLabel.AttributeList response %@", [value description]); if (error != nil) { @@ -34819,11 +35210,13 @@ class SubscribeAttributeUserLabelAttributeList : public SubscribeAttribute { ~SubscribeAttributeUserLabelAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000041) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRUserLabel * cluster = [[MTRUserLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterUserLabel * cluster = [[MTRBaseClusterUserLabel alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -34857,12 +35250,14 @@ class ReadUserLabelFeatureMap : public ReadAttribute { ~ReadUserLabelFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000041) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRUserLabel * cluster = [[MTRUserLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterUserLabel * cluster = [[MTRBaseClusterUserLabel alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"UserLabel.FeatureMap response %@", [value description]); if (error != nil) { @@ -34883,11 +35278,13 @@ class SubscribeAttributeUserLabelFeatureMap : public SubscribeAttribute { ~SubscribeAttributeUserLabelFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000041) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRUserLabel * cluster = [[MTRUserLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterUserLabel * cluster = [[MTRBaseClusterUserLabel alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -34921,12 +35318,14 @@ class ReadUserLabelClusterRevision : public ReadAttribute { ~ReadUserLabelClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000041) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRUserLabel * cluster = [[MTRUserLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterUserLabel * cluster = [[MTRBaseClusterUserLabel alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"UserLabel.ClusterRevision response %@", [value description]); if (error != nil) { @@ -34947,11 +35346,13 @@ class SubscribeAttributeUserLabelClusterRevision : public SubscribeAttribute { ~SubscribeAttributeUserLabelClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000041) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRUserLabel * cluster = [[MTRUserLabel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterUserLabel * cluster = [[MTRBaseClusterUserLabel alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -35002,12 +35403,14 @@ class ReadBooleanStateStateValue : public ReadAttribute { ~ReadBooleanStateStateValue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000045) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBooleanState * cluster = [[MTRBooleanState alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBooleanState * cluster = [[MTRBaseClusterBooleanState alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeStateValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BooleanState.StateValue response %@", [value description]); if (error != nil) { @@ -35028,11 +35431,13 @@ class SubscribeAttributeBooleanStateStateValue : public SubscribeAttribute { ~SubscribeAttributeBooleanStateStateValue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000045) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBooleanState * cluster = [[MTRBooleanState alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBooleanState * cluster = [[MTRBaseClusterBooleanState alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -35066,12 +35471,14 @@ class ReadBooleanStateGeneratedCommandList : public ReadAttribute { ~ReadBooleanStateGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000045) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBooleanState * cluster = [[MTRBooleanState alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBooleanState * cluster = [[MTRBaseClusterBooleanState alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"BooleanState.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -35092,11 +35499,13 @@ class SubscribeAttributeBooleanStateGeneratedCommandList : public SubscribeAttri ~SubscribeAttributeBooleanStateGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000045) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBooleanState * cluster = [[MTRBooleanState alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBooleanState * cluster = [[MTRBaseClusterBooleanState alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -35130,12 +35539,14 @@ class ReadBooleanStateAcceptedCommandList : public ReadAttribute { ~ReadBooleanStateAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000045) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBooleanState * cluster = [[MTRBooleanState alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBooleanState * cluster = [[MTRBaseClusterBooleanState alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"BooleanState.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -35156,11 +35567,13 @@ class SubscribeAttributeBooleanStateAcceptedCommandList : public SubscribeAttrib ~SubscribeAttributeBooleanStateAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000045) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBooleanState * cluster = [[MTRBooleanState alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBooleanState * cluster = [[MTRBaseClusterBooleanState alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -35194,12 +35607,14 @@ class ReadBooleanStateAttributeList : public ReadAttribute { ~ReadBooleanStateAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000045) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBooleanState * cluster = [[MTRBooleanState alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBooleanState * cluster = [[MTRBaseClusterBooleanState alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"BooleanState.AttributeList response %@", [value description]); if (error != nil) { @@ -35220,11 +35635,13 @@ class SubscribeAttributeBooleanStateAttributeList : public SubscribeAttribute { ~SubscribeAttributeBooleanStateAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000045) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBooleanState * cluster = [[MTRBooleanState alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBooleanState * cluster = [[MTRBaseClusterBooleanState alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -35258,12 +35675,14 @@ class ReadBooleanStateFeatureMap : public ReadAttribute { ~ReadBooleanStateFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000045) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBooleanState * cluster = [[MTRBooleanState alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBooleanState * cluster = [[MTRBaseClusterBooleanState alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BooleanState.FeatureMap response %@", [value description]); if (error != nil) { @@ -35284,11 +35703,13 @@ class SubscribeAttributeBooleanStateFeatureMap : public SubscribeAttribute { ~SubscribeAttributeBooleanStateFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000045) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBooleanState * cluster = [[MTRBooleanState alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBooleanState * cluster = [[MTRBaseClusterBooleanState alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -35322,12 +35743,14 @@ class ReadBooleanStateClusterRevision : public ReadAttribute { ~ReadBooleanStateClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000045) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBooleanState * cluster = [[MTRBooleanState alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBooleanState * cluster = [[MTRBaseClusterBooleanState alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BooleanState.ClusterRevision response %@", [value description]); if (error != nil) { @@ -35348,11 +35771,13 @@ class SubscribeAttributeBooleanStateClusterRevision : public SubscribeAttribute ~SubscribeAttributeBooleanStateClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000045) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBooleanState * cluster = [[MTRBooleanState alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBooleanState * cluster = [[MTRBaseClusterBooleanState alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -35408,12 +35833,14 @@ class ModeSelectChangeToMode : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRModeSelectClusterChangeToModeParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -35452,12 +35879,14 @@ class ReadModeSelectDescription : public ReadAttribute { ~ReadModeSelectDescription() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeDescriptionWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"ModeSelect.Description response %@", [value description]); if (error != nil) { @@ -35478,11 +35907,13 @@ class SubscribeAttributeModeSelectDescription : public SubscribeAttribute { ~SubscribeAttributeModeSelectDescription() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -35516,12 +35947,14 @@ class ReadModeSelectStandardNamespace : public ReadAttribute { ~ReadModeSelectStandardNamespace() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeStandardNamespaceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ModeSelect.StandardNamespace response %@", [value description]); if (error != nil) { @@ -35542,11 +35975,13 @@ class SubscribeAttributeModeSelectStandardNamespace : public SubscribeAttribute ~SubscribeAttributeModeSelectStandardNamespace() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -35580,12 +36015,14 @@ class ReadModeSelectSupportedModes : public ReadAttribute { ~ReadModeSelectSupportedModes() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeSupportedModesWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ModeSelect.SupportedModes response %@", [value description]); if (error != nil) { @@ -35606,11 +36043,13 @@ class SubscribeAttributeModeSelectSupportedModes : public SubscribeAttribute { ~SubscribeAttributeModeSelectSupportedModes() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -35644,12 +36083,14 @@ class ReadModeSelectCurrentMode : public ReadAttribute { ~ReadModeSelectCurrentMode() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeCurrentModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ModeSelect.CurrentMode response %@", [value description]); if (error != nil) { @@ -35670,11 +36111,13 @@ class SubscribeAttributeModeSelectCurrentMode : public SubscribeAttribute { ~SubscribeAttributeModeSelectCurrentMode() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -35708,12 +36151,14 @@ class ReadModeSelectStartUpMode : public ReadAttribute { ~ReadModeSelectStartUpMode() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeStartUpModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ModeSelect.StartUpMode response %@", [value description]); if (error != nil) { @@ -35737,13 +36182,15 @@ class WriteModeSelectStartUpMode : public WriteAttribute { ~WriteModeSelectStartUpMode() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) WriteAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithUnsignedChar:mValue]; @@ -35772,11 +36219,13 @@ class SubscribeAttributeModeSelectStartUpMode : public SubscribeAttribute { ~SubscribeAttributeModeSelectStartUpMode() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -35810,12 +36259,14 @@ class ReadModeSelectOnMode : public ReadAttribute { ~ReadModeSelectOnMode() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) ReadAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeOnModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ModeSelect.OnMode response %@", [value description]); if (error != nil) { @@ -35839,13 +36290,15 @@ class WriteModeSelectOnMode : public WriteAttribute { ~WriteModeSelectOnMode() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) WriteAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithUnsignedChar:mValue]; @@ -35874,11 +36327,13 @@ class SubscribeAttributeModeSelectOnMode : public SubscribeAttribute { ~SubscribeAttributeModeSelectOnMode() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) ReportAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -35912,12 +36367,14 @@ class ReadModeSelectGeneratedCommandList : public ReadAttribute { ~ReadModeSelectGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ModeSelect.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -35938,11 +36395,13 @@ class SubscribeAttributeModeSelectGeneratedCommandList : public SubscribeAttribu ~SubscribeAttributeModeSelectGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -35976,12 +36435,14 @@ class ReadModeSelectAcceptedCommandList : public ReadAttribute { ~ReadModeSelectAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ModeSelect.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -36002,11 +36463,13 @@ class SubscribeAttributeModeSelectAcceptedCommandList : public SubscribeAttribut ~SubscribeAttributeModeSelectAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -36040,12 +36503,14 @@ class ReadModeSelectAttributeList : public ReadAttribute { ~ReadModeSelectAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ModeSelect.AttributeList response %@", [value description]); if (error != nil) { @@ -36066,11 +36531,13 @@ class SubscribeAttributeModeSelectAttributeList : public SubscribeAttribute { ~SubscribeAttributeModeSelectAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -36104,12 +36571,14 @@ class ReadModeSelectFeatureMap : public ReadAttribute { ~ReadModeSelectFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ModeSelect.FeatureMap response %@", [value description]); if (error != nil) { @@ -36130,11 +36599,13 @@ class SubscribeAttributeModeSelectFeatureMap : public SubscribeAttribute { ~SubscribeAttributeModeSelectFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -36168,12 +36639,14 @@ class ReadModeSelectClusterRevision : public ReadAttribute { ~ReadModeSelectClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ModeSelect.ClusterRevision response %@", [value description]); if (error != nil) { @@ -36194,11 +36667,13 @@ class SubscribeAttributeModeSelectClusterRevision : public SubscribeAttribute { ~SubscribeAttributeModeSelectClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000050) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRModeSelect * cluster = [[MTRModeSelect alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -36306,12 +36781,14 @@ class DoorLockLockDoor : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRDoorLockClusterLockDoorParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -36354,12 +36831,14 @@ class DoorLockUnlockDoor : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRDoorLockClusterUnlockDoorParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -36403,12 +36882,14 @@ class DoorLockUnlockWithTimeout : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRDoorLockClusterUnlockWithTimeoutParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -36458,12 +36939,14 @@ class DoorLockSetWeekDaySchedule : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -36509,12 +36992,14 @@ class DoorLockGetWeekDaySchedule : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x0000000C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -36557,12 +37042,14 @@ class DoorLockClearWeekDaySchedule : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x0000000D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRDoorLockClusterClearWeekDayScheduleParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -36605,12 +37092,14 @@ class DoorLockSetYearDaySchedule : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x0000000E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRDoorLockClusterSetYearDayScheduleParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -36653,12 +37142,14 @@ class DoorLockGetYearDaySchedule : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -36701,12 +37192,14 @@ class DoorLockClearYearDaySchedule : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRDoorLockClusterClearYearDayScheduleParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -36749,12 +37242,14 @@ class DoorLockSetHolidaySchedule : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRDoorLockClusterSetHolidayScheduleParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -36796,12 +37291,14 @@ class DoorLockGetHolidaySchedule : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRDoorLockClusterGetHolidayScheduleParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -36842,12 +37339,14 @@ class DoorLockClearHolidaySchedule : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRDoorLockClusterClearHolidayScheduleParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -36892,12 +37391,14 @@ class DoorLockSetUser : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x0000001A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRDoorLockClusterSetUserParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -36964,12 +37465,14 @@ class DoorLockGetUser : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x0000001B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -37009,12 +37512,14 @@ class DoorLockClearUser : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x0000001D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRDoorLockClusterClearUserParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -37059,12 +37564,14 @@ class DoorLockSetCredential : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000022) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -37127,12 +37634,14 @@ class DoorLockGetCredentialStatus : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000024) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRDoorLockClusterGetCredentialStatusParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -37178,12 +37687,14 @@ class DoorLockClearCredential : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) command (0x00000026) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRDoorLockClusterClearCredentialParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -37231,12 +37742,14 @@ class ReadDoorLockLockState : public ReadAttribute { ~ReadDoorLockLockState() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeLockStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.LockState response %@", [value description]); if (error != nil) { @@ -37257,11 +37770,13 @@ class SubscribeAttributeDoorLockLockState : public SubscribeAttribute { ~SubscribeAttributeDoorLockLockState() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -37295,12 +37810,14 @@ class ReadDoorLockLockType : public ReadAttribute { ~ReadDoorLockLockType() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeLockTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.LockType response %@", [value description]); if (error != nil) { @@ -37321,11 +37838,13 @@ class SubscribeAttributeDoorLockLockType : public SubscribeAttribute { ~SubscribeAttributeDoorLockLockType() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -37359,12 +37878,14 @@ class ReadDoorLockActuatorEnabled : public ReadAttribute { ~ReadDoorLockActuatorEnabled() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeActuatorEnabledWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.ActuatorEnabled response %@", [value description]); if (error != nil) { @@ -37385,11 +37906,13 @@ class SubscribeAttributeDoorLockActuatorEnabled : public SubscribeAttribute { ~SubscribeAttributeDoorLockActuatorEnabled() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -37423,12 +37946,14 @@ class ReadDoorLockDoorState : public ReadAttribute { ~ReadDoorLockDoorState() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeDoorStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.DoorState response %@", [value description]); if (error != nil) { @@ -37449,11 +37974,13 @@ class SubscribeAttributeDoorLockDoorState : public SubscribeAttribute { ~SubscribeAttributeDoorLockDoorState() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -37487,12 +38014,14 @@ class ReadDoorLockDoorOpenEvents : public ReadAttribute { ~ReadDoorLockDoorOpenEvents() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeDoorOpenEventsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.DoorOpenEvents response %@", [value description]); if (error != nil) { @@ -37516,13 +38045,15 @@ class WriteDoorLockDoorOpenEvents : public WriteAttribute { ~WriteDoorLockDoorOpenEvents() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) WriteAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedInt:mValue]; @@ -37551,11 +38082,13 @@ class SubscribeAttributeDoorLockDoorOpenEvents : public SubscribeAttribute { ~SubscribeAttributeDoorLockDoorOpenEvents() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -37589,12 +38122,14 @@ class ReadDoorLockDoorClosedEvents : public ReadAttribute { ~ReadDoorLockDoorClosedEvents() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeDoorClosedEventsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.DoorClosedEvents response %@", [value description]); if (error != nil) { @@ -37618,13 +38153,15 @@ class WriteDoorLockDoorClosedEvents : public WriteAttribute { ~WriteDoorLockDoorClosedEvents() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) WriteAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedInt:mValue]; @@ -37653,11 +38190,13 @@ class SubscribeAttributeDoorLockDoorClosedEvents : public SubscribeAttribute { ~SubscribeAttributeDoorLockDoorClosedEvents() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -37691,12 +38230,14 @@ class ReadDoorLockOpenPeriod : public ReadAttribute { ~ReadDoorLockOpenPeriod() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeOpenPeriodWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.OpenPeriod response %@", [value description]); if (error != nil) { @@ -37720,13 +38261,15 @@ class WriteDoorLockOpenPeriod : public WriteAttribute { ~WriteDoorLockOpenPeriod() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) WriteAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; @@ -37755,11 +38298,13 @@ class SubscribeAttributeDoorLockOpenPeriod : public SubscribeAttribute { ~SubscribeAttributeDoorLockOpenPeriod() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -37793,12 +38338,14 @@ class ReadDoorLockNumberOfTotalUsersSupported : public ReadAttribute { ~ReadDoorLockNumberOfTotalUsersSupported() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNumberOfTotalUsersSupportedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.NumberOfTotalUsersSupported response %@", [value description]); @@ -37820,11 +38367,13 @@ class SubscribeAttributeDoorLockNumberOfTotalUsersSupported : public SubscribeAt ~SubscribeAttributeDoorLockNumberOfTotalUsersSupported() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -37858,12 +38407,14 @@ class ReadDoorLockNumberOfPINUsersSupported : public ReadAttribute { ~ReadDoorLockNumberOfPINUsersSupported() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNumberOfPINUsersSupportedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.NumberOfPINUsersSupported response %@", [value description]); @@ -37885,11 +38436,13 @@ class SubscribeAttributeDoorLockNumberOfPINUsersSupported : public SubscribeAttr ~SubscribeAttributeDoorLockNumberOfPINUsersSupported() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -37923,12 +38476,14 @@ class ReadDoorLockNumberOfRFIDUsersSupported : public ReadAttribute { ~ReadDoorLockNumberOfRFIDUsersSupported() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNumberOfRFIDUsersSupportedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.NumberOfRFIDUsersSupported response %@", [value description]); @@ -37950,11 +38505,13 @@ class SubscribeAttributeDoorLockNumberOfRFIDUsersSupported : public SubscribeAtt ~SubscribeAttributeDoorLockNumberOfRFIDUsersSupported() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -37988,12 +38545,14 @@ class ReadDoorLockNumberOfWeekDaySchedulesSupportedPerUser : public ReadAttribut ~ReadDoorLockNumberOfWeekDaySchedulesSupportedPerUser() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNumberOfWeekDaySchedulesSupportedPerUserWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.NumberOfWeekDaySchedulesSupportedPerUser response %@", [value description]); @@ -38015,11 +38574,13 @@ class SubscribeAttributeDoorLockNumberOfWeekDaySchedulesSupportedPerUser : publi ~SubscribeAttributeDoorLockNumberOfWeekDaySchedulesSupportedPerUser() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -38054,12 +38615,14 @@ class ReadDoorLockNumberOfYearDaySchedulesSupportedPerUser : public ReadAttribut ~ReadDoorLockNumberOfYearDaySchedulesSupportedPerUser() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNumberOfYearDaySchedulesSupportedPerUserWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.NumberOfYearDaySchedulesSupportedPerUser response %@", [value description]); @@ -38081,11 +38644,13 @@ class SubscribeAttributeDoorLockNumberOfYearDaySchedulesSupportedPerUser : publi ~SubscribeAttributeDoorLockNumberOfYearDaySchedulesSupportedPerUser() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -38120,12 +38685,14 @@ class ReadDoorLockNumberOfHolidaySchedulesSupported : public ReadAttribute { ~ReadDoorLockNumberOfHolidaySchedulesSupported() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000016) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNumberOfHolidaySchedulesSupportedWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.NumberOfHolidaySchedulesSupported response %@", [value description]); @@ -38147,11 +38714,13 @@ class SubscribeAttributeDoorLockNumberOfHolidaySchedulesSupported : public Subsc ~SubscribeAttributeDoorLockNumberOfHolidaySchedulesSupported() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000016) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -38185,12 +38754,14 @@ class ReadDoorLockMaxPINCodeLength : public ReadAttribute { ~ReadDoorLockMaxPINCodeLength() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMaxPINCodeLengthWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.MaxPINCodeLength response %@", [value description]); if (error != nil) { @@ -38211,11 +38782,13 @@ class SubscribeAttributeDoorLockMaxPINCodeLength : public SubscribeAttribute { ~SubscribeAttributeDoorLockMaxPINCodeLength() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -38249,12 +38822,14 @@ class ReadDoorLockMinPINCodeLength : public ReadAttribute { ~ReadDoorLockMinPINCodeLength() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000018) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMinPINCodeLengthWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.MinPINCodeLength response %@", [value description]); if (error != nil) { @@ -38275,11 +38850,13 @@ class SubscribeAttributeDoorLockMinPINCodeLength : public SubscribeAttribute { ~SubscribeAttributeDoorLockMinPINCodeLength() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000018) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -38313,12 +38890,14 @@ class ReadDoorLockMaxRFIDCodeLength : public ReadAttribute { ~ReadDoorLockMaxRFIDCodeLength() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000019) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMaxRFIDCodeLengthWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.MaxRFIDCodeLength response %@", [value description]); if (error != nil) { @@ -38339,11 +38918,13 @@ class SubscribeAttributeDoorLockMaxRFIDCodeLength : public SubscribeAttribute { ~SubscribeAttributeDoorLockMaxRFIDCodeLength() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000019) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -38377,12 +38958,14 @@ class ReadDoorLockMinRFIDCodeLength : public ReadAttribute { ~ReadDoorLockMinRFIDCodeLength() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x0000001A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMinRFIDCodeLengthWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.MinRFIDCodeLength response %@", [value description]); if (error != nil) { @@ -38403,11 +38986,13 @@ class SubscribeAttributeDoorLockMinRFIDCodeLength : public SubscribeAttribute { ~SubscribeAttributeDoorLockMinRFIDCodeLength() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x0000001A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -38441,12 +39026,14 @@ class ReadDoorLockCredentialRulesSupport : public ReadAttribute { ~ReadDoorLockCredentialRulesSupport() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x0000001B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeCredentialRulesSupportWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.CredentialRulesSupport response %@", [value description]); if (error != nil) { @@ -38467,11 +39054,13 @@ class SubscribeAttributeDoorLockCredentialRulesSupport : public SubscribeAttribu ~SubscribeAttributeDoorLockCredentialRulesSupport() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x0000001B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -38505,12 +39094,14 @@ class ReadDoorLockNumberOfCredentialsSupportedPerUser : public ReadAttribute { ~ReadDoorLockNumberOfCredentialsSupportedPerUser() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x0000001C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNumberOfCredentialsSupportedPerUserWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.NumberOfCredentialsSupportedPerUser response %@", [value description]); @@ -38532,11 +39123,13 @@ class SubscribeAttributeDoorLockNumberOfCredentialsSupportedPerUser : public Sub ~SubscribeAttributeDoorLockNumberOfCredentialsSupportedPerUser() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x0000001C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -38570,12 +39163,14 @@ class ReadDoorLockLanguage : public ReadAttribute { ~ReadDoorLockLanguage() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000021) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeLanguageWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.Language response %@", [value description]); if (error != nil) { @@ -38599,13 +39194,15 @@ class WriteDoorLockLanguage : public WriteAttribute { ~WriteDoorLockLanguage() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) WriteAttribute (0x00000021) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSString * _Nonnull value = [[NSString alloc] initWithBytes:mValue.data() @@ -38636,11 +39233,13 @@ class SubscribeAttributeDoorLockLanguage : public SubscribeAttribute { ~SubscribeAttributeDoorLockLanguage() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000021) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -38674,12 +39273,14 @@ class ReadDoorLockLEDSettings : public ReadAttribute { ~ReadDoorLockLEDSettings() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000022) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeLEDSettingsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.LEDSettings response %@", [value description]); if (error != nil) { @@ -38703,13 +39304,15 @@ class WriteDoorLockLEDSettings : public WriteAttribute { ~WriteDoorLockLEDSettings() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) WriteAttribute (0x00000022) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; @@ -38738,11 +39341,13 @@ class SubscribeAttributeDoorLockLEDSettings : public SubscribeAttribute { ~SubscribeAttributeDoorLockLEDSettings() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000022) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -38776,12 +39381,14 @@ class ReadDoorLockAutoRelockTime : public ReadAttribute { ~ReadDoorLockAutoRelockTime() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000023) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAutoRelockTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.AutoRelockTime response %@", [value description]); if (error != nil) { @@ -38805,13 +39412,15 @@ class WriteDoorLockAutoRelockTime : public WriteAttribute { ~WriteDoorLockAutoRelockTime() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) WriteAttribute (0x00000023) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedInt:mValue]; @@ -38840,11 +39449,13 @@ class SubscribeAttributeDoorLockAutoRelockTime : public SubscribeAttribute { ~SubscribeAttributeDoorLockAutoRelockTime() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000023) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -38878,12 +39489,14 @@ class ReadDoorLockSoundVolume : public ReadAttribute { ~ReadDoorLockSoundVolume() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000024) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeSoundVolumeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.SoundVolume response %@", [value description]); if (error != nil) { @@ -38907,13 +39520,15 @@ class WriteDoorLockSoundVolume : public WriteAttribute { ~WriteDoorLockSoundVolume() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) WriteAttribute (0x00000024) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; @@ -38942,11 +39557,13 @@ class SubscribeAttributeDoorLockSoundVolume : public SubscribeAttribute { ~SubscribeAttributeDoorLockSoundVolume() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000024) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -38980,12 +39597,14 @@ class ReadDoorLockOperatingMode : public ReadAttribute { ~ReadDoorLockOperatingMode() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000025) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeOperatingModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.OperatingMode response %@", [value description]); if (error != nil) { @@ -39009,13 +39628,15 @@ class WriteDoorLockOperatingMode : public WriteAttribute { ~WriteDoorLockOperatingMode() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) WriteAttribute (0x00000025) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; @@ -39044,11 +39665,13 @@ class SubscribeAttributeDoorLockOperatingMode : public SubscribeAttribute { ~SubscribeAttributeDoorLockOperatingMode() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000025) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -39082,12 +39705,14 @@ class ReadDoorLockSupportedOperatingModes : public ReadAttribute { ~ReadDoorLockSupportedOperatingModes() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000026) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeSupportedOperatingModesWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.SupportedOperatingModes response %@", [value description]); @@ -39109,11 +39734,13 @@ class SubscribeAttributeDoorLockSupportedOperatingModes : public SubscribeAttrib ~SubscribeAttributeDoorLockSupportedOperatingModes() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000026) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -39147,12 +39774,14 @@ class ReadDoorLockDefaultConfigurationRegister : public ReadAttribute { ~ReadDoorLockDefaultConfigurationRegister() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000027) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeDefaultConfigurationRegisterWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.DefaultConfigurationRegister response %@", [value description]); @@ -39174,11 +39803,13 @@ class SubscribeAttributeDoorLockDefaultConfigurationRegister : public SubscribeA ~SubscribeAttributeDoorLockDefaultConfigurationRegister() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000027) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -39212,12 +39843,14 @@ class ReadDoorLockEnableLocalProgramming : public ReadAttribute { ~ReadDoorLockEnableLocalProgramming() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000028) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeEnableLocalProgrammingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.EnableLocalProgramming response %@", [value description]); if (error != nil) { @@ -39241,13 +39874,15 @@ class WriteDoorLockEnableLocalProgramming : public WriteAttribute { ~WriteDoorLockEnableLocalProgramming() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) WriteAttribute (0x00000028) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithBool:mValue]; @@ -39276,11 +39911,13 @@ class SubscribeAttributeDoorLockEnableLocalProgramming : public SubscribeAttribu ~SubscribeAttributeDoorLockEnableLocalProgramming() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000028) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -39314,12 +39951,14 @@ class ReadDoorLockEnableOneTouchLocking : public ReadAttribute { ~ReadDoorLockEnableOneTouchLocking() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000029) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeEnableOneTouchLockingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.EnableOneTouchLocking response %@", [value description]); if (error != nil) { @@ -39343,13 +39982,15 @@ class WriteDoorLockEnableOneTouchLocking : public WriteAttribute { ~WriteDoorLockEnableOneTouchLocking() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) WriteAttribute (0x00000029) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithBool:mValue]; @@ -39378,11 +40019,13 @@ class SubscribeAttributeDoorLockEnableOneTouchLocking : public SubscribeAttribut ~SubscribeAttributeDoorLockEnableOneTouchLocking() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000029) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -39416,12 +40059,14 @@ class ReadDoorLockEnableInsideStatusLED : public ReadAttribute { ~ReadDoorLockEnableInsideStatusLED() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x0000002A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeEnableInsideStatusLEDWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.EnableInsideStatusLED response %@", [value description]); if (error != nil) { @@ -39445,13 +40090,15 @@ class WriteDoorLockEnableInsideStatusLED : public WriteAttribute { ~WriteDoorLockEnableInsideStatusLED() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) WriteAttribute (0x0000002A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithBool:mValue]; @@ -39480,11 +40127,13 @@ class SubscribeAttributeDoorLockEnableInsideStatusLED : public SubscribeAttribut ~SubscribeAttributeDoorLockEnableInsideStatusLED() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x0000002A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -39518,12 +40167,14 @@ class ReadDoorLockEnablePrivacyModeButton : public ReadAttribute { ~ReadDoorLockEnablePrivacyModeButton() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x0000002B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeEnablePrivacyModeButtonWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.EnablePrivacyModeButton response %@", [value description]); @@ -39548,13 +40199,15 @@ class WriteDoorLockEnablePrivacyModeButton : public WriteAttribute { ~WriteDoorLockEnablePrivacyModeButton() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) WriteAttribute (0x0000002B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithBool:mValue]; @@ -39583,11 +40236,13 @@ class SubscribeAttributeDoorLockEnablePrivacyModeButton : public SubscribeAttrib ~SubscribeAttributeDoorLockEnablePrivacyModeButton() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x0000002B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -39621,12 +40276,14 @@ class ReadDoorLockLocalProgrammingFeatures : public ReadAttribute { ~ReadDoorLockLocalProgrammingFeatures() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x0000002C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeLocalProgrammingFeaturesWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.LocalProgrammingFeatures response %@", [value description]); @@ -39651,13 +40308,15 @@ class WriteDoorLockLocalProgrammingFeatures : public WriteAttribute { ~WriteDoorLockLocalProgrammingFeatures() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) WriteAttribute (0x0000002C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; @@ -39686,11 +40345,13 @@ class SubscribeAttributeDoorLockLocalProgrammingFeatures : public SubscribeAttri ~SubscribeAttributeDoorLockLocalProgrammingFeatures() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x0000002C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -39724,12 +40385,14 @@ class ReadDoorLockWrongCodeEntryLimit : public ReadAttribute { ~ReadDoorLockWrongCodeEntryLimit() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000030) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeWrongCodeEntryLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.WrongCodeEntryLimit response %@", [value description]); if (error != nil) { @@ -39753,13 +40416,15 @@ class WriteDoorLockWrongCodeEntryLimit : public WriteAttribute { ~WriteDoorLockWrongCodeEntryLimit() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) WriteAttribute (0x00000030) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; @@ -39788,11 +40453,13 @@ class SubscribeAttributeDoorLockWrongCodeEntryLimit : public SubscribeAttribute ~SubscribeAttributeDoorLockWrongCodeEntryLimit() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000030) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -39826,12 +40493,14 @@ class ReadDoorLockUserCodeTemporaryDisableTime : public ReadAttribute { ~ReadDoorLockUserCodeTemporaryDisableTime() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000031) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeUserCodeTemporaryDisableTimeWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.UserCodeTemporaryDisableTime response %@", [value description]); @@ -39856,13 +40525,15 @@ class WriteDoorLockUserCodeTemporaryDisableTime : public WriteAttribute { ~WriteDoorLockUserCodeTemporaryDisableTime() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) WriteAttribute (0x00000031) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; @@ -39891,11 +40562,13 @@ class SubscribeAttributeDoorLockUserCodeTemporaryDisableTime : public SubscribeA ~SubscribeAttributeDoorLockUserCodeTemporaryDisableTime() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000031) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -39929,12 +40602,14 @@ class ReadDoorLockSendPINOverTheAir : public ReadAttribute { ~ReadDoorLockSendPINOverTheAir() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000032) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeSendPINOverTheAirWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.SendPINOverTheAir response %@", [value description]); if (error != nil) { @@ -39958,13 +40633,15 @@ class WriteDoorLockSendPINOverTheAir : public WriteAttribute { ~WriteDoorLockSendPINOverTheAir() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) WriteAttribute (0x00000032) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithBool:mValue]; @@ -39993,11 +40670,13 @@ class SubscribeAttributeDoorLockSendPINOverTheAir : public SubscribeAttribute { ~SubscribeAttributeDoorLockSendPINOverTheAir() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000032) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -40031,12 +40710,14 @@ class ReadDoorLockRequirePINforRemoteOperation : public ReadAttribute { ~ReadDoorLockRequirePINforRemoteOperation() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000033) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRequirePINforRemoteOperationWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.RequirePINforRemoteOperation response %@", [value description]); @@ -40061,13 +40742,15 @@ class WriteDoorLockRequirePINforRemoteOperation : public WriteAttribute { ~WriteDoorLockRequirePINforRemoteOperation() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) WriteAttribute (0x00000033) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithBool:mValue]; @@ -40096,11 +40779,13 @@ class SubscribeAttributeDoorLockRequirePINforRemoteOperation : public SubscribeA ~SubscribeAttributeDoorLockRequirePINforRemoteOperation() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000033) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -40134,12 +40819,14 @@ class ReadDoorLockExpiringUserTimeout : public ReadAttribute { ~ReadDoorLockExpiringUserTimeout() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x00000035) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeExpiringUserTimeoutWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.ExpiringUserTimeout response %@", [value description]); if (error != nil) { @@ -40163,13 +40850,15 @@ class WriteDoorLockExpiringUserTimeout : public WriteAttribute { ~WriteDoorLockExpiringUserTimeout() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) WriteAttribute (0x00000035) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; @@ -40198,11 +40887,13 @@ class SubscribeAttributeDoorLockExpiringUserTimeout : public SubscribeAttribute ~SubscribeAttributeDoorLockExpiringUserTimeout() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x00000035) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -40236,12 +40927,14 @@ class ReadDoorLockGeneratedCommandList : public ReadAttribute { ~ReadDoorLockGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -40262,11 +40955,13 @@ class SubscribeAttributeDoorLockGeneratedCommandList : public SubscribeAttribute ~SubscribeAttributeDoorLockGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -40300,12 +40995,14 @@ class ReadDoorLockAcceptedCommandList : public ReadAttribute { ~ReadDoorLockAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -40326,11 +41023,13 @@ class SubscribeAttributeDoorLockAcceptedCommandList : public SubscribeAttribute ~SubscribeAttributeDoorLockAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -40364,12 +41063,14 @@ class ReadDoorLockAttributeList : public ReadAttribute { ~ReadDoorLockAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.AttributeList response %@", [value description]); if (error != nil) { @@ -40390,11 +41091,13 @@ class SubscribeAttributeDoorLockAttributeList : public SubscribeAttribute { ~SubscribeAttributeDoorLockAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -40428,12 +41131,14 @@ class ReadDoorLockFeatureMap : public ReadAttribute { ~ReadDoorLockFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.FeatureMap response %@", [value description]); if (error != nil) { @@ -40454,11 +41159,13 @@ class SubscribeAttributeDoorLockFeatureMap : public SubscribeAttribute { ~SubscribeAttributeDoorLockFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -40492,12 +41199,14 @@ class ReadDoorLockClusterRevision : public ReadAttribute { ~ReadDoorLockClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"DoorLock.ClusterRevision response %@", [value description]); if (error != nil) { @@ -40518,11 +41227,13 @@ class SubscribeAttributeDoorLockClusterRevision : public SubscribeAttribute { ~SubscribeAttributeDoorLockClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000101) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRDoorLock * cluster = [[MTRDoorLock alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -40599,12 +41310,14 @@ class WindowCoveringUpOrOpen : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRWindowCoveringClusterUpOrOpenParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -40640,12 +41353,14 @@ class WindowCoveringDownOrClose : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) command (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRWindowCoveringClusterDownOrCloseParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -40681,12 +41396,14 @@ class WindowCoveringStopMotion : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) command (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRWindowCoveringClusterStopMotionParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -40723,12 +41440,14 @@ class WindowCoveringGoToLiftValue : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) command (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRWindowCoveringClusterGoToLiftValueParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -40767,12 +41486,14 @@ class WindowCoveringGoToLiftPercentage : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) command (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRWindowCoveringClusterGoToLiftPercentageParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -40811,12 +41532,14 @@ class WindowCoveringGoToTiltValue : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) command (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRWindowCoveringClusterGoToTiltValueParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -40855,12 +41578,14 @@ class WindowCoveringGoToTiltPercentage : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) command (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRWindowCoveringClusterGoToTiltPercentageParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -40899,12 +41624,14 @@ class ReadWindowCoveringType : public ReadAttribute { ~ReadWindowCoveringType() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.Type response %@", [value description]); if (error != nil) { @@ -40925,11 +41652,13 @@ class SubscribeAttributeWindowCoveringType : public SubscribeAttribute { ~SubscribeAttributeWindowCoveringType() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -40963,12 +41692,14 @@ class ReadWindowCoveringPhysicalClosedLimitLift : public ReadAttribute { ~ReadWindowCoveringPhysicalClosedLimitLift() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePhysicalClosedLimitLiftWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.PhysicalClosedLimitLift response %@", [value description]); @@ -40990,11 +41721,13 @@ class SubscribeAttributeWindowCoveringPhysicalClosedLimitLift : public Subscribe ~SubscribeAttributeWindowCoveringPhysicalClosedLimitLift() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -41028,12 +41761,14 @@ class ReadWindowCoveringPhysicalClosedLimitTilt : public ReadAttribute { ~ReadWindowCoveringPhysicalClosedLimitTilt() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePhysicalClosedLimitTiltWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.PhysicalClosedLimitTilt response %@", [value description]); @@ -41055,11 +41790,13 @@ class SubscribeAttributeWindowCoveringPhysicalClosedLimitTilt : public Subscribe ~SubscribeAttributeWindowCoveringPhysicalClosedLimitTilt() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -41093,12 +41830,14 @@ class ReadWindowCoveringCurrentPositionLift : public ReadAttribute { ~ReadWindowCoveringCurrentPositionLift() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeCurrentPositionLiftWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.CurrentPositionLift response %@", [value description]); if (error != nil) { @@ -41119,11 +41858,13 @@ class SubscribeAttributeWindowCoveringCurrentPositionLift : public SubscribeAttr ~SubscribeAttributeWindowCoveringCurrentPositionLift() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -41157,12 +41898,14 @@ class ReadWindowCoveringCurrentPositionTilt : public ReadAttribute { ~ReadWindowCoveringCurrentPositionTilt() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeCurrentPositionTiltWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.CurrentPositionTilt response %@", [value description]); if (error != nil) { @@ -41183,11 +41926,13 @@ class SubscribeAttributeWindowCoveringCurrentPositionTilt : public SubscribeAttr ~SubscribeAttributeWindowCoveringCurrentPositionTilt() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -41221,12 +41966,14 @@ class ReadWindowCoveringNumberOfActuationsLift : public ReadAttribute { ~ReadWindowCoveringNumberOfActuationsLift() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNumberOfActuationsLiftWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.NumberOfActuationsLift response %@", [value description]); if (error != nil) { @@ -41247,11 +41994,13 @@ class SubscribeAttributeWindowCoveringNumberOfActuationsLift : public SubscribeA ~SubscribeAttributeWindowCoveringNumberOfActuationsLift() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -41285,12 +42034,14 @@ class ReadWindowCoveringNumberOfActuationsTilt : public ReadAttribute { ~ReadWindowCoveringNumberOfActuationsTilt() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNumberOfActuationsTiltWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.NumberOfActuationsTilt response %@", [value description]); if (error != nil) { @@ -41311,11 +42062,13 @@ class SubscribeAttributeWindowCoveringNumberOfActuationsTilt : public SubscribeA ~SubscribeAttributeWindowCoveringNumberOfActuationsTilt() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -41349,12 +42102,14 @@ class ReadWindowCoveringConfigStatus : public ReadAttribute { ~ReadWindowCoveringConfigStatus() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeConfigStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.ConfigStatus response %@", [value description]); if (error != nil) { @@ -41375,11 +42130,13 @@ class SubscribeAttributeWindowCoveringConfigStatus : public SubscribeAttribute { ~SubscribeAttributeWindowCoveringConfigStatus() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -41413,12 +42170,14 @@ class ReadWindowCoveringCurrentPositionLiftPercentage : public ReadAttribute { ~ReadWindowCoveringCurrentPositionLiftPercentage() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeCurrentPositionLiftPercentageWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.CurrentPositionLiftPercentage response %@", [value description]); @@ -41440,11 +42199,13 @@ class SubscribeAttributeWindowCoveringCurrentPositionLiftPercentage : public Sub ~SubscribeAttributeWindowCoveringCurrentPositionLiftPercentage() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -41478,12 +42239,14 @@ class ReadWindowCoveringCurrentPositionTiltPercentage : public ReadAttribute { ~ReadWindowCoveringCurrentPositionTiltPercentage() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeCurrentPositionTiltPercentageWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.CurrentPositionTiltPercentage response %@", [value description]); @@ -41505,11 +42268,13 @@ class SubscribeAttributeWindowCoveringCurrentPositionTiltPercentage : public Sub ~SubscribeAttributeWindowCoveringCurrentPositionTiltPercentage() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -41543,12 +42308,14 @@ class ReadWindowCoveringOperationalStatus : public ReadAttribute { ~ReadWindowCoveringOperationalStatus() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeOperationalStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.OperationalStatus response %@", [value description]); if (error != nil) { @@ -41569,11 +42336,13 @@ class SubscribeAttributeWindowCoveringOperationalStatus : public SubscribeAttrib ~SubscribeAttributeWindowCoveringOperationalStatus() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -41607,12 +42376,14 @@ class ReadWindowCoveringTargetPositionLiftPercent100ths : public ReadAttribute { ~ReadWindowCoveringTargetPositionLiftPercent100ths() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeTargetPositionLiftPercent100thsWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.TargetPositionLiftPercent100ths response %@", [value description]); @@ -41634,11 +42405,13 @@ class SubscribeAttributeWindowCoveringTargetPositionLiftPercent100ths : public S ~SubscribeAttributeWindowCoveringTargetPositionLiftPercent100ths() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -41672,12 +42445,14 @@ class ReadWindowCoveringTargetPositionTiltPercent100ths : public ReadAttribute { ~ReadWindowCoveringTargetPositionTiltPercent100ths() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x0000000C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeTargetPositionTiltPercent100thsWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.TargetPositionTiltPercent100ths response %@", [value description]); @@ -41699,11 +42474,13 @@ class SubscribeAttributeWindowCoveringTargetPositionTiltPercent100ths : public S ~SubscribeAttributeWindowCoveringTargetPositionTiltPercent100ths() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x0000000C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -41737,12 +42514,14 @@ class ReadWindowCoveringEndProductType : public ReadAttribute { ~ReadWindowCoveringEndProductType() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x0000000D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeEndProductTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.EndProductType response %@", [value description]); if (error != nil) { @@ -41763,11 +42542,13 @@ class SubscribeAttributeWindowCoveringEndProductType : public SubscribeAttribute ~SubscribeAttributeWindowCoveringEndProductType() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x0000000D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -41801,12 +42582,14 @@ class ReadWindowCoveringCurrentPositionLiftPercent100ths : public ReadAttribute ~ReadWindowCoveringCurrentPositionLiftPercent100ths() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x0000000E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeCurrentPositionLiftPercent100thsWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.CurrentPositionLiftPercent100ths response %@", [value description]); @@ -41828,11 +42611,13 @@ class SubscribeAttributeWindowCoveringCurrentPositionLiftPercent100ths : public ~SubscribeAttributeWindowCoveringCurrentPositionLiftPercent100ths() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x0000000E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -41866,12 +42651,14 @@ class ReadWindowCoveringCurrentPositionTiltPercent100ths : public ReadAttribute ~ReadWindowCoveringCurrentPositionTiltPercent100ths() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeCurrentPositionTiltPercent100thsWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.CurrentPositionTiltPercent100ths response %@", [value description]); @@ -41893,11 +42680,13 @@ class SubscribeAttributeWindowCoveringCurrentPositionTiltPercent100ths : public ~SubscribeAttributeWindowCoveringCurrentPositionTiltPercent100ths() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -41931,12 +42720,14 @@ class ReadWindowCoveringInstalledOpenLimitLift : public ReadAttribute { ~ReadWindowCoveringInstalledOpenLimitLift() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeInstalledOpenLimitLiftWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.InstalledOpenLimitLift response %@", [value description]); if (error != nil) { @@ -41957,11 +42748,13 @@ class SubscribeAttributeWindowCoveringInstalledOpenLimitLift : public SubscribeA ~SubscribeAttributeWindowCoveringInstalledOpenLimitLift() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -41995,12 +42788,14 @@ class ReadWindowCoveringInstalledClosedLimitLift : public ReadAttribute { ~ReadWindowCoveringInstalledClosedLimitLift() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeInstalledClosedLimitLiftWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.InstalledClosedLimitLift response %@", [value description]); @@ -42022,11 +42817,13 @@ class SubscribeAttributeWindowCoveringInstalledClosedLimitLift : public Subscrib ~SubscribeAttributeWindowCoveringInstalledClosedLimitLift() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -42060,12 +42857,14 @@ class ReadWindowCoveringInstalledOpenLimitTilt : public ReadAttribute { ~ReadWindowCoveringInstalledOpenLimitTilt() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeInstalledOpenLimitTiltWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.InstalledOpenLimitTilt response %@", [value description]); if (error != nil) { @@ -42086,11 +42885,13 @@ class SubscribeAttributeWindowCoveringInstalledOpenLimitTilt : public SubscribeA ~SubscribeAttributeWindowCoveringInstalledOpenLimitTilt() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -42124,12 +42925,14 @@ class ReadWindowCoveringInstalledClosedLimitTilt : public ReadAttribute { ~ReadWindowCoveringInstalledClosedLimitTilt() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeInstalledClosedLimitTiltWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.InstalledClosedLimitTilt response %@", [value description]); @@ -42151,11 +42954,13 @@ class SubscribeAttributeWindowCoveringInstalledClosedLimitTilt : public Subscrib ~SubscribeAttributeWindowCoveringInstalledClosedLimitTilt() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -42189,12 +42994,14 @@ class ReadWindowCoveringMode : public ReadAttribute { ~ReadWindowCoveringMode() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x00000017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.Mode response %@", [value description]); if (error != nil) { @@ -42218,13 +43025,15 @@ class WriteWindowCoveringMode : public WriteAttribute { ~WriteWindowCoveringMode() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) WriteAttribute (0x00000017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; @@ -42253,11 +43062,13 @@ class SubscribeAttributeWindowCoveringMode : public SubscribeAttribute { ~SubscribeAttributeWindowCoveringMode() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x00000017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -42291,12 +43102,14 @@ class ReadWindowCoveringSafetyStatus : public ReadAttribute { ~ReadWindowCoveringSafetyStatus() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x0000001A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeSafetyStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.SafetyStatus response %@", [value description]); if (error != nil) { @@ -42317,11 +43130,13 @@ class SubscribeAttributeWindowCoveringSafetyStatus : public SubscribeAttribute { ~SubscribeAttributeWindowCoveringSafetyStatus() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x0000001A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -42355,12 +43170,14 @@ class ReadWindowCoveringGeneratedCommandList : public ReadAttribute { ~ReadWindowCoveringGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -42381,11 +43198,13 @@ class SubscribeAttributeWindowCoveringGeneratedCommandList : public SubscribeAtt ~SubscribeAttributeWindowCoveringGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -42419,12 +43238,14 @@ class ReadWindowCoveringAcceptedCommandList : public ReadAttribute { ~ReadWindowCoveringAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -42445,11 +43266,13 @@ class SubscribeAttributeWindowCoveringAcceptedCommandList : public SubscribeAttr ~SubscribeAttributeWindowCoveringAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -42483,12 +43306,14 @@ class ReadWindowCoveringAttributeList : public ReadAttribute { ~ReadWindowCoveringAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.AttributeList response %@", [value description]); if (error != nil) { @@ -42509,11 +43334,13 @@ class SubscribeAttributeWindowCoveringAttributeList : public SubscribeAttribute ~SubscribeAttributeWindowCoveringAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -42547,12 +43374,14 @@ class ReadWindowCoveringFeatureMap : public ReadAttribute { ~ReadWindowCoveringFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.FeatureMap response %@", [value description]); if (error != nil) { @@ -42573,11 +43402,13 @@ class SubscribeAttributeWindowCoveringFeatureMap : public SubscribeAttribute { ~SubscribeAttributeWindowCoveringFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -42611,12 +43442,14 @@ class ReadWindowCoveringClusterRevision : public ReadAttribute { ~ReadWindowCoveringClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WindowCovering.ClusterRevision response %@", [value description]); if (error != nil) { @@ -42637,11 +43470,13 @@ class SubscribeAttributeWindowCoveringClusterRevision : public SubscribeAttribut ~SubscribeAttributeWindowCoveringClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000102) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWindowCovering * cluster = [[MTRWindowCovering alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -42702,12 +43537,14 @@ class BarrierControlBarrierControlGoToPercent : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBarrierControl * cluster = [[MTRBaseClusterBarrierControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRBarrierControlClusterBarrierControlGoToPercentParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -42745,12 +43582,14 @@ class BarrierControlBarrierControlStop : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) command (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBarrierControl * cluster = [[MTRBaseClusterBarrierControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRBarrierControlClusterBarrierControlStopParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -42787,12 +43626,14 @@ class ReadBarrierControlBarrierMovingState : public ReadAttribute { ~ReadBarrierControlBarrierMovingState() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBarrierControl * cluster = [[MTRBaseClusterBarrierControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeBarrierMovingStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BarrierControl.BarrierMovingState response %@", [value description]); if (error != nil) { @@ -42813,11 +43654,13 @@ class SubscribeAttributeBarrierControlBarrierMovingState : public SubscribeAttri ~SubscribeAttributeBarrierControlBarrierMovingState() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBarrierControl * cluster = [[MTRBaseClusterBarrierControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -42851,12 +43694,14 @@ class ReadBarrierControlBarrierSafetyStatus : public ReadAttribute { ~ReadBarrierControlBarrierSafetyStatus() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBarrierControl * cluster = [[MTRBaseClusterBarrierControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeBarrierSafetyStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BarrierControl.BarrierSafetyStatus response %@", [value description]); if (error != nil) { @@ -42877,11 +43722,13 @@ class SubscribeAttributeBarrierControlBarrierSafetyStatus : public SubscribeAttr ~SubscribeAttributeBarrierControlBarrierSafetyStatus() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBarrierControl * cluster = [[MTRBaseClusterBarrierControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -42915,12 +43762,14 @@ class ReadBarrierControlBarrierCapabilities : public ReadAttribute { ~ReadBarrierControlBarrierCapabilities() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBarrierControl * cluster = [[MTRBaseClusterBarrierControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeBarrierCapabilitiesWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BarrierControl.BarrierCapabilities response %@", [value description]); if (error != nil) { @@ -42941,11 +43790,13 @@ class SubscribeAttributeBarrierControlBarrierCapabilities : public SubscribeAttr ~SubscribeAttributeBarrierControlBarrierCapabilities() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBarrierControl * cluster = [[MTRBaseClusterBarrierControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -42979,12 +43830,14 @@ class ReadBarrierControlBarrierOpenEvents : public ReadAttribute { ~ReadBarrierControlBarrierOpenEvents() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBarrierControl * cluster = [[MTRBaseClusterBarrierControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeBarrierOpenEventsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BarrierControl.BarrierOpenEvents response %@", [value description]); if (error != nil) { @@ -43008,13 +43861,15 @@ class WriteBarrierControlBarrierOpenEvents : public WriteAttribute { ~WriteBarrierControlBarrierOpenEvents() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) WriteAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBarrierControl * cluster = [[MTRBaseClusterBarrierControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; @@ -43043,11 +43898,13 @@ class SubscribeAttributeBarrierControlBarrierOpenEvents : public SubscribeAttrib ~SubscribeAttributeBarrierControlBarrierOpenEvents() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBarrierControl * cluster = [[MTRBaseClusterBarrierControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -43081,12 +43938,14 @@ class ReadBarrierControlBarrierCloseEvents : public ReadAttribute { ~ReadBarrierControlBarrierCloseEvents() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReadAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBarrierControl * cluster = [[MTRBaseClusterBarrierControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeBarrierCloseEventsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BarrierControl.BarrierCloseEvents response %@", [value description]); if (error != nil) { @@ -43110,13 +43969,15 @@ class WriteBarrierControlBarrierCloseEvents : public WriteAttribute { ~WriteBarrierControlBarrierCloseEvents() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) WriteAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBarrierControl * cluster = [[MTRBaseClusterBarrierControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; @@ -43145,11 +44006,13 @@ class SubscribeAttributeBarrierControlBarrierCloseEvents : public SubscribeAttri ~SubscribeAttributeBarrierControlBarrierCloseEvents() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReportAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBarrierControl * cluster = [[MTRBaseClusterBarrierControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -43183,12 +44046,14 @@ class ReadBarrierControlBarrierCommandOpenEvents : public ReadAttribute { ~ReadBarrierControlBarrierCommandOpenEvents() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReadAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBarrierControl * cluster = [[MTRBaseClusterBarrierControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeBarrierCommandOpenEventsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BarrierControl.BarrierCommandOpenEvents response %@", [value description]); @@ -43213,13 +44078,15 @@ class WriteBarrierControlBarrierCommandOpenEvents : public WriteAttribute { ~WriteBarrierControlBarrierCommandOpenEvents() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) WriteAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBarrierControl * cluster = [[MTRBaseClusterBarrierControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; @@ -43248,11 +44115,13 @@ class SubscribeAttributeBarrierControlBarrierCommandOpenEvents : public Subscrib ~SubscribeAttributeBarrierControlBarrierCommandOpenEvents() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReportAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBarrierControl * cluster = [[MTRBaseClusterBarrierControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -43286,12 +44155,14 @@ class ReadBarrierControlBarrierCommandCloseEvents : public ReadAttribute { ~ReadBarrierControlBarrierCommandCloseEvents() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReadAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBarrierControl * cluster = [[MTRBaseClusterBarrierControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeBarrierCommandCloseEventsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BarrierControl.BarrierCommandCloseEvents response %@", [value description]); @@ -43316,13 +44187,15 @@ class WriteBarrierControlBarrierCommandCloseEvents : public WriteAttribute { ~WriteBarrierControlBarrierCommandCloseEvents() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) WriteAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBarrierControl * cluster = [[MTRBaseClusterBarrierControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; @@ -43351,11 +44224,13 @@ class SubscribeAttributeBarrierControlBarrierCommandCloseEvents : public Subscri ~SubscribeAttributeBarrierControlBarrierCommandCloseEvents() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReportAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBarrierControl * cluster = [[MTRBaseClusterBarrierControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -43389,12 +44264,14 @@ class ReadBarrierControlBarrierOpenPeriod : public ReadAttribute { ~ReadBarrierControlBarrierOpenPeriod() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReadAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBarrierControl * cluster = [[MTRBaseClusterBarrierControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeBarrierOpenPeriodWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BarrierControl.BarrierOpenPeriod response %@", [value description]); if (error != nil) { @@ -43418,13 +44295,15 @@ class WriteBarrierControlBarrierOpenPeriod : public WriteAttribute { ~WriteBarrierControlBarrierOpenPeriod() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) WriteAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBarrierControl * cluster = [[MTRBaseClusterBarrierControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; @@ -43453,11 +44332,13 @@ class SubscribeAttributeBarrierControlBarrierOpenPeriod : public SubscribeAttrib ~SubscribeAttributeBarrierControlBarrierOpenPeriod() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReportAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBarrierControl * cluster = [[MTRBaseClusterBarrierControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -43491,12 +44372,14 @@ class ReadBarrierControlBarrierClosePeriod : public ReadAttribute { ~ReadBarrierControlBarrierClosePeriod() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReadAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBarrierControl * cluster = [[MTRBaseClusterBarrierControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeBarrierClosePeriodWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BarrierControl.BarrierClosePeriod response %@", [value description]); if (error != nil) { @@ -43520,13 +44403,15 @@ class WriteBarrierControlBarrierClosePeriod : public WriteAttribute { ~WriteBarrierControlBarrierClosePeriod() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) WriteAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBarrierControl * cluster = [[MTRBaseClusterBarrierControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; @@ -43555,11 +44440,13 @@ class SubscribeAttributeBarrierControlBarrierClosePeriod : public SubscribeAttri ~SubscribeAttributeBarrierControlBarrierClosePeriod() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReportAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBarrierControl * cluster = [[MTRBaseClusterBarrierControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -43593,12 +44480,14 @@ class ReadBarrierControlBarrierPosition : public ReadAttribute { ~ReadBarrierControlBarrierPosition() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReadAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBarrierControl * cluster = [[MTRBaseClusterBarrierControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeBarrierPositionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BarrierControl.BarrierPosition response %@", [value description]); if (error != nil) { @@ -43619,11 +44508,13 @@ class SubscribeAttributeBarrierControlBarrierPosition : public SubscribeAttribut ~SubscribeAttributeBarrierControlBarrierPosition() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReportAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBarrierControl * cluster = [[MTRBaseClusterBarrierControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -43657,12 +44548,14 @@ class ReadBarrierControlGeneratedCommandList : public ReadAttribute { ~ReadBarrierControlGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBarrierControl * cluster = [[MTRBaseClusterBarrierControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"BarrierControl.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -43683,11 +44576,13 @@ class SubscribeAttributeBarrierControlGeneratedCommandList : public SubscribeAtt ~SubscribeAttributeBarrierControlGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBarrierControl * cluster = [[MTRBaseClusterBarrierControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -43721,12 +44616,14 @@ class ReadBarrierControlAcceptedCommandList : public ReadAttribute { ~ReadBarrierControlAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBarrierControl * cluster = [[MTRBaseClusterBarrierControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"BarrierControl.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -43747,11 +44644,13 @@ class SubscribeAttributeBarrierControlAcceptedCommandList : public SubscribeAttr ~SubscribeAttributeBarrierControlAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBarrierControl * cluster = [[MTRBaseClusterBarrierControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -43785,12 +44684,14 @@ class ReadBarrierControlAttributeList : public ReadAttribute { ~ReadBarrierControlAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBarrierControl * cluster = [[MTRBaseClusterBarrierControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"BarrierControl.AttributeList response %@", [value description]); if (error != nil) { @@ -43811,11 +44712,13 @@ class SubscribeAttributeBarrierControlAttributeList : public SubscribeAttribute ~SubscribeAttributeBarrierControlAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBarrierControl * cluster = [[MTRBaseClusterBarrierControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -43849,12 +44752,14 @@ class ReadBarrierControlFeatureMap : public ReadAttribute { ~ReadBarrierControlFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBarrierControl * cluster = [[MTRBaseClusterBarrierControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BarrierControl.FeatureMap response %@", [value description]); if (error != nil) { @@ -43875,11 +44780,13 @@ class SubscribeAttributeBarrierControlFeatureMap : public SubscribeAttribute { ~SubscribeAttributeBarrierControlFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBarrierControl * cluster = [[MTRBaseClusterBarrierControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -43913,12 +44820,14 @@ class ReadBarrierControlClusterRevision : public ReadAttribute { ~ReadBarrierControlClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBarrierControl * cluster = [[MTRBaseClusterBarrierControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"BarrierControl.ClusterRevision response %@", [value description]); if (error != nil) { @@ -43939,11 +44848,13 @@ class SubscribeAttributeBarrierControlClusterRevision : public SubscribeAttribut ~SubscribeAttributeBarrierControlClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000103) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRBarrierControl * cluster = [[MTRBarrierControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterBarrierControl * cluster = [[MTRBaseClusterBarrierControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -44032,14 +44943,13 @@ class ReadPumpConfigurationAndControlMaxPressure : public ReadAttribute { ~ReadPumpConfigurationAndControlMaxPressure() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeMaxPressureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.MaxPressure response %@", [value description]); if (error != nil) { @@ -44060,13 +44970,12 @@ class SubscribeAttributePumpConfigurationAndControlMaxPressure : public Subscrib ~SubscribeAttributePumpConfigurationAndControlMaxPressure() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -44100,14 +45009,13 @@ class ReadPumpConfigurationAndControlMaxSpeed : public ReadAttribute { ~ReadPumpConfigurationAndControlMaxSpeed() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeMaxSpeedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.MaxSpeed response %@", [value description]); if (error != nil) { @@ -44128,13 +45036,12 @@ class SubscribeAttributePumpConfigurationAndControlMaxSpeed : public SubscribeAt ~SubscribeAttributePumpConfigurationAndControlMaxSpeed() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -44168,14 +45075,13 @@ class ReadPumpConfigurationAndControlMaxFlow : public ReadAttribute { ~ReadPumpConfigurationAndControlMaxFlow() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeMaxFlowWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.MaxFlow response %@", [value description]); if (error != nil) { @@ -44196,13 +45102,12 @@ class SubscribeAttributePumpConfigurationAndControlMaxFlow : public SubscribeAtt ~SubscribeAttributePumpConfigurationAndControlMaxFlow() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -44236,14 +45141,13 @@ class ReadPumpConfigurationAndControlMinConstPressure : public ReadAttribute { ~ReadPumpConfigurationAndControlMinConstPressure() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeMinConstPressureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.MinConstPressure response %@", [value description]); if (error != nil) { @@ -44264,13 +45168,12 @@ class SubscribeAttributePumpConfigurationAndControlMinConstPressure : public Sub ~SubscribeAttributePumpConfigurationAndControlMinConstPressure() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -44304,14 +45207,13 @@ class ReadPumpConfigurationAndControlMaxConstPressure : public ReadAttribute { ~ReadPumpConfigurationAndControlMaxConstPressure() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeMaxConstPressureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.MaxConstPressure response %@", [value description]); if (error != nil) { @@ -44332,13 +45234,12 @@ class SubscribeAttributePumpConfigurationAndControlMaxConstPressure : public Sub ~SubscribeAttributePumpConfigurationAndControlMaxConstPressure() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -44372,14 +45273,13 @@ class ReadPumpConfigurationAndControlMinCompPressure : public ReadAttribute { ~ReadPumpConfigurationAndControlMinCompPressure() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeMinCompPressureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.MinCompPressure response %@", [value description]); if (error != nil) { @@ -44400,13 +45300,12 @@ class SubscribeAttributePumpConfigurationAndControlMinCompPressure : public Subs ~SubscribeAttributePumpConfigurationAndControlMinCompPressure() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -44440,14 +45339,13 @@ class ReadPumpConfigurationAndControlMaxCompPressure : public ReadAttribute { ~ReadPumpConfigurationAndControlMaxCompPressure() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeMaxCompPressureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.MaxCompPressure response %@", [value description]); if (error != nil) { @@ -44468,13 +45366,12 @@ class SubscribeAttributePumpConfigurationAndControlMaxCompPressure : public Subs ~SubscribeAttributePumpConfigurationAndControlMaxCompPressure() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -44508,14 +45405,13 @@ class ReadPumpConfigurationAndControlMinConstSpeed : public ReadAttribute { ~ReadPumpConfigurationAndControlMinConstSpeed() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeMinConstSpeedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.MinConstSpeed response %@", [value description]); if (error != nil) { @@ -44536,13 +45432,12 @@ class SubscribeAttributePumpConfigurationAndControlMinConstSpeed : public Subscr ~SubscribeAttributePumpConfigurationAndControlMinConstSpeed() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -44576,14 +45471,13 @@ class ReadPumpConfigurationAndControlMaxConstSpeed : public ReadAttribute { ~ReadPumpConfigurationAndControlMaxConstSpeed() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeMaxConstSpeedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.MaxConstSpeed response %@", [value description]); if (error != nil) { @@ -44604,13 +45498,12 @@ class SubscribeAttributePumpConfigurationAndControlMaxConstSpeed : public Subscr ~SubscribeAttributePumpConfigurationAndControlMaxConstSpeed() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -44644,14 +45537,13 @@ class ReadPumpConfigurationAndControlMinConstFlow : public ReadAttribute { ~ReadPumpConfigurationAndControlMinConstFlow() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeMinConstFlowWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.MinConstFlow response %@", [value description]); if (error != nil) { @@ -44672,13 +45564,12 @@ class SubscribeAttributePumpConfigurationAndControlMinConstFlow : public Subscri ~SubscribeAttributePumpConfigurationAndControlMinConstFlow() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -44712,14 +45603,13 @@ class ReadPumpConfigurationAndControlMaxConstFlow : public ReadAttribute { ~ReadPumpConfigurationAndControlMaxConstFlow() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeMaxConstFlowWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.MaxConstFlow response %@", [value description]); if (error != nil) { @@ -44740,13 +45630,12 @@ class SubscribeAttributePumpConfigurationAndControlMaxConstFlow : public Subscri ~SubscribeAttributePumpConfigurationAndControlMaxConstFlow() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -44780,14 +45669,13 @@ class ReadPumpConfigurationAndControlMinConstTemp : public ReadAttribute { ~ReadPumpConfigurationAndControlMinConstTemp() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeMinConstTempWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.MinConstTemp response %@", [value description]); if (error != nil) { @@ -44808,13 +45696,12 @@ class SubscribeAttributePumpConfigurationAndControlMinConstTemp : public Subscri ~SubscribeAttributePumpConfigurationAndControlMinConstTemp() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -44848,14 +45735,13 @@ class ReadPumpConfigurationAndControlMaxConstTemp : public ReadAttribute { ~ReadPumpConfigurationAndControlMaxConstTemp() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x0000000C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeMaxConstTempWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.MaxConstTemp response %@", [value description]); if (error != nil) { @@ -44876,13 +45762,12 @@ class SubscribeAttributePumpConfigurationAndControlMaxConstTemp : public Subscri ~SubscribeAttributePumpConfigurationAndControlMaxConstTemp() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x0000000C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -44916,14 +45801,13 @@ class ReadPumpConfigurationAndControlPumpStatus : public ReadAttribute { ~ReadPumpConfigurationAndControlPumpStatus() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePumpStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.PumpStatus response %@", [value description]); if (error != nil) { @@ -44944,13 +45828,12 @@ class SubscribeAttributePumpConfigurationAndControlPumpStatus : public Subscribe ~SubscribeAttributePumpConfigurationAndControlPumpStatus() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -44984,14 +45867,13 @@ class ReadPumpConfigurationAndControlEffectiveOperationMode : public ReadAttribu ~ReadPumpConfigurationAndControlEffectiveOperationMode() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeEffectiveOperationModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.EffectiveOperationMode response %@", [value description]); if (error != nil) { @@ -45012,13 +45894,12 @@ class SubscribeAttributePumpConfigurationAndControlEffectiveOperationMode : publ ~SubscribeAttributePumpConfigurationAndControlEffectiveOperationMode() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -45052,14 +45933,13 @@ class ReadPumpConfigurationAndControlEffectiveControlMode : public ReadAttribute ~ReadPumpConfigurationAndControlEffectiveControlMode() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeEffectiveControlModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.EffectiveControlMode response %@", [value description]); if (error != nil) { @@ -45080,13 +45960,12 @@ class SubscribeAttributePumpConfigurationAndControlEffectiveControlMode : public ~SubscribeAttributePumpConfigurationAndControlEffectiveControlMode() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -45120,14 +45999,13 @@ class ReadPumpConfigurationAndControlCapacity : public ReadAttribute { ~ReadPumpConfigurationAndControlCapacity() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeCapacityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.Capacity response %@", [value description]); if (error != nil) { @@ -45148,13 +46026,12 @@ class SubscribeAttributePumpConfigurationAndControlCapacity : public SubscribeAt ~SubscribeAttributePumpConfigurationAndControlCapacity() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -45188,14 +46065,13 @@ class ReadPumpConfigurationAndControlSpeed : public ReadAttribute { ~ReadPumpConfigurationAndControlSpeed() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x00000014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeSpeedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.Speed response %@", [value description]); if (error != nil) { @@ -45216,13 +46092,12 @@ class SubscribeAttributePumpConfigurationAndControlSpeed : public SubscribeAttri ~SubscribeAttributePumpConfigurationAndControlSpeed() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x00000014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -45256,14 +46131,13 @@ class ReadPumpConfigurationAndControlLifetimeRunningHours : public ReadAttribute ~ReadPumpConfigurationAndControlLifetimeRunningHours() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x00000015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeLifetimeRunningHoursWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.LifetimeRunningHours response %@", [value description]); if (error != nil) { @@ -45287,15 +46161,14 @@ class WritePumpConfigurationAndControlLifetimeRunningHours : public WriteAttribu ~WritePumpConfigurationAndControlLifetimeRunningHours() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) WriteAttribute (0x00000015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithUnsignedInt:mValue]; @@ -45325,13 +46198,12 @@ class SubscribeAttributePumpConfigurationAndControlLifetimeRunningHours : public ~SubscribeAttributePumpConfigurationAndControlLifetimeRunningHours() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x00000015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -45365,14 +46237,13 @@ class ReadPumpConfigurationAndControlPower : public ReadAttribute { ~ReadPumpConfigurationAndControlPower() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x00000016) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributePowerWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.Power response %@", [value description]); if (error != nil) { @@ -45393,13 +46264,12 @@ class SubscribeAttributePumpConfigurationAndControlPower : public SubscribeAttri ~SubscribeAttributePumpConfigurationAndControlPower() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x00000016) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -45433,14 +46303,13 @@ class ReadPumpConfigurationAndControlLifetimeEnergyConsumed : public ReadAttribu ~ReadPumpConfigurationAndControlLifetimeEnergyConsumed() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x00000017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeLifetimeEnergyConsumedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.LifetimeEnergyConsumed response %@", [value description]); if (error != nil) { @@ -45464,15 +46333,14 @@ class WritePumpConfigurationAndControlLifetimeEnergyConsumed : public WriteAttri ~WritePumpConfigurationAndControlLifetimeEnergyConsumed() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) WriteAttribute (0x00000017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithUnsignedInt:mValue]; @@ -45502,13 +46370,12 @@ class SubscribeAttributePumpConfigurationAndControlLifetimeEnergyConsumed : publ ~SubscribeAttributePumpConfigurationAndControlLifetimeEnergyConsumed() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x00000017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -45542,14 +46409,13 @@ class ReadPumpConfigurationAndControlOperationMode : public ReadAttribute { ~ReadPumpConfigurationAndControlOperationMode() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x00000020) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeOperationModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.OperationMode response %@", [value description]); if (error != nil) { @@ -45573,15 +46439,14 @@ class WritePumpConfigurationAndControlOperationMode : public WriteAttribute { ~WritePumpConfigurationAndControlOperationMode() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) WriteAttribute (0x00000020) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; @@ -45610,13 +46475,12 @@ class SubscribeAttributePumpConfigurationAndControlOperationMode : public Subscr ~SubscribeAttributePumpConfigurationAndControlOperationMode() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x00000020) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -45650,14 +46514,13 @@ class ReadPumpConfigurationAndControlControlMode : public ReadAttribute { ~ReadPumpConfigurationAndControlControlMode() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x00000021) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeControlModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.ControlMode response %@", [value description]); if (error != nil) { @@ -45681,15 +46544,14 @@ class WritePumpConfigurationAndControlControlMode : public WriteAttribute { ~WritePumpConfigurationAndControlControlMode() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) WriteAttribute (0x00000021) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; @@ -45718,13 +46580,12 @@ class SubscribeAttributePumpConfigurationAndControlControlMode : public Subscrib ~SubscribeAttributePumpConfigurationAndControlControlMode() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x00000021) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -45758,14 +46619,13 @@ class ReadPumpConfigurationAndControlGeneratedCommandList : public ReadAttribute ~ReadPumpConfigurationAndControlGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -45786,13 +46646,12 @@ class SubscribeAttributePumpConfigurationAndControlGeneratedCommandList : public ~SubscribeAttributePumpConfigurationAndControlGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -45826,14 +46685,13 @@ class ReadPumpConfigurationAndControlAcceptedCommandList : public ReadAttribute ~ReadPumpConfigurationAndControlAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -45854,13 +46712,12 @@ class SubscribeAttributePumpConfigurationAndControlAcceptedCommandList : public ~SubscribeAttributePumpConfigurationAndControlAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -45894,14 +46751,13 @@ class ReadPumpConfigurationAndControlAttributeList : public ReadAttribute { ~ReadPumpConfigurationAndControlAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.AttributeList response %@", [value description]); if (error != nil) { @@ -45922,13 +46778,12 @@ class SubscribeAttributePumpConfigurationAndControlAttributeList : public Subscr ~SubscribeAttributePumpConfigurationAndControlAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -45962,14 +46817,13 @@ class ReadPumpConfigurationAndControlFeatureMap : public ReadAttribute { ~ReadPumpConfigurationAndControlFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.FeatureMap response %@", [value description]); if (error != nil) { @@ -45990,13 +46844,12 @@ class SubscribeAttributePumpConfigurationAndControlFeatureMap : public Subscribe ~SubscribeAttributePumpConfigurationAndControlFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -46030,14 +46883,13 @@ class ReadPumpConfigurationAndControlClusterRevision : public ReadAttribute { ~ReadPumpConfigurationAndControlClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PumpConfigurationAndControl.ClusterRevision response %@", [value description]); if (error != nil) { @@ -46058,13 +46910,12 @@ class SubscribeAttributePumpConfigurationAndControlClusterRevision : public Subs ~SubscribeAttributePumpConfigurationAndControlClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000200) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPumpConfigurationAndControl * cluster = [[MTRPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -46167,12 +47018,14 @@ class ThermostatSetpointRaiseLower : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRThermostatClusterSetpointRaiseLowerParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -46216,12 +47069,14 @@ class ThermostatSetWeeklySchedule : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) command (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRThermostatClusterSetWeeklyScheduleParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -46286,12 +47141,14 @@ class ThermostatGetWeeklySchedule : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) command (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRThermostatClusterGetWeeklyScheduleParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -46332,12 +47189,14 @@ class ThermostatClearWeeklySchedule : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) command (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRThermostatClusterClearWeeklyScheduleParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -46374,12 +47233,14 @@ class ReadThermostatLocalTemperature : public ReadAttribute { ~ReadThermostatLocalTemperature() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeLocalTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.LocalTemperature response %@", [value description]); if (error != nil) { @@ -46400,11 +47261,13 @@ class SubscribeAttributeThermostatLocalTemperature : public SubscribeAttribute { ~SubscribeAttributeThermostatLocalTemperature() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -46438,12 +47301,14 @@ class ReadThermostatOutdoorTemperature : public ReadAttribute { ~ReadThermostatOutdoorTemperature() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeOutdoorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.OutdoorTemperature response %@", [value description]); if (error != nil) { @@ -46464,11 +47329,13 @@ class SubscribeAttributeThermostatOutdoorTemperature : public SubscribeAttribute ~SubscribeAttributeThermostatOutdoorTemperature() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -46502,12 +47369,14 @@ class ReadThermostatOccupancy : public ReadAttribute { ~ReadThermostatOccupancy() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeOccupancyWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.Occupancy response %@", [value description]); if (error != nil) { @@ -46528,11 +47397,13 @@ class SubscribeAttributeThermostatOccupancy : public SubscribeAttribute { ~SubscribeAttributeThermostatOccupancy() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -46566,12 +47437,14 @@ class ReadThermostatAbsMinHeatSetpointLimit : public ReadAttribute { ~ReadThermostatAbsMinHeatSetpointLimit() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAbsMinHeatSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.AbsMinHeatSetpointLimit response %@", [value description]); @@ -46593,11 +47466,13 @@ class SubscribeAttributeThermostatAbsMinHeatSetpointLimit : public SubscribeAttr ~SubscribeAttributeThermostatAbsMinHeatSetpointLimit() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -46631,12 +47506,14 @@ class ReadThermostatAbsMaxHeatSetpointLimit : public ReadAttribute { ~ReadThermostatAbsMaxHeatSetpointLimit() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAbsMaxHeatSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.AbsMaxHeatSetpointLimit response %@", [value description]); @@ -46658,11 +47535,13 @@ class SubscribeAttributeThermostatAbsMaxHeatSetpointLimit : public SubscribeAttr ~SubscribeAttributeThermostatAbsMaxHeatSetpointLimit() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -46696,12 +47575,14 @@ class ReadThermostatAbsMinCoolSetpointLimit : public ReadAttribute { ~ReadThermostatAbsMinCoolSetpointLimit() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAbsMinCoolSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.AbsMinCoolSetpointLimit response %@", [value description]); @@ -46723,11 +47604,13 @@ class SubscribeAttributeThermostatAbsMinCoolSetpointLimit : public SubscribeAttr ~SubscribeAttributeThermostatAbsMinCoolSetpointLimit() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -46761,12 +47644,14 @@ class ReadThermostatAbsMaxCoolSetpointLimit : public ReadAttribute { ~ReadThermostatAbsMaxCoolSetpointLimit() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAbsMaxCoolSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.AbsMaxCoolSetpointLimit response %@", [value description]); @@ -46788,11 +47673,13 @@ class SubscribeAttributeThermostatAbsMaxCoolSetpointLimit : public SubscribeAttr ~SubscribeAttributeThermostatAbsMaxCoolSetpointLimit() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -46826,12 +47713,14 @@ class ReadThermostatPICoolingDemand : public ReadAttribute { ~ReadThermostatPICoolingDemand() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePICoolingDemandWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.PICoolingDemand response %@", [value description]); if (error != nil) { @@ -46852,11 +47741,13 @@ class SubscribeAttributeThermostatPICoolingDemand : public SubscribeAttribute { ~SubscribeAttributeThermostatPICoolingDemand() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -46890,12 +47781,14 @@ class ReadThermostatPIHeatingDemand : public ReadAttribute { ~ReadThermostatPIHeatingDemand() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePIHeatingDemandWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.PIHeatingDemand response %@", [value description]); if (error != nil) { @@ -46916,11 +47809,13 @@ class SubscribeAttributeThermostatPIHeatingDemand : public SubscribeAttribute { ~SubscribeAttributeThermostatPIHeatingDemand() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -46954,12 +47849,14 @@ class ReadThermostatHVACSystemTypeConfiguration : public ReadAttribute { ~ReadThermostatHVACSystemTypeConfiguration() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeHVACSystemTypeConfigurationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.HVACSystemTypeConfiguration response %@", [value description]); @@ -46984,13 +47881,15 @@ class WriteThermostatHVACSystemTypeConfiguration : public WriteAttribute { ~WriteThermostatHVACSystemTypeConfiguration() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; @@ -47019,11 +47918,13 @@ class SubscribeAttributeThermostatHVACSystemTypeConfiguration : public Subscribe ~SubscribeAttributeThermostatHVACSystemTypeConfiguration() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -47057,12 +47958,14 @@ class ReadThermostatLocalTemperatureCalibration : public ReadAttribute { ~ReadThermostatLocalTemperatureCalibration() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeLocalTemperatureCalibrationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.LocalTemperatureCalibration response %@", [value description]); @@ -47087,13 +47990,15 @@ class WriteThermostatLocalTemperatureCalibration : public WriteAttribute { ~WriteThermostatLocalTemperatureCalibration() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithChar:mValue]; @@ -47122,11 +48027,13 @@ class SubscribeAttributeThermostatLocalTemperatureCalibration : public Subscribe ~SubscribeAttributeThermostatLocalTemperatureCalibration() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -47160,12 +48067,14 @@ class ReadThermostatOccupiedCoolingSetpoint : public ReadAttribute { ~ReadThermostatOccupiedCoolingSetpoint() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeOccupiedCoolingSetpointWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.OccupiedCoolingSetpoint response %@", [value description]); @@ -47190,13 +48099,15 @@ class WriteThermostatOccupiedCoolingSetpoint : public WriteAttribute { ~WriteThermostatOccupiedCoolingSetpoint() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithShort:mValue]; @@ -47225,11 +48136,13 @@ class SubscribeAttributeThermostatOccupiedCoolingSetpoint : public SubscribeAttr ~SubscribeAttributeThermostatOccupiedCoolingSetpoint() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -47263,12 +48176,14 @@ class ReadThermostatOccupiedHeatingSetpoint : public ReadAttribute { ~ReadThermostatOccupiedHeatingSetpoint() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeOccupiedHeatingSetpointWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.OccupiedHeatingSetpoint response %@", [value description]); @@ -47293,13 +48208,15 @@ class WriteThermostatOccupiedHeatingSetpoint : public WriteAttribute { ~WriteThermostatOccupiedHeatingSetpoint() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithShort:mValue]; @@ -47328,11 +48245,13 @@ class SubscribeAttributeThermostatOccupiedHeatingSetpoint : public SubscribeAttr ~SubscribeAttributeThermostatOccupiedHeatingSetpoint() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -47366,12 +48285,14 @@ class ReadThermostatUnoccupiedCoolingSetpoint : public ReadAttribute { ~ReadThermostatUnoccupiedCoolingSetpoint() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeUnoccupiedCoolingSetpointWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.UnoccupiedCoolingSetpoint response %@", [value description]); @@ -47396,13 +48317,15 @@ class WriteThermostatUnoccupiedCoolingSetpoint : public WriteAttribute { ~WriteThermostatUnoccupiedCoolingSetpoint() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithShort:mValue]; @@ -47431,11 +48354,13 @@ class SubscribeAttributeThermostatUnoccupiedCoolingSetpoint : public SubscribeAt ~SubscribeAttributeThermostatUnoccupiedCoolingSetpoint() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -47469,12 +48394,14 @@ class ReadThermostatUnoccupiedHeatingSetpoint : public ReadAttribute { ~ReadThermostatUnoccupiedHeatingSetpoint() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeUnoccupiedHeatingSetpointWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.UnoccupiedHeatingSetpoint response %@", [value description]); @@ -47499,13 +48426,15 @@ class WriteThermostatUnoccupiedHeatingSetpoint : public WriteAttribute { ~WriteThermostatUnoccupiedHeatingSetpoint() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithShort:mValue]; @@ -47534,11 +48463,13 @@ class SubscribeAttributeThermostatUnoccupiedHeatingSetpoint : public SubscribeAt ~SubscribeAttributeThermostatUnoccupiedHeatingSetpoint() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -47572,12 +48503,14 @@ class ReadThermostatMinHeatSetpointLimit : public ReadAttribute { ~ReadThermostatMinHeatSetpointLimit() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMinHeatSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.MinHeatSetpointLimit response %@", [value description]); if (error != nil) { @@ -47601,13 +48534,15 @@ class WriteThermostatMinHeatSetpointLimit : public WriteAttribute { ~WriteThermostatMinHeatSetpointLimit() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithShort:mValue]; @@ -47636,11 +48571,13 @@ class SubscribeAttributeThermostatMinHeatSetpointLimit : public SubscribeAttribu ~SubscribeAttributeThermostatMinHeatSetpointLimit() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -47674,12 +48611,14 @@ class ReadThermostatMaxHeatSetpointLimit : public ReadAttribute { ~ReadThermostatMaxHeatSetpointLimit() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000016) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMaxHeatSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.MaxHeatSetpointLimit response %@", [value description]); if (error != nil) { @@ -47703,13 +48642,15 @@ class WriteThermostatMaxHeatSetpointLimit : public WriteAttribute { ~WriteThermostatMaxHeatSetpointLimit() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000016) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithShort:mValue]; @@ -47738,11 +48679,13 @@ class SubscribeAttributeThermostatMaxHeatSetpointLimit : public SubscribeAttribu ~SubscribeAttributeThermostatMaxHeatSetpointLimit() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000016) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -47776,12 +48719,14 @@ class ReadThermostatMinCoolSetpointLimit : public ReadAttribute { ~ReadThermostatMinCoolSetpointLimit() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMinCoolSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.MinCoolSetpointLimit response %@", [value description]); if (error != nil) { @@ -47805,13 +48750,15 @@ class WriteThermostatMinCoolSetpointLimit : public WriteAttribute { ~WriteThermostatMinCoolSetpointLimit() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithShort:mValue]; @@ -47840,11 +48787,13 @@ class SubscribeAttributeThermostatMinCoolSetpointLimit : public SubscribeAttribu ~SubscribeAttributeThermostatMinCoolSetpointLimit() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -47878,12 +48827,14 @@ class ReadThermostatMaxCoolSetpointLimit : public ReadAttribute { ~ReadThermostatMaxCoolSetpointLimit() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000018) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMaxCoolSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.MaxCoolSetpointLimit response %@", [value description]); if (error != nil) { @@ -47907,13 +48858,15 @@ class WriteThermostatMaxCoolSetpointLimit : public WriteAttribute { ~WriteThermostatMaxCoolSetpointLimit() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000018) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithShort:mValue]; @@ -47942,11 +48895,13 @@ class SubscribeAttributeThermostatMaxCoolSetpointLimit : public SubscribeAttribu ~SubscribeAttributeThermostatMaxCoolSetpointLimit() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000018) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -47980,12 +48935,14 @@ class ReadThermostatMinSetpointDeadBand : public ReadAttribute { ~ReadThermostatMinSetpointDeadBand() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000019) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMinSetpointDeadBandWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.MinSetpointDeadBand response %@", [value description]); if (error != nil) { @@ -48009,13 +48966,15 @@ class WriteThermostatMinSetpointDeadBand : public WriteAttribute { ~WriteThermostatMinSetpointDeadBand() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000019) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithChar:mValue]; @@ -48044,11 +49003,13 @@ class SubscribeAttributeThermostatMinSetpointDeadBand : public SubscribeAttribut ~SubscribeAttributeThermostatMinSetpointDeadBand() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000019) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -48082,12 +49043,14 @@ class ReadThermostatRemoteSensing : public ReadAttribute { ~ReadThermostatRemoteSensing() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x0000001A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRemoteSensingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.RemoteSensing response %@", [value description]); if (error != nil) { @@ -48111,13 +49074,15 @@ class WriteThermostatRemoteSensing : public WriteAttribute { ~WriteThermostatRemoteSensing() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x0000001A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; @@ -48146,11 +49111,13 @@ class SubscribeAttributeThermostatRemoteSensing : public SubscribeAttribute { ~SubscribeAttributeThermostatRemoteSensing() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x0000001A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -48184,12 +49151,14 @@ class ReadThermostatControlSequenceOfOperation : public ReadAttribute { ~ReadThermostatControlSequenceOfOperation() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x0000001B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeControlSequenceOfOperationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.ControlSequenceOfOperation response %@", [value description]); @@ -48214,13 +49183,15 @@ class WriteThermostatControlSequenceOfOperation : public WriteAttribute { ~WriteThermostatControlSequenceOfOperation() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x0000001B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; @@ -48249,11 +49220,13 @@ class SubscribeAttributeThermostatControlSequenceOfOperation : public SubscribeA ~SubscribeAttributeThermostatControlSequenceOfOperation() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x0000001B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -48287,12 +49260,14 @@ class ReadThermostatSystemMode : public ReadAttribute { ~ReadThermostatSystemMode() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x0000001C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeSystemModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.SystemMode response %@", [value description]); if (error != nil) { @@ -48316,13 +49291,15 @@ class WriteThermostatSystemMode : public WriteAttribute { ~WriteThermostatSystemMode() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x0000001C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; @@ -48351,11 +49328,13 @@ class SubscribeAttributeThermostatSystemMode : public SubscribeAttribute { ~SubscribeAttributeThermostatSystemMode() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x0000001C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -48389,12 +49368,14 @@ class ReadThermostatThermostatRunningMode : public ReadAttribute { ~ReadThermostatThermostatRunningMode() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x0000001E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeThermostatRunningModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.ThermostatRunningMode response %@", [value description]); if (error != nil) { @@ -48415,11 +49396,13 @@ class SubscribeAttributeThermostatThermostatRunningMode : public SubscribeAttrib ~SubscribeAttributeThermostatThermostatRunningMode() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x0000001E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -48453,12 +49436,14 @@ class ReadThermostatStartOfWeek : public ReadAttribute { ~ReadThermostatStartOfWeek() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000020) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeStartOfWeekWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.StartOfWeek response %@", [value description]); if (error != nil) { @@ -48479,11 +49464,13 @@ class SubscribeAttributeThermostatStartOfWeek : public SubscribeAttribute { ~SubscribeAttributeThermostatStartOfWeek() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000020) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -48517,12 +49504,14 @@ class ReadThermostatNumberOfWeeklyTransitions : public ReadAttribute { ~ReadThermostatNumberOfWeeklyTransitions() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000021) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNumberOfWeeklyTransitionsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.NumberOfWeeklyTransitions response %@", [value description]); @@ -48544,11 +49533,13 @@ class SubscribeAttributeThermostatNumberOfWeeklyTransitions : public SubscribeAt ~SubscribeAttributeThermostatNumberOfWeeklyTransitions() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000021) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -48582,12 +49573,14 @@ class ReadThermostatNumberOfDailyTransitions : public ReadAttribute { ~ReadThermostatNumberOfDailyTransitions() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000022) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNumberOfDailyTransitionsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.NumberOfDailyTransitions response %@", [value description]); @@ -48609,11 +49602,13 @@ class SubscribeAttributeThermostatNumberOfDailyTransitions : public SubscribeAtt ~SubscribeAttributeThermostatNumberOfDailyTransitions() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000022) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -48647,12 +49642,14 @@ class ReadThermostatTemperatureSetpointHold : public ReadAttribute { ~ReadThermostatTemperatureSetpointHold() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000023) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeTemperatureSetpointHoldWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.TemperatureSetpointHold response %@", [value description]); @@ -48677,13 +49674,15 @@ class WriteThermostatTemperatureSetpointHold : public WriteAttribute { ~WriteThermostatTemperatureSetpointHold() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000023) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; @@ -48712,11 +49711,13 @@ class SubscribeAttributeThermostatTemperatureSetpointHold : public SubscribeAttr ~SubscribeAttributeThermostatTemperatureSetpointHold() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000023) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -48750,12 +49751,14 @@ class ReadThermostatTemperatureSetpointHoldDuration : public ReadAttribute { ~ReadThermostatTemperatureSetpointHoldDuration() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000024) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeTemperatureSetpointHoldDurationWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.TemperatureSetpointHoldDuration response %@", [value description]); @@ -48780,13 +49783,15 @@ class WriteThermostatTemperatureSetpointHoldDuration : public WriteAttribute { ~WriteThermostatTemperatureSetpointHoldDuration() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000024) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithUnsignedShort:mValue]; @@ -48816,11 +49821,13 @@ class SubscribeAttributeThermostatTemperatureSetpointHoldDuration : public Subsc ~SubscribeAttributeThermostatTemperatureSetpointHoldDuration() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000024) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -48854,12 +49861,14 @@ class ReadThermostatThermostatProgrammingOperationMode : public ReadAttribute { ~ReadThermostatThermostatProgrammingOperationMode() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000025) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeThermostatProgrammingOperationModeWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.ThermostatProgrammingOperationMode response %@", [value description]); @@ -48884,13 +49893,15 @@ class WriteThermostatThermostatProgrammingOperationMode : public WriteAttribute ~WriteThermostatThermostatProgrammingOperationMode() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000025) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; @@ -48921,11 +49932,13 @@ class SubscribeAttributeThermostatThermostatProgrammingOperationMode : public Su ~SubscribeAttributeThermostatThermostatProgrammingOperationMode() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000025) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -48959,12 +49972,14 @@ class ReadThermostatThermostatRunningState : public ReadAttribute { ~ReadThermostatThermostatRunningState() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000029) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeThermostatRunningStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.ThermostatRunningState response %@", [value description]); if (error != nil) { @@ -48985,11 +50000,13 @@ class SubscribeAttributeThermostatThermostatRunningState : public SubscribeAttri ~SubscribeAttributeThermostatThermostatRunningState() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000029) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -49023,12 +50040,14 @@ class ReadThermostatSetpointChangeSource : public ReadAttribute { ~ReadThermostatSetpointChangeSource() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000030) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeSetpointChangeSourceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.SetpointChangeSource response %@", [value description]); if (error != nil) { @@ -49049,11 +50068,13 @@ class SubscribeAttributeThermostatSetpointChangeSource : public SubscribeAttribu ~SubscribeAttributeThermostatSetpointChangeSource() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000030) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -49087,12 +50108,14 @@ class ReadThermostatSetpointChangeAmount : public ReadAttribute { ~ReadThermostatSetpointChangeAmount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000031) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeSetpointChangeAmountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.SetpointChangeAmount response %@", [value description]); if (error != nil) { @@ -49113,11 +50136,13 @@ class SubscribeAttributeThermostatSetpointChangeAmount : public SubscribeAttribu ~SubscribeAttributeThermostatSetpointChangeAmount() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000031) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -49151,12 +50176,14 @@ class ReadThermostatSetpointChangeSourceTimestamp : public ReadAttribute { ~ReadThermostatSetpointChangeSourceTimestamp() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000032) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeSetpointChangeSourceTimestampWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.SetpointChangeSourceTimestamp response %@", [value description]); @@ -49178,11 +50205,13 @@ class SubscribeAttributeThermostatSetpointChangeSourceTimestamp : public Subscri ~SubscribeAttributeThermostatSetpointChangeSourceTimestamp() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000032) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -49216,12 +50245,14 @@ class ReadThermostatOccupiedSetback : public ReadAttribute { ~ReadThermostatOccupiedSetback() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000034) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeOccupiedSetbackWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.OccupiedSetback response %@", [value description]); if (error != nil) { @@ -49245,13 +50276,15 @@ class WriteThermostatOccupiedSetback : public WriteAttribute { ~WriteThermostatOccupiedSetback() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000034) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithUnsignedChar:mValue]; @@ -49280,11 +50313,13 @@ class SubscribeAttributeThermostatOccupiedSetback : public SubscribeAttribute { ~SubscribeAttributeThermostatOccupiedSetback() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000034) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -49318,12 +50353,14 @@ class ReadThermostatOccupiedSetbackMin : public ReadAttribute { ~ReadThermostatOccupiedSetbackMin() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000035) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeOccupiedSetbackMinWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.OccupiedSetbackMin response %@", [value description]); if (error != nil) { @@ -49344,11 +50381,13 @@ class SubscribeAttributeThermostatOccupiedSetbackMin : public SubscribeAttribute ~SubscribeAttributeThermostatOccupiedSetbackMin() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000035) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -49382,12 +50421,14 @@ class ReadThermostatOccupiedSetbackMax : public ReadAttribute { ~ReadThermostatOccupiedSetbackMax() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000036) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeOccupiedSetbackMaxWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.OccupiedSetbackMax response %@", [value description]); if (error != nil) { @@ -49408,11 +50449,13 @@ class SubscribeAttributeThermostatOccupiedSetbackMax : public SubscribeAttribute ~SubscribeAttributeThermostatOccupiedSetbackMax() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000036) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -49446,12 +50489,14 @@ class ReadThermostatUnoccupiedSetback : public ReadAttribute { ~ReadThermostatUnoccupiedSetback() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000037) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeUnoccupiedSetbackWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.UnoccupiedSetback response %@", [value description]); if (error != nil) { @@ -49475,13 +50520,15 @@ class WriteThermostatUnoccupiedSetback : public WriteAttribute { ~WriteThermostatUnoccupiedSetback() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000037) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithUnsignedChar:mValue]; @@ -49510,11 +50557,13 @@ class SubscribeAttributeThermostatUnoccupiedSetback : public SubscribeAttribute ~SubscribeAttributeThermostatUnoccupiedSetback() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000037) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -49548,12 +50597,14 @@ class ReadThermostatUnoccupiedSetbackMin : public ReadAttribute { ~ReadThermostatUnoccupiedSetbackMin() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000038) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeUnoccupiedSetbackMinWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.UnoccupiedSetbackMin response %@", [value description]); if (error != nil) { @@ -49574,11 +50625,13 @@ class SubscribeAttributeThermostatUnoccupiedSetbackMin : public SubscribeAttribu ~SubscribeAttributeThermostatUnoccupiedSetbackMin() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000038) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -49612,12 +50665,14 @@ class ReadThermostatUnoccupiedSetbackMax : public ReadAttribute { ~ReadThermostatUnoccupiedSetbackMax() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000039) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeUnoccupiedSetbackMaxWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.UnoccupiedSetbackMax response %@", [value description]); if (error != nil) { @@ -49638,11 +50693,13 @@ class SubscribeAttributeThermostatUnoccupiedSetbackMax : public SubscribeAttribu ~SubscribeAttributeThermostatUnoccupiedSetbackMax() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000039) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -49676,12 +50733,14 @@ class ReadThermostatEmergencyHeatDelta : public ReadAttribute { ~ReadThermostatEmergencyHeatDelta() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x0000003A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeEmergencyHeatDeltaWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.EmergencyHeatDelta response %@", [value description]); if (error != nil) { @@ -49705,13 +50764,15 @@ class WriteThermostatEmergencyHeatDelta : public WriteAttribute { ~WriteThermostatEmergencyHeatDelta() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x0000003A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; @@ -49740,11 +50801,13 @@ class SubscribeAttributeThermostatEmergencyHeatDelta : public SubscribeAttribute ~SubscribeAttributeThermostatEmergencyHeatDelta() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x0000003A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -49778,12 +50841,14 @@ class ReadThermostatACType : public ReadAttribute { ~ReadThermostatACType() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000040) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeACTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.ACType response %@", [value description]); if (error != nil) { @@ -49807,13 +50872,15 @@ class WriteThermostatACType : public WriteAttribute { ~WriteThermostatACType() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000040) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; @@ -49842,11 +50909,13 @@ class SubscribeAttributeThermostatACType : public SubscribeAttribute { ~SubscribeAttributeThermostatACType() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000040) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -49880,12 +50949,14 @@ class ReadThermostatACCapacity : public ReadAttribute { ~ReadThermostatACCapacity() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000041) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeACCapacityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.ACCapacity response %@", [value description]); if (error != nil) { @@ -49909,13 +50980,15 @@ class WriteThermostatACCapacity : public WriteAttribute { ~WriteThermostatACCapacity() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000041) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; @@ -49944,11 +51017,13 @@ class SubscribeAttributeThermostatACCapacity : public SubscribeAttribute { ~SubscribeAttributeThermostatACCapacity() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000041) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -49982,12 +51057,14 @@ class ReadThermostatACRefrigerantType : public ReadAttribute { ~ReadThermostatACRefrigerantType() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000042) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeACRefrigerantTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.ACRefrigerantType response %@", [value description]); if (error != nil) { @@ -50011,13 +51088,15 @@ class WriteThermostatACRefrigerantType : public WriteAttribute { ~WriteThermostatACRefrigerantType() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000042) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; @@ -50046,11 +51125,13 @@ class SubscribeAttributeThermostatACRefrigerantType : public SubscribeAttribute ~SubscribeAttributeThermostatACRefrigerantType() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000042) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -50084,12 +51165,14 @@ class ReadThermostatACCompressorType : public ReadAttribute { ~ReadThermostatACCompressorType() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000043) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeACCompressorTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.ACCompressorType response %@", [value description]); if (error != nil) { @@ -50113,13 +51196,15 @@ class WriteThermostatACCompressorType : public WriteAttribute { ~WriteThermostatACCompressorType() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000043) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; @@ -50148,11 +51233,13 @@ class SubscribeAttributeThermostatACCompressorType : public SubscribeAttribute { ~SubscribeAttributeThermostatACCompressorType() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000043) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -50186,12 +51273,14 @@ class ReadThermostatACErrorCode : public ReadAttribute { ~ReadThermostatACErrorCode() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000044) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeACErrorCodeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.ACErrorCode response %@", [value description]); if (error != nil) { @@ -50215,13 +51304,15 @@ class WriteThermostatACErrorCode : public WriteAttribute { ~WriteThermostatACErrorCode() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000044) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedInt:mValue]; @@ -50250,11 +51341,13 @@ class SubscribeAttributeThermostatACErrorCode : public SubscribeAttribute { ~SubscribeAttributeThermostatACErrorCode() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000044) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -50288,12 +51381,14 @@ class ReadThermostatACLouverPosition : public ReadAttribute { ~ReadThermostatACLouverPosition() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000045) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeACLouverPositionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.ACLouverPosition response %@", [value description]); if (error != nil) { @@ -50317,13 +51412,15 @@ class WriteThermostatACLouverPosition : public WriteAttribute { ~WriteThermostatACLouverPosition() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000045) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; @@ -50352,11 +51449,13 @@ class SubscribeAttributeThermostatACLouverPosition : public SubscribeAttribute { ~SubscribeAttributeThermostatACLouverPosition() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000045) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -50390,12 +51489,14 @@ class ReadThermostatACCoilTemperature : public ReadAttribute { ~ReadThermostatACCoilTemperature() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000046) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeACCoilTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.ACCoilTemperature response %@", [value description]); if (error != nil) { @@ -50416,11 +51517,13 @@ class SubscribeAttributeThermostatACCoilTemperature : public SubscribeAttribute ~SubscribeAttributeThermostatACCoilTemperature() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000046) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -50454,12 +51557,14 @@ class ReadThermostatACCapacityformat : public ReadAttribute { ~ReadThermostatACCapacityformat() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x00000047) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeACCapacityformatWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.ACCapacityformat response %@", [value description]); if (error != nil) { @@ -50483,13 +51588,15 @@ class WriteThermostatACCapacityformat : public WriteAttribute { ~WriteThermostatACCapacityformat() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) WriteAttribute (0x00000047) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; @@ -50518,11 +51625,13 @@ class SubscribeAttributeThermostatACCapacityformat : public SubscribeAttribute { ~SubscribeAttributeThermostatACCapacityformat() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x00000047) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -50556,12 +51665,14 @@ class ReadThermostatGeneratedCommandList : public ReadAttribute { ~ReadThermostatGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -50582,11 +51693,13 @@ class SubscribeAttributeThermostatGeneratedCommandList : public SubscribeAttribu ~SubscribeAttributeThermostatGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -50620,12 +51733,14 @@ class ReadThermostatAcceptedCommandList : public ReadAttribute { ~ReadThermostatAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -50646,11 +51761,13 @@ class SubscribeAttributeThermostatAcceptedCommandList : public SubscribeAttribut ~SubscribeAttributeThermostatAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -50684,12 +51801,14 @@ class ReadThermostatAttributeList : public ReadAttribute { ~ReadThermostatAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.AttributeList response %@", [value description]); if (error != nil) { @@ -50710,11 +51829,13 @@ class SubscribeAttributeThermostatAttributeList : public SubscribeAttribute { ~SubscribeAttributeThermostatAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -50748,12 +51869,14 @@ class ReadThermostatFeatureMap : public ReadAttribute { ~ReadThermostatFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.FeatureMap response %@", [value description]); if (error != nil) { @@ -50774,11 +51897,13 @@ class SubscribeAttributeThermostatFeatureMap : public SubscribeAttribute { ~SubscribeAttributeThermostatFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -50812,12 +51937,14 @@ class ReadThermostatClusterRevision : public ReadAttribute { ~ReadThermostatClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Thermostat.ClusterRevision response %@", [value description]); if (error != nil) { @@ -50838,11 +51965,13 @@ class SubscribeAttributeThermostatClusterRevision : public SubscribeAttribute { ~SubscribeAttributeThermostatClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000201) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostat * cluster = [[MTRThermostat alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -50902,12 +52031,14 @@ class ReadFanControlFanMode : public ReadAttribute { ~ReadFanControlFanMode() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFanModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"FanControl.FanMode response %@", [value description]); if (error != nil) { @@ -50931,13 +52062,15 @@ class WriteFanControlFanMode : public WriteAttribute { ~WriteFanControlFanMode() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) WriteAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; @@ -50966,11 +52099,13 @@ class SubscribeAttributeFanControlFanMode : public SubscribeAttribute { ~SubscribeAttributeFanControlFanMode() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -51004,12 +52139,14 @@ class ReadFanControlFanModeSequence : public ReadAttribute { ~ReadFanControlFanModeSequence() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFanModeSequenceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"FanControl.FanModeSequence response %@", [value description]); if (error != nil) { @@ -51033,13 +52170,15 @@ class WriteFanControlFanModeSequence : public WriteAttribute { ~WriteFanControlFanModeSequence() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) WriteAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; @@ -51068,11 +52207,13 @@ class SubscribeAttributeFanControlFanModeSequence : public SubscribeAttribute { ~SubscribeAttributeFanControlFanModeSequence() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -51106,12 +52247,14 @@ class ReadFanControlPercentSetting : public ReadAttribute { ~ReadFanControlPercentSetting() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePercentSettingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"FanControl.PercentSetting response %@", [value description]); if (error != nil) { @@ -51135,13 +52278,15 @@ class WriteFanControlPercentSetting : public WriteAttribute { ~WriteFanControlPercentSetting() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) WriteAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithUnsignedChar:mValue]; @@ -51170,11 +52315,13 @@ class SubscribeAttributeFanControlPercentSetting : public SubscribeAttribute { ~SubscribeAttributeFanControlPercentSetting() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -51208,12 +52355,14 @@ class ReadFanControlPercentCurrent : public ReadAttribute { ~ReadFanControlPercentCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePercentCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"FanControl.PercentCurrent response %@", [value description]); if (error != nil) { @@ -51234,11 +52383,13 @@ class SubscribeAttributeFanControlPercentCurrent : public SubscribeAttribute { ~SubscribeAttributeFanControlPercentCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -51272,12 +52423,14 @@ class ReadFanControlSpeedMax : public ReadAttribute { ~ReadFanControlSpeedMax() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeSpeedMaxWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"FanControl.SpeedMax response %@", [value description]); if (error != nil) { @@ -51298,11 +52451,13 @@ class SubscribeAttributeFanControlSpeedMax : public SubscribeAttribute { ~SubscribeAttributeFanControlSpeedMax() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -51336,12 +52491,14 @@ class ReadFanControlSpeedSetting : public ReadAttribute { ~ReadFanControlSpeedSetting() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReadAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeSpeedSettingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"FanControl.SpeedSetting response %@", [value description]); if (error != nil) { @@ -51365,13 +52522,15 @@ class WriteFanControlSpeedSetting : public WriteAttribute { ~WriteFanControlSpeedSetting() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) WriteAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithUnsignedChar:mValue]; @@ -51400,11 +52559,13 @@ class SubscribeAttributeFanControlSpeedSetting : public SubscribeAttribute { ~SubscribeAttributeFanControlSpeedSetting() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReportAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -51438,12 +52599,14 @@ class ReadFanControlSpeedCurrent : public ReadAttribute { ~ReadFanControlSpeedCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReadAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeSpeedCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"FanControl.SpeedCurrent response %@", [value description]); if (error != nil) { @@ -51464,11 +52627,13 @@ class SubscribeAttributeFanControlSpeedCurrent : public SubscribeAttribute { ~SubscribeAttributeFanControlSpeedCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReportAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -51502,12 +52667,14 @@ class ReadFanControlRockSupport : public ReadAttribute { ~ReadFanControlRockSupport() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReadAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRockSupportWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"FanControl.RockSupport response %@", [value description]); if (error != nil) { @@ -51528,11 +52695,13 @@ class SubscribeAttributeFanControlRockSupport : public SubscribeAttribute { ~SubscribeAttributeFanControlRockSupport() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReportAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -51566,12 +52735,14 @@ class ReadFanControlRockSetting : public ReadAttribute { ~ReadFanControlRockSetting() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReadAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRockSettingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"FanControl.RockSetting response %@", [value description]); if (error != nil) { @@ -51595,13 +52766,15 @@ class WriteFanControlRockSetting : public WriteAttribute { ~WriteFanControlRockSetting() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) WriteAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; @@ -51630,11 +52803,13 @@ class SubscribeAttributeFanControlRockSetting : public SubscribeAttribute { ~SubscribeAttributeFanControlRockSetting() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReportAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -51668,12 +52843,14 @@ class ReadFanControlWindSupport : public ReadAttribute { ~ReadFanControlWindSupport() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReadAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeWindSupportWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"FanControl.WindSupport response %@", [value description]); if (error != nil) { @@ -51694,11 +52871,13 @@ class SubscribeAttributeFanControlWindSupport : public SubscribeAttribute { ~SubscribeAttributeFanControlWindSupport() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReportAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -51732,12 +52911,14 @@ class ReadFanControlWindSetting : public ReadAttribute { ~ReadFanControlWindSetting() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReadAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeWindSettingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"FanControl.WindSetting response %@", [value description]); if (error != nil) { @@ -51761,13 +52942,15 @@ class WriteFanControlWindSetting : public WriteAttribute { ~WriteFanControlWindSetting() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) WriteAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; @@ -51796,11 +52979,13 @@ class SubscribeAttributeFanControlWindSetting : public SubscribeAttribute { ~SubscribeAttributeFanControlWindSetting() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReportAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -51834,12 +53019,14 @@ class ReadFanControlGeneratedCommandList : public ReadAttribute { ~ReadFanControlGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"FanControl.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -51860,11 +53047,13 @@ class SubscribeAttributeFanControlGeneratedCommandList : public SubscribeAttribu ~SubscribeAttributeFanControlGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -51898,12 +53087,14 @@ class ReadFanControlAcceptedCommandList : public ReadAttribute { ~ReadFanControlAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"FanControl.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -51924,11 +53115,13 @@ class SubscribeAttributeFanControlAcceptedCommandList : public SubscribeAttribut ~SubscribeAttributeFanControlAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -51962,12 +53155,14 @@ class ReadFanControlAttributeList : public ReadAttribute { ~ReadFanControlAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"FanControl.AttributeList response %@", [value description]); if (error != nil) { @@ -51988,11 +53183,13 @@ class SubscribeAttributeFanControlAttributeList : public SubscribeAttribute { ~SubscribeAttributeFanControlAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -52026,12 +53223,14 @@ class ReadFanControlFeatureMap : public ReadAttribute { ~ReadFanControlFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"FanControl.FeatureMap response %@", [value description]); if (error != nil) { @@ -52052,11 +53251,13 @@ class SubscribeAttributeFanControlFeatureMap : public SubscribeAttribute { ~SubscribeAttributeFanControlFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -52090,12 +53291,14 @@ class ReadFanControlClusterRevision : public ReadAttribute { ~ReadFanControlClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"FanControl.ClusterRevision response %@", [value description]); if (error != nil) { @@ -52116,11 +53319,13 @@ class SubscribeAttributeFanControlClusterRevision : public SubscribeAttribute { ~SubscribeAttributeFanControlClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000202) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFanControl * cluster = [[MTRFanControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -52172,13 +53377,15 @@ class ReadThermostatUserInterfaceConfigurationTemperatureDisplayMode : public Re ~ReadThermostatUserInterfaceConfigurationTemperatureDisplayMode() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000204) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostatUserInterfaceConfiguration * cluster = - [[MTRThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeTemperatureDisplayModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThermostatUserInterfaceConfiguration.TemperatureDisplayMode response %@", [value description]); if (error != nil) { @@ -52202,14 +53409,16 @@ class WriteThermostatUserInterfaceConfigurationTemperatureDisplayMode : public W ~WriteThermostatUserInterfaceConfigurationTemperatureDisplayMode() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000204) WriteAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostatUserInterfaceConfiguration * cluster = - [[MTRThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; @@ -52240,12 +53449,14 @@ class SubscribeAttributeThermostatUserInterfaceConfigurationTemperatureDisplayMo ~SubscribeAttributeThermostatUserInterfaceConfigurationTemperatureDisplayMode() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000204) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostatUserInterfaceConfiguration * cluster = - [[MTRThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -52279,13 +53490,15 @@ class ReadThermostatUserInterfaceConfigurationKeypadLockout : public ReadAttribu ~ReadThermostatUserInterfaceConfigurationKeypadLockout() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000204) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostatUserInterfaceConfiguration * cluster = - [[MTRThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeKeypadLockoutWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThermostatUserInterfaceConfiguration.KeypadLockout response %@", [value description]); if (error != nil) { @@ -52309,14 +53522,16 @@ class WriteThermostatUserInterfaceConfigurationKeypadLockout : public WriteAttri ~WriteThermostatUserInterfaceConfigurationKeypadLockout() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000204) WriteAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostatUserInterfaceConfiguration * cluster = - [[MTRThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; @@ -52345,12 +53560,14 @@ class SubscribeAttributeThermostatUserInterfaceConfigurationKeypadLockout : publ ~SubscribeAttributeThermostatUserInterfaceConfigurationKeypadLockout() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000204) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostatUserInterfaceConfiguration * cluster = - [[MTRThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -52384,13 +53601,15 @@ class ReadThermostatUserInterfaceConfigurationScheduleProgrammingVisibility : pu ~ReadThermostatUserInterfaceConfigurationScheduleProgrammingVisibility() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000204) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostatUserInterfaceConfiguration * cluster = - [[MTRThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeScheduleProgrammingVisibilityWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThermostatUserInterfaceConfiguration.ScheduleProgrammingVisibility response %@", [value description]); @@ -52415,14 +53634,16 @@ class WriteThermostatUserInterfaceConfigurationScheduleProgrammingVisibility : p ~WriteThermostatUserInterfaceConfigurationScheduleProgrammingVisibility() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000204) WriteAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostatUserInterfaceConfiguration * cluster = - [[MTRThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; @@ -52453,12 +53674,14 @@ class SubscribeAttributeThermostatUserInterfaceConfigurationScheduleProgrammingV ~SubscribeAttributeThermostatUserInterfaceConfigurationScheduleProgrammingVisibility() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000204) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostatUserInterfaceConfiguration * cluster = - [[MTRThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -52492,13 +53715,15 @@ class ReadThermostatUserInterfaceConfigurationGeneratedCommandList : public Read ~ReadThermostatUserInterfaceConfigurationGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000204) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostatUserInterfaceConfiguration * cluster = - [[MTRThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ThermostatUserInterfaceConfiguration.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -52519,12 +53744,14 @@ class SubscribeAttributeThermostatUserInterfaceConfigurationGeneratedCommandList ~SubscribeAttributeThermostatUserInterfaceConfigurationGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000204) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostatUserInterfaceConfiguration * cluster = - [[MTRThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -52558,13 +53785,15 @@ class ReadThermostatUserInterfaceConfigurationAcceptedCommandList : public ReadA ~ReadThermostatUserInterfaceConfigurationAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000204) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostatUserInterfaceConfiguration * cluster = - [[MTRThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ThermostatUserInterfaceConfiguration.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -52585,12 +53814,14 @@ class SubscribeAttributeThermostatUserInterfaceConfigurationAcceptedCommandList ~SubscribeAttributeThermostatUserInterfaceConfigurationAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000204) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostatUserInterfaceConfiguration * cluster = - [[MTRThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -52624,13 +53855,15 @@ class ReadThermostatUserInterfaceConfigurationAttributeList : public ReadAttribu ~ReadThermostatUserInterfaceConfigurationAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000204) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostatUserInterfaceConfiguration * cluster = - [[MTRThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ThermostatUserInterfaceConfiguration.AttributeList response %@", [value description]); if (error != nil) { @@ -52651,12 +53884,14 @@ class SubscribeAttributeThermostatUserInterfaceConfigurationAttributeList : publ ~SubscribeAttributeThermostatUserInterfaceConfigurationAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000204) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostatUserInterfaceConfiguration * cluster = - [[MTRThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -52690,13 +53925,15 @@ class ReadThermostatUserInterfaceConfigurationFeatureMap : public ReadAttribute ~ReadThermostatUserInterfaceConfigurationFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000204) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostatUserInterfaceConfiguration * cluster = - [[MTRThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThermostatUserInterfaceConfiguration.FeatureMap response %@", [value description]); if (error != nil) { @@ -52717,12 +53954,14 @@ class SubscribeAttributeThermostatUserInterfaceConfigurationFeatureMap : public ~SubscribeAttributeThermostatUserInterfaceConfigurationFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000204) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostatUserInterfaceConfiguration * cluster = - [[MTRThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -52756,13 +53995,15 @@ class ReadThermostatUserInterfaceConfigurationClusterRevision : public ReadAttri ~ReadThermostatUserInterfaceConfigurationClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000204) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostatUserInterfaceConfiguration * cluster = - [[MTRThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ThermostatUserInterfaceConfiguration.ClusterRevision response %@", [value description]); if (error != nil) { @@ -52783,12 +54024,14 @@ class SubscribeAttributeThermostatUserInterfaceConfigurationClusterRevision : pu ~SubscribeAttributeThermostatUserInterfaceConfigurationClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000204) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRThermostatUserInterfaceConfiguration * cluster = - [[MTRThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -52912,12 +54155,14 @@ class ColorControlMoveToHue : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRColorControlClusterMoveToHueParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -52963,12 +54208,14 @@ class ColorControlMoveHue : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRColorControlClusterMoveHueParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -53014,12 +54261,14 @@ class ColorControlStepHue : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRColorControlClusterStepHueParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -53065,12 +54314,14 @@ class ColorControlMoveToSaturation : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRColorControlClusterMoveToSaturationParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -53115,12 +54366,14 @@ class ColorControlMoveSaturation : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRColorControlClusterMoveSaturationParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -53166,12 +54419,14 @@ class ColorControlStepSaturation : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRColorControlClusterStepSaturationParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -53218,12 +54473,14 @@ class ColorControlMoveToHueAndSaturation : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRColorControlClusterMoveToHueAndSaturationParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -53270,12 +54527,14 @@ class ColorControlMoveToColor : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRColorControlClusterMoveToColorParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -53321,12 +54580,14 @@ class ColorControlMoveColor : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRColorControlClusterMoveColorParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -53372,12 +54633,14 @@ class ColorControlStepColor : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRColorControlClusterStepColorParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -53423,12 +54686,14 @@ class ColorControlMoveToColorTemperature : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRColorControlClusterMoveToColorTemperatureParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -53474,12 +54739,14 @@ class ColorControlEnhancedMoveToHue : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000040) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRColorControlClusterEnhancedMoveToHueParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -53525,12 +54792,14 @@ class ColorControlEnhancedMoveHue : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000041) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRColorControlClusterEnhancedMoveHueParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -53576,12 +54845,14 @@ class ColorControlEnhancedStepHue : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000042) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRColorControlClusterEnhancedStepHueParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -53628,12 +54899,14 @@ class ColorControlEnhancedMoveToHueAndSaturation : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000043) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRColorControlClusterEnhancedMoveToHueAndSaturationParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -53682,12 +54955,14 @@ class ColorControlColorLoopSet : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000044) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRColorControlClusterColorLoopSetParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -53733,12 +55008,14 @@ class ColorControlStopMoveStep : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x00000047) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRColorControlClusterStopMoveStepParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -53783,12 +55060,14 @@ class ColorControlMoveColorTemperature : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x0000004B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRColorControlClusterMoveColorTemperatureParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -53838,12 +55117,14 @@ class ColorControlStepColorTemperature : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) command (0x0000004C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRColorControlClusterStepColorTemperatureParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -53888,12 +55169,14 @@ class ReadColorControlCurrentHue : public ReadAttribute { ~ReadColorControlCurrentHue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.CurrentHue response %@", [value description]); if (error != nil) { @@ -53914,11 +55197,13 @@ class SubscribeAttributeColorControlCurrentHue : public SubscribeAttribute { ~SubscribeAttributeColorControlCurrentHue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -53952,12 +55237,14 @@ class ReadColorControlCurrentSaturation : public ReadAttribute { ~ReadColorControlCurrentSaturation() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.CurrentSaturation response %@", [value description]); if (error != nil) { @@ -53978,11 +55265,13 @@ class SubscribeAttributeColorControlCurrentSaturation : public SubscribeAttribut ~SubscribeAttributeColorControlCurrentSaturation() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -54016,12 +55305,14 @@ class ReadColorControlRemainingTime : public ReadAttribute { ~ReadColorControlRemainingTime() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRemainingTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.RemainingTime response %@", [value description]); if (error != nil) { @@ -54042,11 +55333,13 @@ class SubscribeAttributeColorControlRemainingTime : public SubscribeAttribute { ~SubscribeAttributeColorControlRemainingTime() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -54080,12 +55373,14 @@ class ReadColorControlCurrentX : public ReadAttribute { ~ReadColorControlCurrentX() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeCurrentXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.CurrentX response %@", [value description]); if (error != nil) { @@ -54106,11 +55401,13 @@ class SubscribeAttributeColorControlCurrentX : public SubscribeAttribute { ~SubscribeAttributeColorControlCurrentX() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -54144,12 +55441,14 @@ class ReadColorControlCurrentY : public ReadAttribute { ~ReadColorControlCurrentY() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeCurrentYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.CurrentY response %@", [value description]); if (error != nil) { @@ -54170,11 +55469,13 @@ class SubscribeAttributeColorControlCurrentY : public SubscribeAttribute { ~SubscribeAttributeColorControlCurrentY() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -54208,12 +55509,14 @@ class ReadColorControlDriftCompensation : public ReadAttribute { ~ReadColorControlDriftCompensation() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeDriftCompensationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.DriftCompensation response %@", [value description]); if (error != nil) { @@ -54234,11 +55537,13 @@ class SubscribeAttributeColorControlDriftCompensation : public SubscribeAttribut ~SubscribeAttributeColorControlDriftCompensation() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -54272,12 +55577,14 @@ class ReadColorControlCompensationText : public ReadAttribute { ~ReadColorControlCompensationText() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeCompensationTextWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.CompensationText response %@", [value description]); if (error != nil) { @@ -54298,11 +55605,13 @@ class SubscribeAttributeColorControlCompensationText : public SubscribeAttribute ~SubscribeAttributeColorControlCompensationText() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -54336,12 +55645,14 @@ class ReadColorControlColorTemperature : public ReadAttribute { ~ReadColorControlColorTemperature() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.ColorTemperature response %@", [value description]); if (error != nil) { @@ -54362,11 +55673,13 @@ class SubscribeAttributeColorControlColorTemperature : public SubscribeAttribute ~SubscribeAttributeColorControlColorTemperature() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -54400,12 +55713,14 @@ class ReadColorControlColorMode : public ReadAttribute { ~ReadColorControlColorMode() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeColorModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.ColorMode response %@", [value description]); if (error != nil) { @@ -54426,11 +55741,13 @@ class SubscribeAttributeColorControlColorMode : public SubscribeAttribute { ~SubscribeAttributeColorControlColorMode() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -54464,12 +55781,14 @@ class ReadColorControlOptions : public ReadAttribute { ~ReadColorControlOptions() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeOptionsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.Options response %@", [value description]); if (error != nil) { @@ -54493,13 +55812,15 @@ class WriteColorControlOptions : public WriteAttribute { ~WriteColorControlOptions() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) WriteAttribute (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; @@ -54528,11 +55849,13 @@ class SubscribeAttributeColorControlOptions : public SubscribeAttribute { ~SubscribeAttributeColorControlOptions() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -54566,12 +55889,14 @@ class ReadColorControlNumberOfPrimaries : public ReadAttribute { ~ReadColorControlNumberOfPrimaries() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNumberOfPrimariesWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.NumberOfPrimaries response %@", [value description]); if (error != nil) { @@ -54592,11 +55917,13 @@ class SubscribeAttributeColorControlNumberOfPrimaries : public SubscribeAttribut ~SubscribeAttributeColorControlNumberOfPrimaries() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -54630,12 +55957,14 @@ class ReadColorControlPrimary1X : public ReadAttribute { ~ReadColorControlPrimary1X() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePrimary1XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.Primary1X response %@", [value description]); if (error != nil) { @@ -54656,11 +55985,13 @@ class SubscribeAttributeColorControlPrimary1X : public SubscribeAttribute { ~SubscribeAttributeColorControlPrimary1X() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -54694,12 +56025,14 @@ class ReadColorControlPrimary1Y : public ReadAttribute { ~ReadColorControlPrimary1Y() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePrimary1YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.Primary1Y response %@", [value description]); if (error != nil) { @@ -54720,11 +56053,13 @@ class SubscribeAttributeColorControlPrimary1Y : public SubscribeAttribute { ~SubscribeAttributeColorControlPrimary1Y() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -54758,12 +56093,14 @@ class ReadColorControlPrimary1Intensity : public ReadAttribute { ~ReadColorControlPrimary1Intensity() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePrimary1IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.Primary1Intensity response %@", [value description]); if (error != nil) { @@ -54784,11 +56121,13 @@ class SubscribeAttributeColorControlPrimary1Intensity : public SubscribeAttribut ~SubscribeAttributeColorControlPrimary1Intensity() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -54822,12 +56161,14 @@ class ReadColorControlPrimary2X : public ReadAttribute { ~ReadColorControlPrimary2X() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePrimary2XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.Primary2X response %@", [value description]); if (error != nil) { @@ -54848,11 +56189,13 @@ class SubscribeAttributeColorControlPrimary2X : public SubscribeAttribute { ~SubscribeAttributeColorControlPrimary2X() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -54886,12 +56229,14 @@ class ReadColorControlPrimary2Y : public ReadAttribute { ~ReadColorControlPrimary2Y() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000016) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePrimary2YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.Primary2Y response %@", [value description]); if (error != nil) { @@ -54912,11 +56257,13 @@ class SubscribeAttributeColorControlPrimary2Y : public SubscribeAttribute { ~SubscribeAttributeColorControlPrimary2Y() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000016) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -54950,12 +56297,14 @@ class ReadColorControlPrimary2Intensity : public ReadAttribute { ~ReadColorControlPrimary2Intensity() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePrimary2IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.Primary2Intensity response %@", [value description]); if (error != nil) { @@ -54976,11 +56325,13 @@ class SubscribeAttributeColorControlPrimary2Intensity : public SubscribeAttribut ~SubscribeAttributeColorControlPrimary2Intensity() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -55014,12 +56365,14 @@ class ReadColorControlPrimary3X : public ReadAttribute { ~ReadColorControlPrimary3X() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000019) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePrimary3XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.Primary3X response %@", [value description]); if (error != nil) { @@ -55040,11 +56393,13 @@ class SubscribeAttributeColorControlPrimary3X : public SubscribeAttribute { ~SubscribeAttributeColorControlPrimary3X() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000019) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -55078,12 +56433,14 @@ class ReadColorControlPrimary3Y : public ReadAttribute { ~ReadColorControlPrimary3Y() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x0000001A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePrimary3YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.Primary3Y response %@", [value description]); if (error != nil) { @@ -55104,11 +56461,13 @@ class SubscribeAttributeColorControlPrimary3Y : public SubscribeAttribute { ~SubscribeAttributeColorControlPrimary3Y() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x0000001A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -55142,12 +56501,14 @@ class ReadColorControlPrimary3Intensity : public ReadAttribute { ~ReadColorControlPrimary3Intensity() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x0000001B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePrimary3IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.Primary3Intensity response %@", [value description]); if (error != nil) { @@ -55168,11 +56529,13 @@ class SubscribeAttributeColorControlPrimary3Intensity : public SubscribeAttribut ~SubscribeAttributeColorControlPrimary3Intensity() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x0000001B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -55206,12 +56569,14 @@ class ReadColorControlPrimary4X : public ReadAttribute { ~ReadColorControlPrimary4X() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000020) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePrimary4XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.Primary4X response %@", [value description]); if (error != nil) { @@ -55232,11 +56597,13 @@ class SubscribeAttributeColorControlPrimary4X : public SubscribeAttribute { ~SubscribeAttributeColorControlPrimary4X() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000020) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -55270,12 +56637,14 @@ class ReadColorControlPrimary4Y : public ReadAttribute { ~ReadColorControlPrimary4Y() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000021) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePrimary4YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.Primary4Y response %@", [value description]); if (error != nil) { @@ -55296,11 +56665,13 @@ class SubscribeAttributeColorControlPrimary4Y : public SubscribeAttribute { ~SubscribeAttributeColorControlPrimary4Y() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000021) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -55334,12 +56705,14 @@ class ReadColorControlPrimary4Intensity : public ReadAttribute { ~ReadColorControlPrimary4Intensity() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000022) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePrimary4IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.Primary4Intensity response %@", [value description]); if (error != nil) { @@ -55360,11 +56733,13 @@ class SubscribeAttributeColorControlPrimary4Intensity : public SubscribeAttribut ~SubscribeAttributeColorControlPrimary4Intensity() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000022) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -55398,12 +56773,14 @@ class ReadColorControlPrimary5X : public ReadAttribute { ~ReadColorControlPrimary5X() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000024) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePrimary5XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.Primary5X response %@", [value description]); if (error != nil) { @@ -55424,11 +56801,13 @@ class SubscribeAttributeColorControlPrimary5X : public SubscribeAttribute { ~SubscribeAttributeColorControlPrimary5X() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000024) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -55462,12 +56841,14 @@ class ReadColorControlPrimary5Y : public ReadAttribute { ~ReadColorControlPrimary5Y() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000025) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePrimary5YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.Primary5Y response %@", [value description]); if (error != nil) { @@ -55488,11 +56869,13 @@ class SubscribeAttributeColorControlPrimary5Y : public SubscribeAttribute { ~SubscribeAttributeColorControlPrimary5Y() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000025) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -55526,12 +56909,14 @@ class ReadColorControlPrimary5Intensity : public ReadAttribute { ~ReadColorControlPrimary5Intensity() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000026) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePrimary5IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.Primary5Intensity response %@", [value description]); if (error != nil) { @@ -55552,11 +56937,13 @@ class SubscribeAttributeColorControlPrimary5Intensity : public SubscribeAttribut ~SubscribeAttributeColorControlPrimary5Intensity() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000026) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -55590,12 +56977,14 @@ class ReadColorControlPrimary6X : public ReadAttribute { ~ReadColorControlPrimary6X() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000028) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePrimary6XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.Primary6X response %@", [value description]); if (error != nil) { @@ -55616,11 +57005,13 @@ class SubscribeAttributeColorControlPrimary6X : public SubscribeAttribute { ~SubscribeAttributeColorControlPrimary6X() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000028) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -55654,12 +57045,14 @@ class ReadColorControlPrimary6Y : public ReadAttribute { ~ReadColorControlPrimary6Y() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000029) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePrimary6YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.Primary6Y response %@", [value description]); if (error != nil) { @@ -55680,11 +57073,13 @@ class SubscribeAttributeColorControlPrimary6Y : public SubscribeAttribute { ~SubscribeAttributeColorControlPrimary6Y() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000029) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -55718,12 +57113,14 @@ class ReadColorControlPrimary6Intensity : public ReadAttribute { ~ReadColorControlPrimary6Intensity() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x0000002A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePrimary6IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.Primary6Intensity response %@", [value description]); if (error != nil) { @@ -55744,11 +57141,13 @@ class SubscribeAttributeColorControlPrimary6Intensity : public SubscribeAttribut ~SubscribeAttributeColorControlPrimary6Intensity() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x0000002A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -55782,12 +57181,14 @@ class ReadColorControlWhitePointX : public ReadAttribute { ~ReadColorControlWhitePointX() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000030) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeWhitePointXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.WhitePointX response %@", [value description]); if (error != nil) { @@ -55811,13 +57212,15 @@ class WriteColorControlWhitePointX : public WriteAttribute { ~WriteColorControlWhitePointX() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) WriteAttribute (0x00000030) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; @@ -55846,11 +57249,13 @@ class SubscribeAttributeColorControlWhitePointX : public SubscribeAttribute { ~SubscribeAttributeColorControlWhitePointX() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000030) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -55884,12 +57289,14 @@ class ReadColorControlWhitePointY : public ReadAttribute { ~ReadColorControlWhitePointY() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000031) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeWhitePointYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.WhitePointY response %@", [value description]); if (error != nil) { @@ -55913,13 +57320,15 @@ class WriteColorControlWhitePointY : public WriteAttribute { ~WriteColorControlWhitePointY() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) WriteAttribute (0x00000031) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; @@ -55948,11 +57357,13 @@ class SubscribeAttributeColorControlWhitePointY : public SubscribeAttribute { ~SubscribeAttributeColorControlWhitePointY() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000031) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -55986,12 +57397,14 @@ class ReadColorControlColorPointRX : public ReadAttribute { ~ReadColorControlColorPointRX() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000032) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeColorPointRXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.ColorPointRX response %@", [value description]); if (error != nil) { @@ -56015,13 +57428,15 @@ class WriteColorControlColorPointRX : public WriteAttribute { ~WriteColorControlColorPointRX() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) WriteAttribute (0x00000032) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; @@ -56050,11 +57465,13 @@ class SubscribeAttributeColorControlColorPointRX : public SubscribeAttribute { ~SubscribeAttributeColorControlColorPointRX() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000032) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -56088,12 +57505,14 @@ class ReadColorControlColorPointRY : public ReadAttribute { ~ReadColorControlColorPointRY() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000033) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeColorPointRYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.ColorPointRY response %@", [value description]); if (error != nil) { @@ -56117,13 +57536,15 @@ class WriteColorControlColorPointRY : public WriteAttribute { ~WriteColorControlColorPointRY() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) WriteAttribute (0x00000033) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; @@ -56152,11 +57573,13 @@ class SubscribeAttributeColorControlColorPointRY : public SubscribeAttribute { ~SubscribeAttributeColorControlColorPointRY() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000033) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -56190,12 +57613,14 @@ class ReadColorControlColorPointRIntensity : public ReadAttribute { ~ReadColorControlColorPointRIntensity() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000034) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeColorPointRIntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.ColorPointRIntensity response %@", [value description]); if (error != nil) { @@ -56219,13 +57644,15 @@ class WriteColorControlColorPointRIntensity : public WriteAttribute { ~WriteColorControlColorPointRIntensity() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) WriteAttribute (0x00000034) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithUnsignedChar:mValue]; @@ -56254,11 +57681,13 @@ class SubscribeAttributeColorControlColorPointRIntensity : public SubscribeAttri ~SubscribeAttributeColorControlColorPointRIntensity() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000034) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -56292,12 +57721,14 @@ class ReadColorControlColorPointGX : public ReadAttribute { ~ReadColorControlColorPointGX() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000036) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeColorPointGXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.ColorPointGX response %@", [value description]); if (error != nil) { @@ -56321,13 +57752,15 @@ class WriteColorControlColorPointGX : public WriteAttribute { ~WriteColorControlColorPointGX() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) WriteAttribute (0x00000036) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; @@ -56356,11 +57789,13 @@ class SubscribeAttributeColorControlColorPointGX : public SubscribeAttribute { ~SubscribeAttributeColorControlColorPointGX() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000036) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -56394,12 +57829,14 @@ class ReadColorControlColorPointGY : public ReadAttribute { ~ReadColorControlColorPointGY() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000037) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeColorPointGYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.ColorPointGY response %@", [value description]); if (error != nil) { @@ -56423,13 +57860,15 @@ class WriteColorControlColorPointGY : public WriteAttribute { ~WriteColorControlColorPointGY() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) WriteAttribute (0x00000037) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; @@ -56458,11 +57897,13 @@ class SubscribeAttributeColorControlColorPointGY : public SubscribeAttribute { ~SubscribeAttributeColorControlColorPointGY() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000037) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -56496,12 +57937,14 @@ class ReadColorControlColorPointGIntensity : public ReadAttribute { ~ReadColorControlColorPointGIntensity() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00000038) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeColorPointGIntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.ColorPointGIntensity response %@", [value description]); if (error != nil) { @@ -56525,13 +57968,15 @@ class WriteColorControlColorPointGIntensity : public WriteAttribute { ~WriteColorControlColorPointGIntensity() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) WriteAttribute (0x00000038) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithUnsignedChar:mValue]; @@ -56560,11 +58005,13 @@ class SubscribeAttributeColorControlColorPointGIntensity : public SubscribeAttri ~SubscribeAttributeColorControlColorPointGIntensity() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00000038) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -56598,12 +58045,14 @@ class ReadColorControlColorPointBX : public ReadAttribute { ~ReadColorControlColorPointBX() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x0000003A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeColorPointBXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.ColorPointBX response %@", [value description]); if (error != nil) { @@ -56627,13 +58076,15 @@ class WriteColorControlColorPointBX : public WriteAttribute { ~WriteColorControlColorPointBX() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) WriteAttribute (0x0000003A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; @@ -56662,11 +58113,13 @@ class SubscribeAttributeColorControlColorPointBX : public SubscribeAttribute { ~SubscribeAttributeColorControlColorPointBX() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x0000003A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -56700,12 +58153,14 @@ class ReadColorControlColorPointBY : public ReadAttribute { ~ReadColorControlColorPointBY() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x0000003B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeColorPointBYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.ColorPointBY response %@", [value description]); if (error != nil) { @@ -56729,13 +58184,15 @@ class WriteColorControlColorPointBY : public WriteAttribute { ~WriteColorControlColorPointBY() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) WriteAttribute (0x0000003B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; @@ -56764,11 +58221,13 @@ class SubscribeAttributeColorControlColorPointBY : public SubscribeAttribute { ~SubscribeAttributeColorControlColorPointBY() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x0000003B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -56802,12 +58261,14 @@ class ReadColorControlColorPointBIntensity : public ReadAttribute { ~ReadColorControlColorPointBIntensity() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x0000003C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeColorPointBIntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.ColorPointBIntensity response %@", [value description]); if (error != nil) { @@ -56831,13 +58292,15 @@ class WriteColorControlColorPointBIntensity : public WriteAttribute { ~WriteColorControlColorPointBIntensity() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) WriteAttribute (0x0000003C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithUnsignedChar:mValue]; @@ -56866,11 +58329,13 @@ class SubscribeAttributeColorControlColorPointBIntensity : public SubscribeAttri ~SubscribeAttributeColorControlColorPointBIntensity() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x0000003C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -56904,12 +58369,14 @@ class ReadColorControlEnhancedCurrentHue : public ReadAttribute { ~ReadColorControlEnhancedCurrentHue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00004000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.EnhancedCurrentHue response %@", [value description]); if (error != nil) { @@ -56930,11 +58397,13 @@ class SubscribeAttributeColorControlEnhancedCurrentHue : public SubscribeAttribu ~SubscribeAttributeColorControlEnhancedCurrentHue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00004000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -56968,12 +58437,14 @@ class ReadColorControlEnhancedColorMode : public ReadAttribute { ~ReadColorControlEnhancedColorMode() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00004001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeEnhancedColorModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.EnhancedColorMode response %@", [value description]); if (error != nil) { @@ -56994,11 +58465,13 @@ class SubscribeAttributeColorControlEnhancedColorMode : public SubscribeAttribut ~SubscribeAttributeColorControlEnhancedColorMode() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00004001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -57032,12 +58505,14 @@ class ReadColorControlColorLoopActive : public ReadAttribute { ~ReadColorControlColorLoopActive() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00004002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeColorLoopActiveWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.ColorLoopActive response %@", [value description]); if (error != nil) { @@ -57058,11 +58533,13 @@ class SubscribeAttributeColorControlColorLoopActive : public SubscribeAttribute ~SubscribeAttributeColorControlColorLoopActive() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00004002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -57096,12 +58573,14 @@ class ReadColorControlColorLoopDirection : public ReadAttribute { ~ReadColorControlColorLoopDirection() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00004003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeColorLoopDirectionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.ColorLoopDirection response %@", [value description]); if (error != nil) { @@ -57122,11 +58601,13 @@ class SubscribeAttributeColorControlColorLoopDirection : public SubscribeAttribu ~SubscribeAttributeColorControlColorLoopDirection() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00004003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -57160,12 +58641,14 @@ class ReadColorControlColorLoopTime : public ReadAttribute { ~ReadColorControlColorLoopTime() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00004004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeColorLoopTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.ColorLoopTime response %@", [value description]); if (error != nil) { @@ -57186,11 +58669,13 @@ class SubscribeAttributeColorControlColorLoopTime : public SubscribeAttribute { ~SubscribeAttributeColorControlColorLoopTime() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00004004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -57224,12 +58709,14 @@ class ReadColorControlColorLoopStartEnhancedHue : public ReadAttribute { ~ReadColorControlColorLoopStartEnhancedHue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00004005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeColorLoopStartEnhancedHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.ColorLoopStartEnhancedHue response %@", [value description]); @@ -57251,11 +58738,13 @@ class SubscribeAttributeColorControlColorLoopStartEnhancedHue : public Subscribe ~SubscribeAttributeColorControlColorLoopStartEnhancedHue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00004005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -57289,12 +58778,14 @@ class ReadColorControlColorLoopStoredEnhancedHue : public ReadAttribute { ~ReadColorControlColorLoopStoredEnhancedHue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00004006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeColorLoopStoredEnhancedHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.ColorLoopStoredEnhancedHue response %@", [value description]); @@ -57316,11 +58807,13 @@ class SubscribeAttributeColorControlColorLoopStoredEnhancedHue : public Subscrib ~SubscribeAttributeColorControlColorLoopStoredEnhancedHue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00004006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -57354,12 +58847,14 @@ class ReadColorControlColorCapabilities : public ReadAttribute { ~ReadColorControlColorCapabilities() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x0000400A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeColorCapabilitiesWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.ColorCapabilities response %@", [value description]); if (error != nil) { @@ -57380,11 +58875,13 @@ class SubscribeAttributeColorControlColorCapabilities : public SubscribeAttribut ~SubscribeAttributeColorControlColorCapabilities() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x0000400A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -57418,12 +58915,14 @@ class ReadColorControlColorTempPhysicalMinMireds : public ReadAttribute { ~ReadColorControlColorTempPhysicalMinMireds() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x0000400B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeColorTempPhysicalMinMiredsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.ColorTempPhysicalMinMireds response %@", [value description]); @@ -57445,11 +58944,13 @@ class SubscribeAttributeColorControlColorTempPhysicalMinMireds : public Subscrib ~SubscribeAttributeColorControlColorTempPhysicalMinMireds() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x0000400B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -57483,12 +58984,14 @@ class ReadColorControlColorTempPhysicalMaxMireds : public ReadAttribute { ~ReadColorControlColorTempPhysicalMaxMireds() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x0000400C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeColorTempPhysicalMaxMiredsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.ColorTempPhysicalMaxMireds response %@", [value description]); @@ -57510,11 +59013,13 @@ class SubscribeAttributeColorControlColorTempPhysicalMaxMireds : public Subscrib ~SubscribeAttributeColorControlColorTempPhysicalMaxMireds() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x0000400C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -57548,12 +59053,14 @@ class ReadColorControlCoupleColorTempToLevelMinMireds : public ReadAttribute { ~ReadColorControlCoupleColorTempToLevelMinMireds() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x0000400D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeCoupleColorTempToLevelMinMiredsWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.CoupleColorTempToLevelMinMireds response %@", [value description]); @@ -57575,11 +59082,13 @@ class SubscribeAttributeColorControlCoupleColorTempToLevelMinMireds : public Sub ~SubscribeAttributeColorControlCoupleColorTempToLevelMinMireds() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x0000400D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -57613,12 +59122,14 @@ class ReadColorControlStartUpColorTemperatureMireds : public ReadAttribute { ~ReadColorControlStartUpColorTemperatureMireds() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x00004010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeStartUpColorTemperatureMiredsWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.StartUpColorTemperatureMireds response %@", [value description]); @@ -57643,13 +59154,15 @@ class WriteColorControlStartUpColorTemperatureMireds : public WriteAttribute { ~WriteColorControlStartUpColorTemperatureMireds() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) WriteAttribute (0x00004010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; @@ -57679,11 +59192,13 @@ class SubscribeAttributeColorControlStartUpColorTemperatureMireds : public Subsc ~SubscribeAttributeColorControlStartUpColorTemperatureMireds() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x00004010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -57717,12 +59232,14 @@ class ReadColorControlGeneratedCommandList : public ReadAttribute { ~ReadColorControlGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -57743,11 +59260,13 @@ class SubscribeAttributeColorControlGeneratedCommandList : public SubscribeAttri ~SubscribeAttributeColorControlGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -57781,12 +59300,14 @@ class ReadColorControlAcceptedCommandList : public ReadAttribute { ~ReadColorControlAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -57807,11 +59328,13 @@ class SubscribeAttributeColorControlAcceptedCommandList : public SubscribeAttrib ~SubscribeAttributeColorControlAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -57845,12 +59368,14 @@ class ReadColorControlAttributeList : public ReadAttribute { ~ReadColorControlAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.AttributeList response %@", [value description]); if (error != nil) { @@ -57871,11 +59396,13 @@ class SubscribeAttributeColorControlAttributeList : public SubscribeAttribute { ~SubscribeAttributeColorControlAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -57909,12 +59436,14 @@ class ReadColorControlFeatureMap : public ReadAttribute { ~ReadColorControlFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.FeatureMap response %@", [value description]); if (error != nil) { @@ -57935,11 +59464,13 @@ class SubscribeAttributeColorControlFeatureMap : public SubscribeAttribute { ~SubscribeAttributeColorControlFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -57973,12 +59504,14 @@ class ReadColorControlClusterRevision : public ReadAttribute { ~ReadColorControlClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ColorControl.ClusterRevision response %@", [value description]); if (error != nil) { @@ -57999,11 +59532,13 @@ class SubscribeAttributeColorControlClusterRevision : public SubscribeAttribute ~SubscribeAttributeColorControlClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000300) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRColorControl * cluster = [[MTRColorControl alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -58057,14 +59592,13 @@ class ReadIlluminanceMeasurementMeasuredValue : public ReadAttribute { ~ReadIlluminanceMeasurementMeasuredValue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000400) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRIlluminanceMeasurement * cluster = [[MTRIlluminanceMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterIlluminanceMeasurement * cluster = + [[MTRBaseClusterIlluminanceMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"IlluminanceMeasurement.MeasuredValue response %@", [value description]); if (error != nil) { @@ -58085,13 +59619,12 @@ class SubscribeAttributeIlluminanceMeasurementMeasuredValue : public SubscribeAt ~SubscribeAttributeIlluminanceMeasurementMeasuredValue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000400) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRIlluminanceMeasurement * cluster = [[MTRIlluminanceMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterIlluminanceMeasurement * cluster = + [[MTRBaseClusterIlluminanceMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -58125,14 +59658,13 @@ class ReadIlluminanceMeasurementMinMeasuredValue : public ReadAttribute { ~ReadIlluminanceMeasurementMinMeasuredValue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000400) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRIlluminanceMeasurement * cluster = [[MTRIlluminanceMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterIlluminanceMeasurement * cluster = + [[MTRBaseClusterIlluminanceMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeMinMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"IlluminanceMeasurement.MinMeasuredValue response %@", [value description]); if (error != nil) { @@ -58153,13 +59685,12 @@ class SubscribeAttributeIlluminanceMeasurementMinMeasuredValue : public Subscrib ~SubscribeAttributeIlluminanceMeasurementMinMeasuredValue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000400) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRIlluminanceMeasurement * cluster = [[MTRIlluminanceMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterIlluminanceMeasurement * cluster = + [[MTRBaseClusterIlluminanceMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -58193,14 +59724,13 @@ class ReadIlluminanceMeasurementMaxMeasuredValue : public ReadAttribute { ~ReadIlluminanceMeasurementMaxMeasuredValue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000400) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRIlluminanceMeasurement * cluster = [[MTRIlluminanceMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterIlluminanceMeasurement * cluster = + [[MTRBaseClusterIlluminanceMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeMaxMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"IlluminanceMeasurement.MaxMeasuredValue response %@", [value description]); if (error != nil) { @@ -58221,13 +59751,12 @@ class SubscribeAttributeIlluminanceMeasurementMaxMeasuredValue : public Subscrib ~SubscribeAttributeIlluminanceMeasurementMaxMeasuredValue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000400) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRIlluminanceMeasurement * cluster = [[MTRIlluminanceMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterIlluminanceMeasurement * cluster = + [[MTRBaseClusterIlluminanceMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -58261,14 +59790,13 @@ class ReadIlluminanceMeasurementTolerance : public ReadAttribute { ~ReadIlluminanceMeasurementTolerance() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000400) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRIlluminanceMeasurement * cluster = [[MTRIlluminanceMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterIlluminanceMeasurement * cluster = + [[MTRBaseClusterIlluminanceMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeToleranceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"IlluminanceMeasurement.Tolerance response %@", [value description]); if (error != nil) { @@ -58289,13 +59817,12 @@ class SubscribeAttributeIlluminanceMeasurementTolerance : public SubscribeAttrib ~SubscribeAttributeIlluminanceMeasurementTolerance() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000400) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRIlluminanceMeasurement * cluster = [[MTRIlluminanceMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterIlluminanceMeasurement * cluster = + [[MTRBaseClusterIlluminanceMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -58329,14 +59856,13 @@ class ReadIlluminanceMeasurementLightSensorType : public ReadAttribute { ~ReadIlluminanceMeasurementLightSensorType() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000400) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRIlluminanceMeasurement * cluster = [[MTRIlluminanceMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterIlluminanceMeasurement * cluster = + [[MTRBaseClusterIlluminanceMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeLightSensorTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"IlluminanceMeasurement.LightSensorType response %@", [value description]); if (error != nil) { @@ -58357,13 +59883,12 @@ class SubscribeAttributeIlluminanceMeasurementLightSensorType : public Subscribe ~SubscribeAttributeIlluminanceMeasurementLightSensorType() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000400) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRIlluminanceMeasurement * cluster = [[MTRIlluminanceMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterIlluminanceMeasurement * cluster = + [[MTRBaseClusterIlluminanceMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -58397,14 +59922,13 @@ class ReadIlluminanceMeasurementGeneratedCommandList : public ReadAttribute { ~ReadIlluminanceMeasurementGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000400) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRIlluminanceMeasurement * cluster = [[MTRIlluminanceMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterIlluminanceMeasurement * cluster = + [[MTRBaseClusterIlluminanceMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"IlluminanceMeasurement.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -58425,13 +59949,12 @@ class SubscribeAttributeIlluminanceMeasurementGeneratedCommandList : public Subs ~SubscribeAttributeIlluminanceMeasurementGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000400) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRIlluminanceMeasurement * cluster = [[MTRIlluminanceMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterIlluminanceMeasurement * cluster = + [[MTRBaseClusterIlluminanceMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -58465,14 +59988,13 @@ class ReadIlluminanceMeasurementAcceptedCommandList : public ReadAttribute { ~ReadIlluminanceMeasurementAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000400) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRIlluminanceMeasurement * cluster = [[MTRIlluminanceMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterIlluminanceMeasurement * cluster = + [[MTRBaseClusterIlluminanceMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"IlluminanceMeasurement.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -58493,13 +60015,12 @@ class SubscribeAttributeIlluminanceMeasurementAcceptedCommandList : public Subsc ~SubscribeAttributeIlluminanceMeasurementAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000400) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRIlluminanceMeasurement * cluster = [[MTRIlluminanceMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterIlluminanceMeasurement * cluster = + [[MTRBaseClusterIlluminanceMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -58533,14 +60054,13 @@ class ReadIlluminanceMeasurementAttributeList : public ReadAttribute { ~ReadIlluminanceMeasurementAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000400) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRIlluminanceMeasurement * cluster = [[MTRIlluminanceMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterIlluminanceMeasurement * cluster = + [[MTRBaseClusterIlluminanceMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"IlluminanceMeasurement.AttributeList response %@", [value description]); if (error != nil) { @@ -58561,13 +60081,12 @@ class SubscribeAttributeIlluminanceMeasurementAttributeList : public SubscribeAt ~SubscribeAttributeIlluminanceMeasurementAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000400) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRIlluminanceMeasurement * cluster = [[MTRIlluminanceMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterIlluminanceMeasurement * cluster = + [[MTRBaseClusterIlluminanceMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -58601,14 +60120,13 @@ class ReadIlluminanceMeasurementFeatureMap : public ReadAttribute { ~ReadIlluminanceMeasurementFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000400) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRIlluminanceMeasurement * cluster = [[MTRIlluminanceMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterIlluminanceMeasurement * cluster = + [[MTRBaseClusterIlluminanceMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"IlluminanceMeasurement.FeatureMap response %@", [value description]); if (error != nil) { @@ -58629,13 +60147,12 @@ class SubscribeAttributeIlluminanceMeasurementFeatureMap : public SubscribeAttri ~SubscribeAttributeIlluminanceMeasurementFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000400) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRIlluminanceMeasurement * cluster = [[MTRIlluminanceMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterIlluminanceMeasurement * cluster = + [[MTRBaseClusterIlluminanceMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -58669,14 +60186,13 @@ class ReadIlluminanceMeasurementClusterRevision : public ReadAttribute { ~ReadIlluminanceMeasurementClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000400) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRIlluminanceMeasurement * cluster = [[MTRIlluminanceMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterIlluminanceMeasurement * cluster = + [[MTRBaseClusterIlluminanceMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"IlluminanceMeasurement.ClusterRevision response %@", [value description]); if (error != nil) { @@ -58697,13 +60213,12 @@ class SubscribeAttributeIlluminanceMeasurementClusterRevision : public Subscribe ~SubscribeAttributeIlluminanceMeasurementClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000400) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRIlluminanceMeasurement * cluster = [[MTRIlluminanceMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterIlluminanceMeasurement * cluster = + [[MTRBaseClusterIlluminanceMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -58756,14 +60271,13 @@ class ReadTemperatureMeasurementMeasuredValue : public ReadAttribute { ~ReadTemperatureMeasurementMeasuredValue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000402) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTemperatureMeasurement * cluster = [[MTRTemperatureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterTemperatureMeasurement * cluster = + [[MTRBaseClusterTemperatureMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TemperatureMeasurement.MeasuredValue response %@", [value description]); if (error != nil) { @@ -58784,13 +60298,12 @@ class SubscribeAttributeTemperatureMeasurementMeasuredValue : public SubscribeAt ~SubscribeAttributeTemperatureMeasurementMeasuredValue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000402) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTemperatureMeasurement * cluster = [[MTRTemperatureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterTemperatureMeasurement * cluster = + [[MTRBaseClusterTemperatureMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -58824,14 +60337,13 @@ class ReadTemperatureMeasurementMinMeasuredValue : public ReadAttribute { ~ReadTemperatureMeasurementMinMeasuredValue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000402) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTemperatureMeasurement * cluster = [[MTRTemperatureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterTemperatureMeasurement * cluster = + [[MTRBaseClusterTemperatureMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeMinMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TemperatureMeasurement.MinMeasuredValue response %@", [value description]); if (error != nil) { @@ -58852,13 +60364,12 @@ class SubscribeAttributeTemperatureMeasurementMinMeasuredValue : public Subscrib ~SubscribeAttributeTemperatureMeasurementMinMeasuredValue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000402) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTemperatureMeasurement * cluster = [[MTRTemperatureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterTemperatureMeasurement * cluster = + [[MTRBaseClusterTemperatureMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -58892,14 +60403,13 @@ class ReadTemperatureMeasurementMaxMeasuredValue : public ReadAttribute { ~ReadTemperatureMeasurementMaxMeasuredValue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000402) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTemperatureMeasurement * cluster = [[MTRTemperatureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterTemperatureMeasurement * cluster = + [[MTRBaseClusterTemperatureMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeMaxMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TemperatureMeasurement.MaxMeasuredValue response %@", [value description]); if (error != nil) { @@ -58920,13 +60430,12 @@ class SubscribeAttributeTemperatureMeasurementMaxMeasuredValue : public Subscrib ~SubscribeAttributeTemperatureMeasurementMaxMeasuredValue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000402) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTemperatureMeasurement * cluster = [[MTRTemperatureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterTemperatureMeasurement * cluster = + [[MTRBaseClusterTemperatureMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -58960,14 +60469,13 @@ class ReadTemperatureMeasurementTolerance : public ReadAttribute { ~ReadTemperatureMeasurementTolerance() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000402) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTemperatureMeasurement * cluster = [[MTRTemperatureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterTemperatureMeasurement * cluster = + [[MTRBaseClusterTemperatureMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeToleranceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TemperatureMeasurement.Tolerance response %@", [value description]); if (error != nil) { @@ -58988,13 +60496,12 @@ class SubscribeAttributeTemperatureMeasurementTolerance : public SubscribeAttrib ~SubscribeAttributeTemperatureMeasurementTolerance() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000402) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTemperatureMeasurement * cluster = [[MTRTemperatureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterTemperatureMeasurement * cluster = + [[MTRBaseClusterTemperatureMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -59028,14 +60535,13 @@ class ReadTemperatureMeasurementGeneratedCommandList : public ReadAttribute { ~ReadTemperatureMeasurementGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000402) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTemperatureMeasurement * cluster = [[MTRTemperatureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterTemperatureMeasurement * cluster = + [[MTRBaseClusterTemperatureMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"TemperatureMeasurement.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -59056,13 +60562,12 @@ class SubscribeAttributeTemperatureMeasurementGeneratedCommandList : public Subs ~SubscribeAttributeTemperatureMeasurementGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000402) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTemperatureMeasurement * cluster = [[MTRTemperatureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterTemperatureMeasurement * cluster = + [[MTRBaseClusterTemperatureMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -59096,14 +60601,13 @@ class ReadTemperatureMeasurementAcceptedCommandList : public ReadAttribute { ~ReadTemperatureMeasurementAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000402) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTemperatureMeasurement * cluster = [[MTRTemperatureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterTemperatureMeasurement * cluster = + [[MTRBaseClusterTemperatureMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"TemperatureMeasurement.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -59124,13 +60628,12 @@ class SubscribeAttributeTemperatureMeasurementAcceptedCommandList : public Subsc ~SubscribeAttributeTemperatureMeasurementAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000402) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTemperatureMeasurement * cluster = [[MTRTemperatureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterTemperatureMeasurement * cluster = + [[MTRBaseClusterTemperatureMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -59164,14 +60667,13 @@ class ReadTemperatureMeasurementAttributeList : public ReadAttribute { ~ReadTemperatureMeasurementAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000402) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTemperatureMeasurement * cluster = [[MTRTemperatureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterTemperatureMeasurement * cluster = + [[MTRBaseClusterTemperatureMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"TemperatureMeasurement.AttributeList response %@", [value description]); if (error != nil) { @@ -59192,13 +60694,12 @@ class SubscribeAttributeTemperatureMeasurementAttributeList : public SubscribeAt ~SubscribeAttributeTemperatureMeasurementAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000402) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTemperatureMeasurement * cluster = [[MTRTemperatureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterTemperatureMeasurement * cluster = + [[MTRBaseClusterTemperatureMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -59232,14 +60733,13 @@ class ReadTemperatureMeasurementFeatureMap : public ReadAttribute { ~ReadTemperatureMeasurementFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000402) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTemperatureMeasurement * cluster = [[MTRTemperatureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterTemperatureMeasurement * cluster = + [[MTRBaseClusterTemperatureMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TemperatureMeasurement.FeatureMap response %@", [value description]); if (error != nil) { @@ -59260,13 +60760,12 @@ class SubscribeAttributeTemperatureMeasurementFeatureMap : public SubscribeAttri ~SubscribeAttributeTemperatureMeasurementFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000402) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTemperatureMeasurement * cluster = [[MTRTemperatureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterTemperatureMeasurement * cluster = + [[MTRBaseClusterTemperatureMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -59300,14 +60799,13 @@ class ReadTemperatureMeasurementClusterRevision : public ReadAttribute { ~ReadTemperatureMeasurementClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000402) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTemperatureMeasurement * cluster = [[MTRTemperatureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterTemperatureMeasurement * cluster = + [[MTRBaseClusterTemperatureMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TemperatureMeasurement.ClusterRevision response %@", [value description]); if (error != nil) { @@ -59328,13 +60826,12 @@ class SubscribeAttributeTemperatureMeasurementClusterRevision : public Subscribe ~SubscribeAttributeTemperatureMeasurementClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000402) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTemperatureMeasurement * cluster = [[MTRTemperatureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterTemperatureMeasurement * cluster = + [[MTRBaseClusterTemperatureMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -59392,14 +60889,14 @@ class ReadPressureMeasurementMeasuredValue : public ReadAttribute { ~ReadPressureMeasurementMeasuredValue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPressureMeasurement * cluster = [[MTRBaseClusterPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PressureMeasurement.MeasuredValue response %@", [value description]); if (error != nil) { @@ -59420,13 +60917,13 @@ class SubscribeAttributePressureMeasurementMeasuredValue : public SubscribeAttri ~SubscribeAttributePressureMeasurementMeasuredValue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPressureMeasurement * cluster = [[MTRBaseClusterPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -59460,14 +60957,14 @@ class ReadPressureMeasurementMinMeasuredValue : public ReadAttribute { ~ReadPressureMeasurementMinMeasuredValue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPressureMeasurement * cluster = [[MTRBaseClusterPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMinMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PressureMeasurement.MinMeasuredValue response %@", [value description]); if (error != nil) { @@ -59488,13 +60985,13 @@ class SubscribeAttributePressureMeasurementMinMeasuredValue : public SubscribeAt ~SubscribeAttributePressureMeasurementMinMeasuredValue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPressureMeasurement * cluster = [[MTRBaseClusterPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -59528,14 +61025,14 @@ class ReadPressureMeasurementMaxMeasuredValue : public ReadAttribute { ~ReadPressureMeasurementMaxMeasuredValue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPressureMeasurement * cluster = [[MTRBaseClusterPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMaxMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PressureMeasurement.MaxMeasuredValue response %@", [value description]); if (error != nil) { @@ -59556,13 +61053,13 @@ class SubscribeAttributePressureMeasurementMaxMeasuredValue : public SubscribeAt ~SubscribeAttributePressureMeasurementMaxMeasuredValue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPressureMeasurement * cluster = [[MTRBaseClusterPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -59596,14 +61093,14 @@ class ReadPressureMeasurementTolerance : public ReadAttribute { ~ReadPressureMeasurementTolerance() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPressureMeasurement * cluster = [[MTRBaseClusterPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeToleranceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PressureMeasurement.Tolerance response %@", [value description]); if (error != nil) { @@ -59624,13 +61121,13 @@ class SubscribeAttributePressureMeasurementTolerance : public SubscribeAttribute ~SubscribeAttributePressureMeasurementTolerance() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPressureMeasurement * cluster = [[MTRBaseClusterPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -59664,14 +61161,14 @@ class ReadPressureMeasurementScaledValue : public ReadAttribute { ~ReadPressureMeasurementScaledValue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReadAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPressureMeasurement * cluster = [[MTRBaseClusterPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeScaledValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PressureMeasurement.ScaledValue response %@", [value description]); if (error != nil) { @@ -59692,13 +61189,13 @@ class SubscribeAttributePressureMeasurementScaledValue : public SubscribeAttribu ~SubscribeAttributePressureMeasurementScaledValue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReportAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPressureMeasurement * cluster = [[MTRBaseClusterPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -59732,14 +61229,14 @@ class ReadPressureMeasurementMinScaledValue : public ReadAttribute { ~ReadPressureMeasurementMinScaledValue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReadAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPressureMeasurement * cluster = [[MTRBaseClusterPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMinScaledValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PressureMeasurement.MinScaledValue response %@", [value description]); if (error != nil) { @@ -59760,13 +61257,13 @@ class SubscribeAttributePressureMeasurementMinScaledValue : public SubscribeAttr ~SubscribeAttributePressureMeasurementMinScaledValue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReportAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPressureMeasurement * cluster = [[MTRBaseClusterPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -59800,14 +61297,14 @@ class ReadPressureMeasurementMaxScaledValue : public ReadAttribute { ~ReadPressureMeasurementMaxScaledValue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReadAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPressureMeasurement * cluster = [[MTRBaseClusterPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMaxScaledValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PressureMeasurement.MaxScaledValue response %@", [value description]); if (error != nil) { @@ -59828,13 +61325,13 @@ class SubscribeAttributePressureMeasurementMaxScaledValue : public SubscribeAttr ~SubscribeAttributePressureMeasurementMaxScaledValue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReportAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPressureMeasurement * cluster = [[MTRBaseClusterPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -59868,14 +61365,14 @@ class ReadPressureMeasurementScaledTolerance : public ReadAttribute { ~ReadPressureMeasurementScaledTolerance() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReadAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPressureMeasurement * cluster = [[MTRBaseClusterPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeScaledToleranceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PressureMeasurement.ScaledTolerance response %@", [value description]); if (error != nil) { @@ -59896,13 +61393,13 @@ class SubscribeAttributePressureMeasurementScaledTolerance : public SubscribeAtt ~SubscribeAttributePressureMeasurementScaledTolerance() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReportAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPressureMeasurement * cluster = [[MTRBaseClusterPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -59936,14 +61433,14 @@ class ReadPressureMeasurementScale : public ReadAttribute { ~ReadPressureMeasurementScale() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReadAttribute (0x00000014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPressureMeasurement * cluster = [[MTRBaseClusterPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeScaleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PressureMeasurement.Scale response %@", [value description]); if (error != nil) { @@ -59964,13 +61461,13 @@ class SubscribeAttributePressureMeasurementScale : public SubscribeAttribute { ~SubscribeAttributePressureMeasurementScale() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReportAttribute (0x00000014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPressureMeasurement * cluster = [[MTRBaseClusterPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -60004,14 +61501,14 @@ class ReadPressureMeasurementGeneratedCommandList : public ReadAttribute { ~ReadPressureMeasurementGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPressureMeasurement * cluster = [[MTRBaseClusterPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"PressureMeasurement.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -60032,13 +61529,13 @@ class SubscribeAttributePressureMeasurementGeneratedCommandList : public Subscri ~SubscribeAttributePressureMeasurementGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPressureMeasurement * cluster = [[MTRBaseClusterPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -60072,14 +61569,14 @@ class ReadPressureMeasurementAcceptedCommandList : public ReadAttribute { ~ReadPressureMeasurementAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPressureMeasurement * cluster = [[MTRBaseClusterPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"PressureMeasurement.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -60100,13 +61597,13 @@ class SubscribeAttributePressureMeasurementAcceptedCommandList : public Subscrib ~SubscribeAttributePressureMeasurementAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPressureMeasurement * cluster = [[MTRBaseClusterPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -60140,14 +61637,14 @@ class ReadPressureMeasurementAttributeList : public ReadAttribute { ~ReadPressureMeasurementAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPressureMeasurement * cluster = [[MTRBaseClusterPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"PressureMeasurement.AttributeList response %@", [value description]); if (error != nil) { @@ -60168,13 +61665,13 @@ class SubscribeAttributePressureMeasurementAttributeList : public SubscribeAttri ~SubscribeAttributePressureMeasurementAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPressureMeasurement * cluster = [[MTRBaseClusterPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -60208,14 +61705,14 @@ class ReadPressureMeasurementFeatureMap : public ReadAttribute { ~ReadPressureMeasurementFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPressureMeasurement * cluster = [[MTRBaseClusterPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PressureMeasurement.FeatureMap response %@", [value description]); if (error != nil) { @@ -60236,13 +61733,13 @@ class SubscribeAttributePressureMeasurementFeatureMap : public SubscribeAttribut ~SubscribeAttributePressureMeasurementFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPressureMeasurement * cluster = [[MTRBaseClusterPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -60276,14 +61773,14 @@ class ReadPressureMeasurementClusterRevision : public ReadAttribute { ~ReadPressureMeasurementClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPressureMeasurement * cluster = [[MTRBaseClusterPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"PressureMeasurement.ClusterRevision response %@", [value description]); if (error != nil) { @@ -60304,13 +61801,13 @@ class SubscribeAttributePressureMeasurementClusterRevision : public SubscribeAtt ~SubscribeAttributePressureMeasurementClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000403) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRPressureMeasurement * cluster = [[MTRPressureMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterPressureMeasurement * cluster = [[MTRBaseClusterPressureMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -60363,12 +61860,14 @@ class ReadFlowMeasurementMeasuredValue : public ReadAttribute { ~ReadFlowMeasurementMeasuredValue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000404) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFlowMeasurement * cluster = [[MTRFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFlowMeasurement * cluster = [[MTRBaseClusterFlowMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"FlowMeasurement.MeasuredValue response %@", [value description]); if (error != nil) { @@ -60389,11 +61888,13 @@ class SubscribeAttributeFlowMeasurementMeasuredValue : public SubscribeAttribute ~SubscribeAttributeFlowMeasurementMeasuredValue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000404) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFlowMeasurement * cluster = [[MTRFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFlowMeasurement * cluster = [[MTRBaseClusterFlowMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -60427,12 +61928,14 @@ class ReadFlowMeasurementMinMeasuredValue : public ReadAttribute { ~ReadFlowMeasurementMinMeasuredValue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000404) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFlowMeasurement * cluster = [[MTRFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFlowMeasurement * cluster = [[MTRBaseClusterFlowMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMinMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"FlowMeasurement.MinMeasuredValue response %@", [value description]); if (error != nil) { @@ -60453,11 +61956,13 @@ class SubscribeAttributeFlowMeasurementMinMeasuredValue : public SubscribeAttrib ~SubscribeAttributeFlowMeasurementMinMeasuredValue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000404) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFlowMeasurement * cluster = [[MTRFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFlowMeasurement * cluster = [[MTRBaseClusterFlowMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -60491,12 +61996,14 @@ class ReadFlowMeasurementMaxMeasuredValue : public ReadAttribute { ~ReadFlowMeasurementMaxMeasuredValue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000404) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFlowMeasurement * cluster = [[MTRFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFlowMeasurement * cluster = [[MTRBaseClusterFlowMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMaxMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"FlowMeasurement.MaxMeasuredValue response %@", [value description]); if (error != nil) { @@ -60517,11 +62024,13 @@ class SubscribeAttributeFlowMeasurementMaxMeasuredValue : public SubscribeAttrib ~SubscribeAttributeFlowMeasurementMaxMeasuredValue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000404) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFlowMeasurement * cluster = [[MTRFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFlowMeasurement * cluster = [[MTRBaseClusterFlowMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -60555,12 +62064,14 @@ class ReadFlowMeasurementTolerance : public ReadAttribute { ~ReadFlowMeasurementTolerance() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000404) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFlowMeasurement * cluster = [[MTRFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFlowMeasurement * cluster = [[MTRBaseClusterFlowMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeToleranceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"FlowMeasurement.Tolerance response %@", [value description]); if (error != nil) { @@ -60581,11 +62092,13 @@ class SubscribeAttributeFlowMeasurementTolerance : public SubscribeAttribute { ~SubscribeAttributeFlowMeasurementTolerance() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000404) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFlowMeasurement * cluster = [[MTRFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFlowMeasurement * cluster = [[MTRBaseClusterFlowMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -60619,12 +62132,14 @@ class ReadFlowMeasurementGeneratedCommandList : public ReadAttribute { ~ReadFlowMeasurementGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000404) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFlowMeasurement * cluster = [[MTRFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFlowMeasurement * cluster = [[MTRBaseClusterFlowMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"FlowMeasurement.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -60645,11 +62160,13 @@ class SubscribeAttributeFlowMeasurementGeneratedCommandList : public SubscribeAt ~SubscribeAttributeFlowMeasurementGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000404) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFlowMeasurement * cluster = [[MTRFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFlowMeasurement * cluster = [[MTRBaseClusterFlowMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -60683,12 +62200,14 @@ class ReadFlowMeasurementAcceptedCommandList : public ReadAttribute { ~ReadFlowMeasurementAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000404) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFlowMeasurement * cluster = [[MTRFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFlowMeasurement * cluster = [[MTRBaseClusterFlowMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"FlowMeasurement.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -60709,11 +62228,13 @@ class SubscribeAttributeFlowMeasurementAcceptedCommandList : public SubscribeAtt ~SubscribeAttributeFlowMeasurementAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000404) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFlowMeasurement * cluster = [[MTRFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFlowMeasurement * cluster = [[MTRBaseClusterFlowMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -60747,12 +62268,14 @@ class ReadFlowMeasurementAttributeList : public ReadAttribute { ~ReadFlowMeasurementAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000404) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFlowMeasurement * cluster = [[MTRFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFlowMeasurement * cluster = [[MTRBaseClusterFlowMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"FlowMeasurement.AttributeList response %@", [value description]); if (error != nil) { @@ -60773,11 +62296,13 @@ class SubscribeAttributeFlowMeasurementAttributeList : public SubscribeAttribute ~SubscribeAttributeFlowMeasurementAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000404) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFlowMeasurement * cluster = [[MTRFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFlowMeasurement * cluster = [[MTRBaseClusterFlowMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -60811,12 +62336,14 @@ class ReadFlowMeasurementFeatureMap : public ReadAttribute { ~ReadFlowMeasurementFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000404) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFlowMeasurement * cluster = [[MTRFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFlowMeasurement * cluster = [[MTRBaseClusterFlowMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"FlowMeasurement.FeatureMap response %@", [value description]); if (error != nil) { @@ -60837,11 +62364,13 @@ class SubscribeAttributeFlowMeasurementFeatureMap : public SubscribeAttribute { ~SubscribeAttributeFlowMeasurementFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000404) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFlowMeasurement * cluster = [[MTRFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFlowMeasurement * cluster = [[MTRBaseClusterFlowMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -60875,12 +62404,14 @@ class ReadFlowMeasurementClusterRevision : public ReadAttribute { ~ReadFlowMeasurementClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000404) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFlowMeasurement * cluster = [[MTRFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFlowMeasurement * cluster = [[MTRBaseClusterFlowMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"FlowMeasurement.ClusterRevision response %@", [value description]); if (error != nil) { @@ -60901,11 +62432,13 @@ class SubscribeAttributeFlowMeasurementClusterRevision : public SubscribeAttribu ~SubscribeAttributeFlowMeasurementClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000404) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRFlowMeasurement * cluster = [[MTRFlowMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterFlowMeasurement * cluster = [[MTRBaseClusterFlowMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -60958,14 +62491,13 @@ class ReadRelativeHumidityMeasurementMeasuredValue : public ReadAttribute { ~ReadRelativeHumidityMeasurementMeasuredValue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000405) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRRelativeHumidityMeasurement * cluster = [[MTRRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterRelativeHumidityMeasurement * cluster = + [[MTRBaseClusterRelativeHumidityMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"RelativeHumidityMeasurement.MeasuredValue response %@", [value description]); if (error != nil) { @@ -60986,13 +62518,12 @@ class SubscribeAttributeRelativeHumidityMeasurementMeasuredValue : public Subscr ~SubscribeAttributeRelativeHumidityMeasurementMeasuredValue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000405) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRRelativeHumidityMeasurement * cluster = [[MTRRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterRelativeHumidityMeasurement * cluster = + [[MTRBaseClusterRelativeHumidityMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -61026,14 +62557,13 @@ class ReadRelativeHumidityMeasurementMinMeasuredValue : public ReadAttribute { ~ReadRelativeHumidityMeasurementMinMeasuredValue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000405) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRRelativeHumidityMeasurement * cluster = [[MTRRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterRelativeHumidityMeasurement * cluster = + [[MTRBaseClusterRelativeHumidityMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeMinMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"RelativeHumidityMeasurement.MinMeasuredValue response %@", [value description]); if (error != nil) { @@ -61054,13 +62584,12 @@ class SubscribeAttributeRelativeHumidityMeasurementMinMeasuredValue : public Sub ~SubscribeAttributeRelativeHumidityMeasurementMinMeasuredValue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000405) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRRelativeHumidityMeasurement * cluster = [[MTRRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterRelativeHumidityMeasurement * cluster = + [[MTRBaseClusterRelativeHumidityMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -61094,14 +62623,13 @@ class ReadRelativeHumidityMeasurementMaxMeasuredValue : public ReadAttribute { ~ReadRelativeHumidityMeasurementMaxMeasuredValue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000405) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRRelativeHumidityMeasurement * cluster = [[MTRRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterRelativeHumidityMeasurement * cluster = + [[MTRBaseClusterRelativeHumidityMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeMaxMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"RelativeHumidityMeasurement.MaxMeasuredValue response %@", [value description]); if (error != nil) { @@ -61122,13 +62650,12 @@ class SubscribeAttributeRelativeHumidityMeasurementMaxMeasuredValue : public Sub ~SubscribeAttributeRelativeHumidityMeasurementMaxMeasuredValue() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000405) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRRelativeHumidityMeasurement * cluster = [[MTRRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterRelativeHumidityMeasurement * cluster = + [[MTRBaseClusterRelativeHumidityMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -61162,14 +62689,13 @@ class ReadRelativeHumidityMeasurementTolerance : public ReadAttribute { ~ReadRelativeHumidityMeasurementTolerance() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000405) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRRelativeHumidityMeasurement * cluster = [[MTRRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterRelativeHumidityMeasurement * cluster = + [[MTRBaseClusterRelativeHumidityMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeToleranceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"RelativeHumidityMeasurement.Tolerance response %@", [value description]); if (error != nil) { @@ -61190,13 +62716,12 @@ class SubscribeAttributeRelativeHumidityMeasurementTolerance : public SubscribeA ~SubscribeAttributeRelativeHumidityMeasurementTolerance() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000405) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRRelativeHumidityMeasurement * cluster = [[MTRRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterRelativeHumidityMeasurement * cluster = + [[MTRBaseClusterRelativeHumidityMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -61230,14 +62755,13 @@ class ReadRelativeHumidityMeasurementGeneratedCommandList : public ReadAttribute ~ReadRelativeHumidityMeasurementGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000405) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRRelativeHumidityMeasurement * cluster = [[MTRRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterRelativeHumidityMeasurement * cluster = + [[MTRBaseClusterRelativeHumidityMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"RelativeHumidityMeasurement.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -61258,13 +62782,12 @@ class SubscribeAttributeRelativeHumidityMeasurementGeneratedCommandList : public ~SubscribeAttributeRelativeHumidityMeasurementGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000405) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRRelativeHumidityMeasurement * cluster = [[MTRRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterRelativeHumidityMeasurement * cluster = + [[MTRBaseClusterRelativeHumidityMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -61298,14 +62821,13 @@ class ReadRelativeHumidityMeasurementAcceptedCommandList : public ReadAttribute ~ReadRelativeHumidityMeasurementAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000405) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRRelativeHumidityMeasurement * cluster = [[MTRRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterRelativeHumidityMeasurement * cluster = + [[MTRBaseClusterRelativeHumidityMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"RelativeHumidityMeasurement.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -61326,13 +62848,12 @@ class SubscribeAttributeRelativeHumidityMeasurementAcceptedCommandList : public ~SubscribeAttributeRelativeHumidityMeasurementAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000405) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRRelativeHumidityMeasurement * cluster = [[MTRRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterRelativeHumidityMeasurement * cluster = + [[MTRBaseClusterRelativeHumidityMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -61366,14 +62887,13 @@ class ReadRelativeHumidityMeasurementAttributeList : public ReadAttribute { ~ReadRelativeHumidityMeasurementAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000405) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRRelativeHumidityMeasurement * cluster = [[MTRRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterRelativeHumidityMeasurement * cluster = + [[MTRBaseClusterRelativeHumidityMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"RelativeHumidityMeasurement.AttributeList response %@", [value description]); if (error != nil) { @@ -61394,13 +62914,12 @@ class SubscribeAttributeRelativeHumidityMeasurementAttributeList : public Subscr ~SubscribeAttributeRelativeHumidityMeasurementAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000405) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRRelativeHumidityMeasurement * cluster = [[MTRRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterRelativeHumidityMeasurement * cluster = + [[MTRBaseClusterRelativeHumidityMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -61434,14 +62953,13 @@ class ReadRelativeHumidityMeasurementFeatureMap : public ReadAttribute { ~ReadRelativeHumidityMeasurementFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000405) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRRelativeHumidityMeasurement * cluster = [[MTRRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterRelativeHumidityMeasurement * cluster = + [[MTRBaseClusterRelativeHumidityMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"RelativeHumidityMeasurement.FeatureMap response %@", [value description]); if (error != nil) { @@ -61462,13 +62980,12 @@ class SubscribeAttributeRelativeHumidityMeasurementFeatureMap : public Subscribe ~SubscribeAttributeRelativeHumidityMeasurementFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000405) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRRelativeHumidityMeasurement * cluster = [[MTRRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterRelativeHumidityMeasurement * cluster = + [[MTRBaseClusterRelativeHumidityMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -61502,14 +63019,13 @@ class ReadRelativeHumidityMeasurementClusterRevision : public ReadAttribute { ~ReadRelativeHumidityMeasurementClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000405) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRRelativeHumidityMeasurement * cluster = [[MTRRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterRelativeHumidityMeasurement * cluster = + [[MTRBaseClusterRelativeHumidityMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"RelativeHumidityMeasurement.ClusterRevision response %@", [value description]); if (error != nil) { @@ -61530,13 +63046,12 @@ class SubscribeAttributeRelativeHumidityMeasurementClusterRevision : public Subs ~SubscribeAttributeRelativeHumidityMeasurementClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000405) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRRelativeHumidityMeasurement * cluster = [[MTRRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterRelativeHumidityMeasurement * cluster = + [[MTRBaseClusterRelativeHumidityMeasurement alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -61597,12 +63112,14 @@ class ReadOccupancySensingOccupancy : public ReadAttribute { ~ReadOccupancySensingOccupancy() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeOccupancyWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OccupancySensing.Occupancy response %@", [value description]); if (error != nil) { @@ -61623,11 +63140,13 @@ class SubscribeAttributeOccupancySensingOccupancy : public SubscribeAttribute { ~SubscribeAttributeOccupancySensingOccupancy() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -61661,12 +63180,14 @@ class ReadOccupancySensingOccupancySensorType : public ReadAttribute { ~ReadOccupancySensingOccupancySensorType() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeOccupancySensorTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OccupancySensing.OccupancySensorType response %@", [value description]); if (error != nil) { @@ -61687,11 +63208,13 @@ class SubscribeAttributeOccupancySensingOccupancySensorType : public SubscribeAt ~SubscribeAttributeOccupancySensingOccupancySensorType() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -61725,12 +63248,14 @@ class ReadOccupancySensingOccupancySensorTypeBitmap : public ReadAttribute { ~ReadOccupancySensingOccupancySensorTypeBitmap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeOccupancySensorTypeBitmapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OccupancySensing.OccupancySensorTypeBitmap response %@", [value description]); @@ -61752,11 +63277,13 @@ class SubscribeAttributeOccupancySensingOccupancySensorTypeBitmap : public Subsc ~SubscribeAttributeOccupancySensingOccupancySensorTypeBitmap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -61790,12 +63317,14 @@ class ReadOccupancySensingPirOccupiedToUnoccupiedDelay : public ReadAttribute { ~ReadOccupancySensingPirOccupiedToUnoccupiedDelay() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReadAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePirOccupiedToUnoccupiedDelayWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OccupancySensing.PirOccupiedToUnoccupiedDelay response %@", [value description]); @@ -61820,13 +63349,15 @@ class WriteOccupancySensingPirOccupiedToUnoccupiedDelay : public WriteAttribute ~WriteOccupancySensingPirOccupiedToUnoccupiedDelay() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) WriteAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; @@ -61856,11 +63387,13 @@ class SubscribeAttributeOccupancySensingPirOccupiedToUnoccupiedDelay : public Su ~SubscribeAttributeOccupancySensingPirOccupiedToUnoccupiedDelay() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReportAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -61894,12 +63427,14 @@ class ReadOccupancySensingPirUnoccupiedToOccupiedDelay : public ReadAttribute { ~ReadOccupancySensingPirUnoccupiedToOccupiedDelay() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReadAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePirUnoccupiedToOccupiedDelayWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OccupancySensing.PirUnoccupiedToOccupiedDelay response %@", [value description]); @@ -61924,13 +63459,15 @@ class WriteOccupancySensingPirUnoccupiedToOccupiedDelay : public WriteAttribute ~WriteOccupancySensingPirUnoccupiedToOccupiedDelay() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) WriteAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; @@ -61960,11 +63497,13 @@ class SubscribeAttributeOccupancySensingPirUnoccupiedToOccupiedDelay : public Su ~SubscribeAttributeOccupancySensingPirUnoccupiedToOccupiedDelay() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReportAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -61998,12 +63537,14 @@ class ReadOccupancySensingPirUnoccupiedToOccupiedThreshold : public ReadAttribut ~ReadOccupancySensingPirUnoccupiedToOccupiedThreshold() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReadAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePirUnoccupiedToOccupiedThresholdWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OccupancySensing.PirUnoccupiedToOccupiedThreshold response %@", [value description]); @@ -62028,13 +63569,15 @@ class WriteOccupancySensingPirUnoccupiedToOccupiedThreshold : public WriteAttrib ~WriteOccupancySensingPirUnoccupiedToOccupiedThreshold() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) WriteAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; @@ -62065,11 +63608,13 @@ class SubscribeAttributeOccupancySensingPirUnoccupiedToOccupiedThreshold : publi ~SubscribeAttributeOccupancySensingPirUnoccupiedToOccupiedThreshold() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReportAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -62103,12 +63648,14 @@ class ReadOccupancySensingUltrasonicOccupiedToUnoccupiedDelay : public ReadAttri ~ReadOccupancySensingUltrasonicOccupiedToUnoccupiedDelay() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReadAttribute (0x00000020) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeUltrasonicOccupiedToUnoccupiedDelayWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OccupancySensing.UltrasonicOccupiedToUnoccupiedDelay response %@", [value description]); @@ -62133,13 +63680,15 @@ class WriteOccupancySensingUltrasonicOccupiedToUnoccupiedDelay : public WriteAtt ~WriteOccupancySensingUltrasonicOccupiedToUnoccupiedDelay() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) WriteAttribute (0x00000020) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; @@ -62171,11 +63720,13 @@ class SubscribeAttributeOccupancySensingUltrasonicOccupiedToUnoccupiedDelay : pu ~SubscribeAttributeOccupancySensingUltrasonicOccupiedToUnoccupiedDelay() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReportAttribute (0x00000020) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -62209,12 +63760,14 @@ class ReadOccupancySensingUltrasonicUnoccupiedToOccupiedDelay : public ReadAttri ~ReadOccupancySensingUltrasonicUnoccupiedToOccupiedDelay() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReadAttribute (0x00000021) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeUltrasonicUnoccupiedToOccupiedDelayWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OccupancySensing.UltrasonicUnoccupiedToOccupiedDelay response %@", [value description]); @@ -62239,13 +63792,15 @@ class WriteOccupancySensingUltrasonicUnoccupiedToOccupiedDelay : public WriteAtt ~WriteOccupancySensingUltrasonicUnoccupiedToOccupiedDelay() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) WriteAttribute (0x00000021) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; @@ -62277,11 +63832,13 @@ class SubscribeAttributeOccupancySensingUltrasonicUnoccupiedToOccupiedDelay : pu ~SubscribeAttributeOccupancySensingUltrasonicUnoccupiedToOccupiedDelay() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReportAttribute (0x00000021) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -62315,12 +63872,14 @@ class ReadOccupancySensingUltrasonicUnoccupiedToOccupiedThreshold : public ReadA ~ReadOccupancySensingUltrasonicUnoccupiedToOccupiedThreshold() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReadAttribute (0x00000022) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeUltrasonicUnoccupiedToOccupiedThresholdWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OccupancySensing.UltrasonicUnoccupiedToOccupiedThreshold response %@", [value description]); @@ -62345,13 +63904,15 @@ class WriteOccupancySensingUltrasonicUnoccupiedToOccupiedThreshold : public Writ ~WriteOccupancySensingUltrasonicUnoccupiedToOccupiedThreshold() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) WriteAttribute (0x00000022) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; @@ -62383,11 +63944,13 @@ class SubscribeAttributeOccupancySensingUltrasonicUnoccupiedToOccupiedThreshold ~SubscribeAttributeOccupancySensingUltrasonicUnoccupiedToOccupiedThreshold() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReportAttribute (0x00000022) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -62422,12 +63985,14 @@ class ReadOccupancySensingPhysicalContactOccupiedToUnoccupiedDelay : public Read ~ReadOccupancySensingPhysicalContactOccupiedToUnoccupiedDelay() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReadAttribute (0x00000030) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePhysicalContactOccupiedToUnoccupiedDelayWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OccupancySensing.PhysicalContactOccupiedToUnoccupiedDelay response %@", [value description]); @@ -62452,13 +64017,15 @@ class WriteOccupancySensingPhysicalContactOccupiedToUnoccupiedDelay : public Wri ~WriteOccupancySensingPhysicalContactOccupiedToUnoccupiedDelay() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) WriteAttribute (0x00000030) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; @@ -62490,11 +64057,13 @@ class SubscribeAttributeOccupancySensingPhysicalContactOccupiedToUnoccupiedDelay ~SubscribeAttributeOccupancySensingPhysicalContactOccupiedToUnoccupiedDelay() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReportAttribute (0x00000030) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -62529,12 +64098,14 @@ class ReadOccupancySensingPhysicalContactUnoccupiedToOccupiedDelay : public Read ~ReadOccupancySensingPhysicalContactUnoccupiedToOccupiedDelay() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReadAttribute (0x00000031) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePhysicalContactUnoccupiedToOccupiedDelayWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OccupancySensing.PhysicalContactUnoccupiedToOccupiedDelay response %@", [value description]); @@ -62559,13 +64130,15 @@ class WriteOccupancySensingPhysicalContactUnoccupiedToOccupiedDelay : public Wri ~WriteOccupancySensingPhysicalContactUnoccupiedToOccupiedDelay() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) WriteAttribute (0x00000031) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; @@ -62597,11 +64170,13 @@ class SubscribeAttributeOccupancySensingPhysicalContactUnoccupiedToOccupiedDelay ~SubscribeAttributeOccupancySensingPhysicalContactUnoccupiedToOccupiedDelay() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReportAttribute (0x00000031) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -62636,12 +64211,14 @@ class ReadOccupancySensingPhysicalContactUnoccupiedToOccupiedThreshold : public ~ReadOccupancySensingPhysicalContactUnoccupiedToOccupiedThreshold() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReadAttribute (0x00000032) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePhysicalContactUnoccupiedToOccupiedThresholdWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OccupancySensing.PhysicalContactUnoccupiedToOccupiedThreshold response %@", [value description]); @@ -62666,13 +64243,15 @@ class WriteOccupancySensingPhysicalContactUnoccupiedToOccupiedThreshold : public ~WriteOccupancySensingPhysicalContactUnoccupiedToOccupiedThreshold() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) WriteAttribute (0x00000032) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; @@ -62704,11 +64283,13 @@ class SubscribeAttributeOccupancySensingPhysicalContactUnoccupiedToOccupiedThres ~SubscribeAttributeOccupancySensingPhysicalContactUnoccupiedToOccupiedThreshold() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReportAttribute (0x00000032) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -62744,12 +64325,14 @@ class ReadOccupancySensingGeneratedCommandList : public ReadAttribute { ~ReadOccupancySensingGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"OccupancySensing.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -62770,11 +64353,13 @@ class SubscribeAttributeOccupancySensingGeneratedCommandList : public SubscribeA ~SubscribeAttributeOccupancySensingGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -62808,12 +64393,14 @@ class ReadOccupancySensingAcceptedCommandList : public ReadAttribute { ~ReadOccupancySensingAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"OccupancySensing.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -62834,11 +64421,13 @@ class SubscribeAttributeOccupancySensingAcceptedCommandList : public SubscribeAt ~SubscribeAttributeOccupancySensingAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -62872,12 +64461,14 @@ class ReadOccupancySensingAttributeList : public ReadAttribute { ~ReadOccupancySensingAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"OccupancySensing.AttributeList response %@", [value description]); if (error != nil) { @@ -62898,11 +64489,13 @@ class SubscribeAttributeOccupancySensingAttributeList : public SubscribeAttribut ~SubscribeAttributeOccupancySensingAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -62936,12 +64529,14 @@ class ReadOccupancySensingFeatureMap : public ReadAttribute { ~ReadOccupancySensingFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OccupancySensing.FeatureMap response %@", [value description]); if (error != nil) { @@ -62962,11 +64557,13 @@ class SubscribeAttributeOccupancySensingFeatureMap : public SubscribeAttribute { ~SubscribeAttributeOccupancySensingFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -63000,12 +64597,14 @@ class ReadOccupancySensingClusterRevision : public ReadAttribute { ~ReadOccupancySensingClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"OccupancySensing.ClusterRevision response %@", [value description]); if (error != nil) { @@ -63026,11 +64625,13 @@ class SubscribeAttributeOccupancySensingClusterRevision : public SubscribeAttrib ~SubscribeAttributeOccupancySensingClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000406) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTROccupancySensing * cluster = [[MTROccupancySensing alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -63080,12 +64681,14 @@ class ReadWakeOnLanMACAddress : public ReadAttribute { ~ReadWakeOnLanMACAddress() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000503) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWakeOnLan * cluster = [[MTRWakeOnLan alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWakeOnLan * cluster = [[MTRBaseClusterWakeOnLan alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMACAddressWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"WakeOnLan.MACAddress response %@", [value description]); if (error != nil) { @@ -63106,11 +64709,13 @@ class SubscribeAttributeWakeOnLanMACAddress : public SubscribeAttribute { ~SubscribeAttributeWakeOnLanMACAddress() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000503) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWakeOnLan * cluster = [[MTRWakeOnLan alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWakeOnLan * cluster = [[MTRBaseClusterWakeOnLan alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -63144,12 +64749,14 @@ class ReadWakeOnLanGeneratedCommandList : public ReadAttribute { ~ReadWakeOnLanGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000503) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWakeOnLan * cluster = [[MTRWakeOnLan alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWakeOnLan * cluster = [[MTRBaseClusterWakeOnLan alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"WakeOnLan.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -63170,11 +64777,13 @@ class SubscribeAttributeWakeOnLanGeneratedCommandList : public SubscribeAttribut ~SubscribeAttributeWakeOnLanGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000503) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWakeOnLan * cluster = [[MTRWakeOnLan alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWakeOnLan * cluster = [[MTRBaseClusterWakeOnLan alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -63208,12 +64817,14 @@ class ReadWakeOnLanAcceptedCommandList : public ReadAttribute { ~ReadWakeOnLanAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000503) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWakeOnLan * cluster = [[MTRWakeOnLan alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWakeOnLan * cluster = [[MTRBaseClusterWakeOnLan alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"WakeOnLan.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -63234,11 +64845,13 @@ class SubscribeAttributeWakeOnLanAcceptedCommandList : public SubscribeAttribute ~SubscribeAttributeWakeOnLanAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000503) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWakeOnLan * cluster = [[MTRWakeOnLan alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWakeOnLan * cluster = [[MTRBaseClusterWakeOnLan alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -63272,12 +64885,14 @@ class ReadWakeOnLanAttributeList : public ReadAttribute { ~ReadWakeOnLanAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000503) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWakeOnLan * cluster = [[MTRWakeOnLan alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWakeOnLan * cluster = [[MTRBaseClusterWakeOnLan alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"WakeOnLan.AttributeList response %@", [value description]); if (error != nil) { @@ -63298,11 +64913,13 @@ class SubscribeAttributeWakeOnLanAttributeList : public SubscribeAttribute { ~SubscribeAttributeWakeOnLanAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000503) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWakeOnLan * cluster = [[MTRWakeOnLan alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWakeOnLan * cluster = [[MTRBaseClusterWakeOnLan alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -63336,12 +64953,14 @@ class ReadWakeOnLanFeatureMap : public ReadAttribute { ~ReadWakeOnLanFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000503) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWakeOnLan * cluster = [[MTRWakeOnLan alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWakeOnLan * cluster = [[MTRBaseClusterWakeOnLan alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WakeOnLan.FeatureMap response %@", [value description]); if (error != nil) { @@ -63362,11 +64981,13 @@ class SubscribeAttributeWakeOnLanFeatureMap : public SubscribeAttribute { ~SubscribeAttributeWakeOnLanFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000503) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWakeOnLan * cluster = [[MTRWakeOnLan alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWakeOnLan * cluster = [[MTRBaseClusterWakeOnLan alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -63400,12 +65021,14 @@ class ReadWakeOnLanClusterRevision : public ReadAttribute { ~ReadWakeOnLanClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000503) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWakeOnLan * cluster = [[MTRWakeOnLan alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWakeOnLan * cluster = [[MTRBaseClusterWakeOnLan alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"WakeOnLan.ClusterRevision response %@", [value description]); if (error != nil) { @@ -63426,11 +65049,13 @@ class SubscribeAttributeWakeOnLanClusterRevision : public SubscribeAttribute { ~SubscribeAttributeWakeOnLanClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000503) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRWakeOnLan * cluster = [[MTRWakeOnLan alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterWakeOnLan * cluster = [[MTRBaseClusterWakeOnLan alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -63485,12 +65110,14 @@ class ChannelChangeChannel : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000504) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRChannel * cluster = [[MTRChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterChannel * cluster = [[MTRBaseClusterChannel alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRChannelClusterChangeChannelParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -63534,12 +65161,14 @@ class ChannelChangeChannelByNumber : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000504) command (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRChannel * cluster = [[MTRChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterChannel * cluster = [[MTRBaseClusterChannel alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRChannelClusterChangeChannelByNumberParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -63579,12 +65208,14 @@ class ChannelSkipChannel : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000504) command (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRChannel * cluster = [[MTRChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterChannel * cluster = [[MTRBaseClusterChannel alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRChannelClusterSkipChannelParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -63623,12 +65254,14 @@ class ReadChannelChannelList : public ReadAttribute { ~ReadChannelChannelList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000504) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRChannel * cluster = [[MTRChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterChannel * cluster = [[MTRBaseClusterChannel alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeChannelListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Channel.ChannelList response %@", [value description]); if (error != nil) { @@ -63649,11 +65282,13 @@ class SubscribeAttributeChannelChannelList : public SubscribeAttribute { ~SubscribeAttributeChannelChannelList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000504) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRChannel * cluster = [[MTRChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterChannel * cluster = [[MTRBaseClusterChannel alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -63687,12 +65322,14 @@ class ReadChannelLineup : public ReadAttribute { ~ReadChannelLineup() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000504) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRChannel * cluster = [[MTRChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterChannel * cluster = [[MTRBaseClusterChannel alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeLineupWithCompletionHandler:^(MTRChannelClusterLineupInfo * _Nullable value, NSError * _Nullable error) { NSLog(@"Channel.Lineup response %@", [value description]); @@ -63714,11 +65351,13 @@ class SubscribeAttributeChannelLineup : public SubscribeAttribute { ~SubscribeAttributeChannelLineup() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000504) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRChannel * cluster = [[MTRChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterChannel * cluster = [[MTRBaseClusterChannel alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -63752,12 +65391,14 @@ class ReadChannelCurrentChannel : public ReadAttribute { ~ReadChannelCurrentChannel() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000504) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRChannel * cluster = [[MTRChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterChannel * cluster = [[MTRBaseClusterChannel alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeCurrentChannelWithCompletionHandler:^( MTRChannelClusterChannelInfo * _Nullable value, NSError * _Nullable error) { NSLog(@"Channel.CurrentChannel response %@", [value description]); @@ -63779,11 +65420,13 @@ class SubscribeAttributeChannelCurrentChannel : public SubscribeAttribute { ~SubscribeAttributeChannelCurrentChannel() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000504) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRChannel * cluster = [[MTRChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterChannel * cluster = [[MTRBaseClusterChannel alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -63817,12 +65460,14 @@ class ReadChannelGeneratedCommandList : public ReadAttribute { ~ReadChannelGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000504) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRChannel * cluster = [[MTRChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterChannel * cluster = [[MTRBaseClusterChannel alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Channel.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -63843,11 +65488,13 @@ class SubscribeAttributeChannelGeneratedCommandList : public SubscribeAttribute ~SubscribeAttributeChannelGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000504) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRChannel * cluster = [[MTRChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterChannel * cluster = [[MTRBaseClusterChannel alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -63881,12 +65528,14 @@ class ReadChannelAcceptedCommandList : public ReadAttribute { ~ReadChannelAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000504) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRChannel * cluster = [[MTRChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterChannel * cluster = [[MTRBaseClusterChannel alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Channel.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -63907,11 +65556,13 @@ class SubscribeAttributeChannelAcceptedCommandList : public SubscribeAttribute { ~SubscribeAttributeChannelAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000504) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRChannel * cluster = [[MTRChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterChannel * cluster = [[MTRBaseClusterChannel alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -63945,12 +65596,14 @@ class ReadChannelAttributeList : public ReadAttribute { ~ReadChannelAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000504) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRChannel * cluster = [[MTRChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterChannel * cluster = [[MTRBaseClusterChannel alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"Channel.AttributeList response %@", [value description]); if (error != nil) { @@ -63971,11 +65624,13 @@ class SubscribeAttributeChannelAttributeList : public SubscribeAttribute { ~SubscribeAttributeChannelAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000504) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRChannel * cluster = [[MTRChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterChannel * cluster = [[MTRBaseClusterChannel alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -64009,12 +65664,14 @@ class ReadChannelFeatureMap : public ReadAttribute { ~ReadChannelFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000504) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRChannel * cluster = [[MTRChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterChannel * cluster = [[MTRBaseClusterChannel alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Channel.FeatureMap response %@", [value description]); if (error != nil) { @@ -64035,11 +65692,13 @@ class SubscribeAttributeChannelFeatureMap : public SubscribeAttribute { ~SubscribeAttributeChannelFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000504) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRChannel * cluster = [[MTRChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterChannel * cluster = [[MTRBaseClusterChannel alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -64073,12 +65732,14 @@ class ReadChannelClusterRevision : public ReadAttribute { ~ReadChannelClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000504) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRChannel * cluster = [[MTRChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterChannel * cluster = [[MTRBaseClusterChannel alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"Channel.ClusterRevision response %@", [value description]); if (error != nil) { @@ -64099,11 +65760,13 @@ class SubscribeAttributeChannelClusterRevision : public SubscribeAttribute { ~SubscribeAttributeChannelClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000504) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRChannel * cluster = [[MTRChannel alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterChannel * cluster = [[MTRBaseClusterChannel alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -64156,12 +65819,14 @@ class TargetNavigatorNavigateTarget : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000505) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTargetNavigator * cluster = [[MTRTargetNavigator alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTargetNavigator * cluster = [[MTRBaseClusterTargetNavigator alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRTargetNavigatorClusterNavigateTargetParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -64209,12 +65874,14 @@ class ReadTargetNavigatorTargetList : public ReadAttribute { ~ReadTargetNavigatorTargetList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000505) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTargetNavigator * cluster = [[MTRTargetNavigator alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTargetNavigator * cluster = [[MTRBaseClusterTargetNavigator alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeTargetListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"TargetNavigator.TargetList response %@", [value description]); if (error != nil) { @@ -64235,11 +65902,13 @@ class SubscribeAttributeTargetNavigatorTargetList : public SubscribeAttribute { ~SubscribeAttributeTargetNavigatorTargetList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000505) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTargetNavigator * cluster = [[MTRTargetNavigator alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTargetNavigator * cluster = [[MTRBaseClusterTargetNavigator alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -64273,12 +65942,14 @@ class ReadTargetNavigatorCurrentTarget : public ReadAttribute { ~ReadTargetNavigatorCurrentTarget() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000505) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTargetNavigator * cluster = [[MTRTargetNavigator alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTargetNavigator * cluster = [[MTRBaseClusterTargetNavigator alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeCurrentTargetWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TargetNavigator.CurrentTarget response %@", [value description]); if (error != nil) { @@ -64299,11 +65970,13 @@ class SubscribeAttributeTargetNavigatorCurrentTarget : public SubscribeAttribute ~SubscribeAttributeTargetNavigatorCurrentTarget() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000505) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTargetNavigator * cluster = [[MTRTargetNavigator alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTargetNavigator * cluster = [[MTRBaseClusterTargetNavigator alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -64337,12 +66010,14 @@ class ReadTargetNavigatorGeneratedCommandList : public ReadAttribute { ~ReadTargetNavigatorGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000505) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTargetNavigator * cluster = [[MTRTargetNavigator alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTargetNavigator * cluster = [[MTRBaseClusterTargetNavigator alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"TargetNavigator.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -64363,11 +66038,13 @@ class SubscribeAttributeTargetNavigatorGeneratedCommandList : public SubscribeAt ~SubscribeAttributeTargetNavigatorGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000505) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTargetNavigator * cluster = [[MTRTargetNavigator alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTargetNavigator * cluster = [[MTRBaseClusterTargetNavigator alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -64401,12 +66078,14 @@ class ReadTargetNavigatorAcceptedCommandList : public ReadAttribute { ~ReadTargetNavigatorAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000505) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTargetNavigator * cluster = [[MTRTargetNavigator alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTargetNavigator * cluster = [[MTRBaseClusterTargetNavigator alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"TargetNavigator.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -64427,11 +66106,13 @@ class SubscribeAttributeTargetNavigatorAcceptedCommandList : public SubscribeAtt ~SubscribeAttributeTargetNavigatorAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000505) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTargetNavigator * cluster = [[MTRTargetNavigator alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTargetNavigator * cluster = [[MTRBaseClusterTargetNavigator alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -64465,12 +66146,14 @@ class ReadTargetNavigatorAttributeList : public ReadAttribute { ~ReadTargetNavigatorAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000505) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTargetNavigator * cluster = [[MTRTargetNavigator alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTargetNavigator * cluster = [[MTRBaseClusterTargetNavigator alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"TargetNavigator.AttributeList response %@", [value description]); if (error != nil) { @@ -64491,11 +66174,13 @@ class SubscribeAttributeTargetNavigatorAttributeList : public SubscribeAttribute ~SubscribeAttributeTargetNavigatorAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000505) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTargetNavigator * cluster = [[MTRTargetNavigator alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTargetNavigator * cluster = [[MTRBaseClusterTargetNavigator alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -64529,12 +66214,14 @@ class ReadTargetNavigatorFeatureMap : public ReadAttribute { ~ReadTargetNavigatorFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000505) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTargetNavigator * cluster = [[MTRTargetNavigator alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTargetNavigator * cluster = [[MTRBaseClusterTargetNavigator alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TargetNavigator.FeatureMap response %@", [value description]); if (error != nil) { @@ -64555,11 +66242,13 @@ class SubscribeAttributeTargetNavigatorFeatureMap : public SubscribeAttribute { ~SubscribeAttributeTargetNavigatorFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000505) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTargetNavigator * cluster = [[MTRTargetNavigator alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTargetNavigator * cluster = [[MTRBaseClusterTargetNavigator alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -64593,12 +66282,14 @@ class ReadTargetNavigatorClusterRevision : public ReadAttribute { ~ReadTargetNavigatorClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000505) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTargetNavigator * cluster = [[MTRTargetNavigator alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTargetNavigator * cluster = [[MTRBaseClusterTargetNavigator alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TargetNavigator.ClusterRevision response %@", [value description]); if (error != nil) { @@ -64619,11 +66310,13 @@ class SubscribeAttributeTargetNavigatorClusterRevision : public SubscribeAttribu ~SubscribeAttributeTargetNavigatorClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000505) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTargetNavigator * cluster = [[MTRTargetNavigator alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTargetNavigator * cluster = [[MTRBaseClusterTargetNavigator alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -64689,12 +66382,14 @@ class MediaPlaybackPlay : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRMediaPlaybackClusterPlayParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -64731,12 +66426,14 @@ class MediaPlaybackPause : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) command (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRMediaPlaybackClusterPauseParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -64774,12 +66471,14 @@ class MediaPlaybackStopPlayback : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) command (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRMediaPlaybackClusterStopPlaybackParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -64817,12 +66516,14 @@ class MediaPlaybackStartOver : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) command (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRMediaPlaybackClusterStartOverParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -64860,12 +66561,14 @@ class MediaPlaybackPrevious : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) command (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRMediaPlaybackClusterPreviousParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -64903,12 +66606,14 @@ class MediaPlaybackNext : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) command (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRMediaPlaybackClusterNextParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -64945,12 +66650,14 @@ class MediaPlaybackRewind : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) command (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRMediaPlaybackClusterRewindParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -64988,12 +66695,14 @@ class MediaPlaybackFastForward : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) command (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRMediaPlaybackClusterFastForwardParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -65032,12 +66741,14 @@ class MediaPlaybackSkipForward : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) command (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRMediaPlaybackClusterSkipForwardParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -65078,12 +66789,14 @@ class MediaPlaybackSkipBackward : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) command (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRMediaPlaybackClusterSkipBackwardParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -65124,12 +66837,14 @@ class MediaPlaybackSeek : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) command (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRMediaPlaybackClusterSeekParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -65169,12 +66884,14 @@ class ReadMediaPlaybackCurrentState : public ReadAttribute { ~ReadMediaPlaybackCurrentState() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeCurrentStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"MediaPlayback.CurrentState response %@", [value description]); if (error != nil) { @@ -65195,11 +66912,13 @@ class SubscribeAttributeMediaPlaybackCurrentState : public SubscribeAttribute { ~SubscribeAttributeMediaPlaybackCurrentState() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -65233,12 +66952,14 @@ class ReadMediaPlaybackStartTime : public ReadAttribute { ~ReadMediaPlaybackStartTime() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeStartTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"MediaPlayback.StartTime response %@", [value description]); if (error != nil) { @@ -65259,11 +66980,13 @@ class SubscribeAttributeMediaPlaybackStartTime : public SubscribeAttribute { ~SubscribeAttributeMediaPlaybackStartTime() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -65297,12 +67020,14 @@ class ReadMediaPlaybackDuration : public ReadAttribute { ~ReadMediaPlaybackDuration() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeDurationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"MediaPlayback.Duration response %@", [value description]); if (error != nil) { @@ -65323,11 +67048,13 @@ class SubscribeAttributeMediaPlaybackDuration : public SubscribeAttribute { ~SubscribeAttributeMediaPlaybackDuration() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -65361,12 +67088,14 @@ class ReadMediaPlaybackSampledPosition : public ReadAttribute { ~ReadMediaPlaybackSampledPosition() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeSampledPositionWithCompletionHandler:^( MTRMediaPlaybackClusterPlaybackPosition * _Nullable value, NSError * _Nullable error) { NSLog(@"MediaPlayback.SampledPosition response %@", [value description]); @@ -65388,11 +67117,13 @@ class SubscribeAttributeMediaPlaybackSampledPosition : public SubscribeAttribute ~SubscribeAttributeMediaPlaybackSampledPosition() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -65426,12 +67157,14 @@ class ReadMediaPlaybackPlaybackSpeed : public ReadAttribute { ~ReadMediaPlaybackPlaybackSpeed() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePlaybackSpeedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"MediaPlayback.PlaybackSpeed response %@", [value description]); if (error != nil) { @@ -65452,11 +67185,13 @@ class SubscribeAttributeMediaPlaybackPlaybackSpeed : public SubscribeAttribute { ~SubscribeAttributeMediaPlaybackPlaybackSpeed() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -65490,12 +67225,14 @@ class ReadMediaPlaybackSeekRangeEnd : public ReadAttribute { ~ReadMediaPlaybackSeekRangeEnd() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReadAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeSeekRangeEndWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"MediaPlayback.SeekRangeEnd response %@", [value description]); if (error != nil) { @@ -65516,11 +67253,13 @@ class SubscribeAttributeMediaPlaybackSeekRangeEnd : public SubscribeAttribute { ~SubscribeAttributeMediaPlaybackSeekRangeEnd() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReportAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -65554,12 +67293,14 @@ class ReadMediaPlaybackSeekRangeStart : public ReadAttribute { ~ReadMediaPlaybackSeekRangeStart() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReadAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeSeekRangeStartWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"MediaPlayback.SeekRangeStart response %@", [value description]); if (error != nil) { @@ -65580,11 +67321,13 @@ class SubscribeAttributeMediaPlaybackSeekRangeStart : public SubscribeAttribute ~SubscribeAttributeMediaPlaybackSeekRangeStart() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReportAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -65618,12 +67361,14 @@ class ReadMediaPlaybackGeneratedCommandList : public ReadAttribute { ~ReadMediaPlaybackGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"MediaPlayback.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -65644,11 +67389,13 @@ class SubscribeAttributeMediaPlaybackGeneratedCommandList : public SubscribeAttr ~SubscribeAttributeMediaPlaybackGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -65682,12 +67429,14 @@ class ReadMediaPlaybackAcceptedCommandList : public ReadAttribute { ~ReadMediaPlaybackAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"MediaPlayback.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -65708,11 +67457,13 @@ class SubscribeAttributeMediaPlaybackAcceptedCommandList : public SubscribeAttri ~SubscribeAttributeMediaPlaybackAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -65746,12 +67497,14 @@ class ReadMediaPlaybackAttributeList : public ReadAttribute { ~ReadMediaPlaybackAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"MediaPlayback.AttributeList response %@", [value description]); if (error != nil) { @@ -65772,11 +67525,13 @@ class SubscribeAttributeMediaPlaybackAttributeList : public SubscribeAttribute { ~SubscribeAttributeMediaPlaybackAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -65810,12 +67565,14 @@ class ReadMediaPlaybackFeatureMap : public ReadAttribute { ~ReadMediaPlaybackFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"MediaPlayback.FeatureMap response %@", [value description]); if (error != nil) { @@ -65836,11 +67593,13 @@ class SubscribeAttributeMediaPlaybackFeatureMap : public SubscribeAttribute { ~SubscribeAttributeMediaPlaybackFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -65874,12 +67633,14 @@ class ReadMediaPlaybackClusterRevision : public ReadAttribute { ~ReadMediaPlaybackClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"MediaPlayback.ClusterRevision response %@", [value description]); if (error != nil) { @@ -65900,11 +67661,13 @@ class SubscribeAttributeMediaPlaybackClusterRevision : public SubscribeAttribute ~SubscribeAttributeMediaPlaybackClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000506) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaPlayback * cluster = [[MTRMediaPlayback alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -65959,12 +67722,14 @@ class MediaInputSelectInput : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000507) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaInput * cluster = [[MTRMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaInput * cluster = [[MTRBaseClusterMediaInput alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRMediaInputClusterSelectInputParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -66002,12 +67767,14 @@ class MediaInputShowInputStatus : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000507) command (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaInput * cluster = [[MTRMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaInput * cluster = [[MTRBaseClusterMediaInput alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRMediaInputClusterShowInputStatusParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -66043,12 +67810,14 @@ class MediaInputHideInputStatus : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000507) command (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaInput * cluster = [[MTRMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaInput * cluster = [[MTRBaseClusterMediaInput alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRMediaInputClusterHideInputStatusParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -66086,12 +67855,14 @@ class MediaInputRenameInput : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000507) command (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaInput * cluster = [[MTRMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaInput * cluster = [[MTRBaseClusterMediaInput alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRMediaInputClusterRenameInputParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -66133,12 +67904,14 @@ class ReadMediaInputInputList : public ReadAttribute { ~ReadMediaInputInputList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000507) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaInput * cluster = [[MTRMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaInput * cluster = [[MTRBaseClusterMediaInput alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeInputListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"MediaInput.InputList response %@", [value description]); if (error != nil) { @@ -66159,11 +67932,13 @@ class SubscribeAttributeMediaInputInputList : public SubscribeAttribute { ~SubscribeAttributeMediaInputInputList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000507) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaInput * cluster = [[MTRMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaInput * cluster = [[MTRBaseClusterMediaInput alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -66197,12 +67972,14 @@ class ReadMediaInputCurrentInput : public ReadAttribute { ~ReadMediaInputCurrentInput() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000507) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaInput * cluster = [[MTRMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaInput * cluster = [[MTRBaseClusterMediaInput alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeCurrentInputWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"MediaInput.CurrentInput response %@", [value description]); if (error != nil) { @@ -66223,11 +68000,13 @@ class SubscribeAttributeMediaInputCurrentInput : public SubscribeAttribute { ~SubscribeAttributeMediaInputCurrentInput() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000507) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaInput * cluster = [[MTRMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaInput * cluster = [[MTRBaseClusterMediaInput alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -66261,12 +68040,14 @@ class ReadMediaInputGeneratedCommandList : public ReadAttribute { ~ReadMediaInputGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000507) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaInput * cluster = [[MTRMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaInput * cluster = [[MTRBaseClusterMediaInput alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"MediaInput.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -66287,11 +68068,13 @@ class SubscribeAttributeMediaInputGeneratedCommandList : public SubscribeAttribu ~SubscribeAttributeMediaInputGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000507) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaInput * cluster = [[MTRMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaInput * cluster = [[MTRBaseClusterMediaInput alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -66325,12 +68108,14 @@ class ReadMediaInputAcceptedCommandList : public ReadAttribute { ~ReadMediaInputAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000507) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaInput * cluster = [[MTRMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaInput * cluster = [[MTRBaseClusterMediaInput alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"MediaInput.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -66351,11 +68136,13 @@ class SubscribeAttributeMediaInputAcceptedCommandList : public SubscribeAttribut ~SubscribeAttributeMediaInputAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000507) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaInput * cluster = [[MTRMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaInput * cluster = [[MTRBaseClusterMediaInput alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -66389,12 +68176,14 @@ class ReadMediaInputAttributeList : public ReadAttribute { ~ReadMediaInputAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000507) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaInput * cluster = [[MTRMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaInput * cluster = [[MTRBaseClusterMediaInput alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"MediaInput.AttributeList response %@", [value description]); if (error != nil) { @@ -66415,11 +68204,13 @@ class SubscribeAttributeMediaInputAttributeList : public SubscribeAttribute { ~SubscribeAttributeMediaInputAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000507) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaInput * cluster = [[MTRMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaInput * cluster = [[MTRBaseClusterMediaInput alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -66453,12 +68244,14 @@ class ReadMediaInputFeatureMap : public ReadAttribute { ~ReadMediaInputFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000507) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaInput * cluster = [[MTRMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaInput * cluster = [[MTRBaseClusterMediaInput alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"MediaInput.FeatureMap response %@", [value description]); if (error != nil) { @@ -66479,11 +68272,13 @@ class SubscribeAttributeMediaInputFeatureMap : public SubscribeAttribute { ~SubscribeAttributeMediaInputFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000507) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaInput * cluster = [[MTRMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaInput * cluster = [[MTRBaseClusterMediaInput alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -66517,12 +68312,14 @@ class ReadMediaInputClusterRevision : public ReadAttribute { ~ReadMediaInputClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000507) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaInput * cluster = [[MTRMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaInput * cluster = [[MTRBaseClusterMediaInput alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"MediaInput.ClusterRevision response %@", [value description]); if (error != nil) { @@ -66543,11 +68340,13 @@ class SubscribeAttributeMediaInputClusterRevision : public SubscribeAttribute { ~SubscribeAttributeMediaInputClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000507) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRMediaInput * cluster = [[MTRMediaInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterMediaInput * cluster = [[MTRBaseClusterMediaInput alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -66596,12 +68395,14 @@ class LowPowerSleep : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000508) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLowPower * cluster = [[MTRLowPower alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLowPower * cluster = [[MTRBaseClusterLowPower alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRLowPowerClusterSleepParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -66638,12 +68439,14 @@ class ReadLowPowerGeneratedCommandList : public ReadAttribute { ~ReadLowPowerGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000508) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLowPower * cluster = [[MTRLowPower alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLowPower * cluster = [[MTRBaseClusterLowPower alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"LowPower.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -66664,11 +68467,13 @@ class SubscribeAttributeLowPowerGeneratedCommandList : public SubscribeAttribute ~SubscribeAttributeLowPowerGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000508) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLowPower * cluster = [[MTRLowPower alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLowPower * cluster = [[MTRBaseClusterLowPower alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -66702,12 +68507,14 @@ class ReadLowPowerAcceptedCommandList : public ReadAttribute { ~ReadLowPowerAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000508) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLowPower * cluster = [[MTRLowPower alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLowPower * cluster = [[MTRBaseClusterLowPower alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"LowPower.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -66728,11 +68535,13 @@ class SubscribeAttributeLowPowerAcceptedCommandList : public SubscribeAttribute ~SubscribeAttributeLowPowerAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000508) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLowPower * cluster = [[MTRLowPower alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLowPower * cluster = [[MTRBaseClusterLowPower alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -66766,12 +68575,14 @@ class ReadLowPowerAttributeList : public ReadAttribute { ~ReadLowPowerAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000508) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLowPower * cluster = [[MTRLowPower alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLowPower * cluster = [[MTRBaseClusterLowPower alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"LowPower.AttributeList response %@", [value description]); if (error != nil) { @@ -66792,11 +68603,13 @@ class SubscribeAttributeLowPowerAttributeList : public SubscribeAttribute { ~SubscribeAttributeLowPowerAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000508) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLowPower * cluster = [[MTRLowPower alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLowPower * cluster = [[MTRBaseClusterLowPower alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -66830,12 +68643,14 @@ class ReadLowPowerFeatureMap : public ReadAttribute { ~ReadLowPowerFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000508) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLowPower * cluster = [[MTRLowPower alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLowPower * cluster = [[MTRBaseClusterLowPower alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"LowPower.FeatureMap response %@", [value description]); if (error != nil) { @@ -66856,11 +68671,13 @@ class SubscribeAttributeLowPowerFeatureMap : public SubscribeAttribute { ~SubscribeAttributeLowPowerFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000508) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLowPower * cluster = [[MTRLowPower alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLowPower * cluster = [[MTRBaseClusterLowPower alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -66894,12 +68711,14 @@ class ReadLowPowerClusterRevision : public ReadAttribute { ~ReadLowPowerClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000508) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLowPower * cluster = [[MTRLowPower alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLowPower * cluster = [[MTRBaseClusterLowPower alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"LowPower.ClusterRevision response %@", [value description]); if (error != nil) { @@ -66920,11 +68739,13 @@ class SubscribeAttributeLowPowerClusterRevision : public SubscribeAttribute { ~SubscribeAttributeLowPowerClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000508) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRLowPower * cluster = [[MTRLowPower alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterLowPower * cluster = [[MTRBaseClusterLowPower alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -66974,12 +68795,14 @@ class KeypadInputSendKey : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000509) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRKeypadInput * cluster = [[MTRKeypadInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterKeypadInput * cluster = [[MTRBaseClusterKeypadInput alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRKeypadInputClusterSendKeyParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -67019,12 +68842,14 @@ class ReadKeypadInputGeneratedCommandList : public ReadAttribute { ~ReadKeypadInputGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000509) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRKeypadInput * cluster = [[MTRKeypadInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterKeypadInput * cluster = [[MTRBaseClusterKeypadInput alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"KeypadInput.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -67045,11 +68870,13 @@ class SubscribeAttributeKeypadInputGeneratedCommandList : public SubscribeAttrib ~SubscribeAttributeKeypadInputGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000509) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRKeypadInput * cluster = [[MTRKeypadInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterKeypadInput * cluster = [[MTRBaseClusterKeypadInput alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -67083,12 +68910,14 @@ class ReadKeypadInputAcceptedCommandList : public ReadAttribute { ~ReadKeypadInputAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000509) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRKeypadInput * cluster = [[MTRKeypadInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterKeypadInput * cluster = [[MTRBaseClusterKeypadInput alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"KeypadInput.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -67109,11 +68938,13 @@ class SubscribeAttributeKeypadInputAcceptedCommandList : public SubscribeAttribu ~SubscribeAttributeKeypadInputAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000509) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRKeypadInput * cluster = [[MTRKeypadInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterKeypadInput * cluster = [[MTRBaseClusterKeypadInput alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -67147,12 +68978,14 @@ class ReadKeypadInputAttributeList : public ReadAttribute { ~ReadKeypadInputAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000509) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRKeypadInput * cluster = [[MTRKeypadInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterKeypadInput * cluster = [[MTRBaseClusterKeypadInput alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"KeypadInput.AttributeList response %@", [value description]); if (error != nil) { @@ -67173,11 +69006,13 @@ class SubscribeAttributeKeypadInputAttributeList : public SubscribeAttribute { ~SubscribeAttributeKeypadInputAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000509) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRKeypadInput * cluster = [[MTRKeypadInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterKeypadInput * cluster = [[MTRBaseClusterKeypadInput alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -67211,12 +69046,14 @@ class ReadKeypadInputFeatureMap : public ReadAttribute { ~ReadKeypadInputFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000509) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRKeypadInput * cluster = [[MTRKeypadInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterKeypadInput * cluster = [[MTRBaseClusterKeypadInput alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"KeypadInput.FeatureMap response %@", [value description]); if (error != nil) { @@ -67237,11 +69074,13 @@ class SubscribeAttributeKeypadInputFeatureMap : public SubscribeAttribute { ~SubscribeAttributeKeypadInputFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000509) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRKeypadInput * cluster = [[MTRKeypadInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterKeypadInput * cluster = [[MTRBaseClusterKeypadInput alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -67275,12 +69114,14 @@ class ReadKeypadInputClusterRevision : public ReadAttribute { ~ReadKeypadInputClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000509) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRKeypadInput * cluster = [[MTRKeypadInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterKeypadInput * cluster = [[MTRBaseClusterKeypadInput alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"KeypadInput.ClusterRevision response %@", [value description]); if (error != nil) { @@ -67301,11 +69142,13 @@ class SubscribeAttributeKeypadInputClusterRevision : public SubscribeAttribute { ~SubscribeAttributeKeypadInputClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000509) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRKeypadInput * cluster = [[MTRKeypadInput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterKeypadInput * cluster = [[MTRBaseClusterKeypadInput alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -67361,12 +69204,14 @@ class ContentLauncherLaunchContent : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050A) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRContentLauncher * cluster = [[MTRContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterContentLauncher * cluster = [[MTRBaseClusterContentLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRContentLauncherClusterLaunchContentParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -67451,12 +69296,14 @@ class ContentLauncherLaunchURL : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050A) command (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRContentLauncher * cluster = [[MTRContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterContentLauncher * cluster = [[MTRBaseClusterContentLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRContentLauncherClusterLaunchURLParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -67682,12 +69529,14 @@ class ReadContentLauncherAcceptHeader : public ReadAttribute { ~ReadContentLauncherAcceptHeader() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050A) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRContentLauncher * cluster = [[MTRContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterContentLauncher * cluster = [[MTRBaseClusterContentLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptHeaderWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ContentLauncher.AcceptHeader response %@", [value description]); if (error != nil) { @@ -67708,11 +69557,13 @@ class SubscribeAttributeContentLauncherAcceptHeader : public SubscribeAttribute ~SubscribeAttributeContentLauncherAcceptHeader() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050A) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRContentLauncher * cluster = [[MTRContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterContentLauncher * cluster = [[MTRBaseClusterContentLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -67746,12 +69597,14 @@ class ReadContentLauncherSupportedStreamingProtocols : public ReadAttribute { ~ReadContentLauncherSupportedStreamingProtocols() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050A) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRContentLauncher * cluster = [[MTRContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterContentLauncher * cluster = [[MTRBaseClusterContentLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeSupportedStreamingProtocolsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ContentLauncher.SupportedStreamingProtocols response %@", [value description]); @@ -67776,13 +69629,15 @@ class WriteContentLauncherSupportedStreamingProtocols : public WriteAttribute { ~WriteContentLauncherSupportedStreamingProtocols() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050A) WriteAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRContentLauncher * cluster = [[MTRContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterContentLauncher * cluster = [[MTRBaseClusterContentLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedInt:mValue]; @@ -67812,11 +69667,13 @@ class SubscribeAttributeContentLauncherSupportedStreamingProtocols : public Subs ~SubscribeAttributeContentLauncherSupportedStreamingProtocols() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050A) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRContentLauncher * cluster = [[MTRContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterContentLauncher * cluster = [[MTRBaseClusterContentLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -67850,12 +69707,14 @@ class ReadContentLauncherGeneratedCommandList : public ReadAttribute { ~ReadContentLauncherGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050A) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRContentLauncher * cluster = [[MTRContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterContentLauncher * cluster = [[MTRBaseClusterContentLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ContentLauncher.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -67876,11 +69735,13 @@ class SubscribeAttributeContentLauncherGeneratedCommandList : public SubscribeAt ~SubscribeAttributeContentLauncherGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050A) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRContentLauncher * cluster = [[MTRContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterContentLauncher * cluster = [[MTRBaseClusterContentLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -67914,12 +69775,14 @@ class ReadContentLauncherAcceptedCommandList : public ReadAttribute { ~ReadContentLauncherAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050A) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRContentLauncher * cluster = [[MTRContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterContentLauncher * cluster = [[MTRBaseClusterContentLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ContentLauncher.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -67940,11 +69803,13 @@ class SubscribeAttributeContentLauncherAcceptedCommandList : public SubscribeAtt ~SubscribeAttributeContentLauncherAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050A) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRContentLauncher * cluster = [[MTRContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterContentLauncher * cluster = [[MTRBaseClusterContentLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -67978,12 +69843,14 @@ class ReadContentLauncherAttributeList : public ReadAttribute { ~ReadContentLauncherAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050A) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRContentLauncher * cluster = [[MTRContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterContentLauncher * cluster = [[MTRBaseClusterContentLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ContentLauncher.AttributeList response %@", [value description]); if (error != nil) { @@ -68004,11 +69871,13 @@ class SubscribeAttributeContentLauncherAttributeList : public SubscribeAttribute ~SubscribeAttributeContentLauncherAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050A) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRContentLauncher * cluster = [[MTRContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterContentLauncher * cluster = [[MTRBaseClusterContentLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -68042,12 +69911,14 @@ class ReadContentLauncherFeatureMap : public ReadAttribute { ~ReadContentLauncherFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050A) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRContentLauncher * cluster = [[MTRContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterContentLauncher * cluster = [[MTRBaseClusterContentLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ContentLauncher.FeatureMap response %@", [value description]); if (error != nil) { @@ -68068,11 +69939,13 @@ class SubscribeAttributeContentLauncherFeatureMap : public SubscribeAttribute { ~SubscribeAttributeContentLauncherFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050A) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRContentLauncher * cluster = [[MTRContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterContentLauncher * cluster = [[MTRBaseClusterContentLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -68106,12 +69979,14 @@ class ReadContentLauncherClusterRevision : public ReadAttribute { ~ReadContentLauncherClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050A) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRContentLauncher * cluster = [[MTRContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterContentLauncher * cluster = [[MTRBaseClusterContentLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ContentLauncher.ClusterRevision response %@", [value description]); if (error != nil) { @@ -68132,11 +70007,13 @@ class SubscribeAttributeContentLauncherClusterRevision : public SubscribeAttribu ~SubscribeAttributeContentLauncherClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050A) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRContentLauncher * cluster = [[MTRContentLauncher alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterContentLauncher * cluster = [[MTRBaseClusterContentLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -68189,12 +70066,14 @@ class AudioOutputSelectOutput : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050B) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAudioOutput * cluster = [[MTRAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAudioOutput * cluster = [[MTRBaseClusterAudioOutput alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRAudioOutputClusterSelectOutputParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -68234,12 +70113,14 @@ class AudioOutputRenameOutput : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050B) command (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAudioOutput * cluster = [[MTRAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAudioOutput * cluster = [[MTRBaseClusterAudioOutput alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRAudioOutputClusterRenameOutputParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -68281,12 +70162,14 @@ class ReadAudioOutputOutputList : public ReadAttribute { ~ReadAudioOutputOutputList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050B) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAudioOutput * cluster = [[MTRAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAudioOutput * cluster = [[MTRBaseClusterAudioOutput alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeOutputListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"AudioOutput.OutputList response %@", [value description]); if (error != nil) { @@ -68307,11 +70190,13 @@ class SubscribeAttributeAudioOutputOutputList : public SubscribeAttribute { ~SubscribeAttributeAudioOutputOutputList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050B) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAudioOutput * cluster = [[MTRAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAudioOutput * cluster = [[MTRBaseClusterAudioOutput alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -68345,12 +70230,14 @@ class ReadAudioOutputCurrentOutput : public ReadAttribute { ~ReadAudioOutputCurrentOutput() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050B) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAudioOutput * cluster = [[MTRAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAudioOutput * cluster = [[MTRBaseClusterAudioOutput alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeCurrentOutputWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"AudioOutput.CurrentOutput response %@", [value description]); if (error != nil) { @@ -68371,11 +70258,13 @@ class SubscribeAttributeAudioOutputCurrentOutput : public SubscribeAttribute { ~SubscribeAttributeAudioOutputCurrentOutput() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050B) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAudioOutput * cluster = [[MTRAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAudioOutput * cluster = [[MTRBaseClusterAudioOutput alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -68409,12 +70298,14 @@ class ReadAudioOutputGeneratedCommandList : public ReadAttribute { ~ReadAudioOutputGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050B) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAudioOutput * cluster = [[MTRAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAudioOutput * cluster = [[MTRBaseClusterAudioOutput alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"AudioOutput.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -68435,11 +70326,13 @@ class SubscribeAttributeAudioOutputGeneratedCommandList : public SubscribeAttrib ~SubscribeAttributeAudioOutputGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050B) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAudioOutput * cluster = [[MTRAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAudioOutput * cluster = [[MTRBaseClusterAudioOutput alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -68473,12 +70366,14 @@ class ReadAudioOutputAcceptedCommandList : public ReadAttribute { ~ReadAudioOutputAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050B) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAudioOutput * cluster = [[MTRAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAudioOutput * cluster = [[MTRBaseClusterAudioOutput alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"AudioOutput.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -68499,11 +70394,13 @@ class SubscribeAttributeAudioOutputAcceptedCommandList : public SubscribeAttribu ~SubscribeAttributeAudioOutputAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050B) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAudioOutput * cluster = [[MTRAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAudioOutput * cluster = [[MTRBaseClusterAudioOutput alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -68537,12 +70434,14 @@ class ReadAudioOutputAttributeList : public ReadAttribute { ~ReadAudioOutputAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050B) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAudioOutput * cluster = [[MTRAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAudioOutput * cluster = [[MTRBaseClusterAudioOutput alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"AudioOutput.AttributeList response %@", [value description]); if (error != nil) { @@ -68563,11 +70462,13 @@ class SubscribeAttributeAudioOutputAttributeList : public SubscribeAttribute { ~SubscribeAttributeAudioOutputAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050B) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAudioOutput * cluster = [[MTRAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAudioOutput * cluster = [[MTRBaseClusterAudioOutput alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -68601,12 +70502,14 @@ class ReadAudioOutputFeatureMap : public ReadAttribute { ~ReadAudioOutputFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050B) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAudioOutput * cluster = [[MTRAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAudioOutput * cluster = [[MTRBaseClusterAudioOutput alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"AudioOutput.FeatureMap response %@", [value description]); if (error != nil) { @@ -68627,11 +70530,13 @@ class SubscribeAttributeAudioOutputFeatureMap : public SubscribeAttribute { ~SubscribeAttributeAudioOutputFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050B) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAudioOutput * cluster = [[MTRAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAudioOutput * cluster = [[MTRBaseClusterAudioOutput alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -68665,12 +70570,14 @@ class ReadAudioOutputClusterRevision : public ReadAttribute { ~ReadAudioOutputClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050B) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAudioOutput * cluster = [[MTRAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAudioOutput * cluster = [[MTRBaseClusterAudioOutput alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"AudioOutput.ClusterRevision response %@", [value description]); if (error != nil) { @@ -68691,11 +70598,13 @@ class SubscribeAttributeAudioOutputClusterRevision : public SubscribeAttribute { ~SubscribeAttributeAudioOutputClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050B) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAudioOutput * cluster = [[MTRAudioOutput alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAudioOutput * cluster = [[MTRBaseClusterAudioOutput alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -68751,14 +70660,14 @@ class ApplicationLauncherLaunchApp : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050C) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRApplicationLauncher * cluster = [[MTRApplicationLauncher alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterApplicationLauncher * cluster = [[MTRBaseClusterApplicationLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRApplicationLauncherClusterLaunchAppParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -68810,14 +70719,14 @@ class ApplicationLauncherStopApp : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050C) command (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRApplicationLauncher * cluster = [[MTRApplicationLauncher alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterApplicationLauncher * cluster = [[MTRBaseClusterApplicationLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRApplicationLauncherClusterStopAppParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -68864,14 +70773,14 @@ class ApplicationLauncherHideApp : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050C) command (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRApplicationLauncher * cluster = [[MTRApplicationLauncher alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterApplicationLauncher * cluster = [[MTRBaseClusterApplicationLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRApplicationLauncherClusterHideAppParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -68917,14 +70826,14 @@ class ReadApplicationLauncherCatalogList : public ReadAttribute { ~ReadApplicationLauncherCatalogList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050C) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRApplicationLauncher * cluster = [[MTRApplicationLauncher alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterApplicationLauncher * cluster = [[MTRBaseClusterApplicationLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeCatalogListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ApplicationLauncher.CatalogList response %@", [value description]); if (error != nil) { @@ -68945,13 +70854,13 @@ class SubscribeAttributeApplicationLauncherCatalogList : public SubscribeAttribu ~SubscribeAttributeApplicationLauncherCatalogList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050C) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRApplicationLauncher * cluster = [[MTRApplicationLauncher alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterApplicationLauncher * cluster = [[MTRBaseClusterApplicationLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -68985,14 +70894,14 @@ class ReadApplicationLauncherCurrentApp : public ReadAttribute { ~ReadApplicationLauncherCurrentApp() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050C) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRApplicationLauncher * cluster = [[MTRApplicationLauncher alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterApplicationLauncher * cluster = [[MTRBaseClusterApplicationLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeCurrentAppWithCompletionHandler:^( MTRApplicationLauncherClusterApplicationEP * _Nullable value, NSError * _Nullable error) { NSLog(@"ApplicationLauncher.CurrentApp response %@", [value description]); @@ -69018,15 +70927,15 @@ class WriteApplicationLauncherCurrentApp : public WriteAttribute { ~WriteApplicationLauncherCurrentApp() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050C) WriteAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRApplicationLauncher * cluster = [[MTRApplicationLauncher alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterApplicationLauncher * cluster = [[MTRBaseClusterApplicationLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; MTRApplicationLauncherClusterApplicationEP * _Nullable value; @@ -69072,13 +70981,13 @@ class SubscribeAttributeApplicationLauncherCurrentApp : public SubscribeAttribut ~SubscribeAttributeApplicationLauncherCurrentApp() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050C) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRApplicationLauncher * cluster = [[MTRApplicationLauncher alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterApplicationLauncher * cluster = [[MTRBaseClusterApplicationLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -69112,14 +71021,14 @@ class ReadApplicationLauncherGeneratedCommandList : public ReadAttribute { ~ReadApplicationLauncherGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050C) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRApplicationLauncher * cluster = [[MTRApplicationLauncher alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterApplicationLauncher * cluster = [[MTRBaseClusterApplicationLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ApplicationLauncher.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -69140,13 +71049,13 @@ class SubscribeAttributeApplicationLauncherGeneratedCommandList : public Subscri ~SubscribeAttributeApplicationLauncherGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050C) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRApplicationLauncher * cluster = [[MTRApplicationLauncher alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterApplicationLauncher * cluster = [[MTRBaseClusterApplicationLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -69180,14 +71089,14 @@ class ReadApplicationLauncherAcceptedCommandList : public ReadAttribute { ~ReadApplicationLauncherAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050C) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRApplicationLauncher * cluster = [[MTRApplicationLauncher alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterApplicationLauncher * cluster = [[MTRBaseClusterApplicationLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ApplicationLauncher.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -69208,13 +71117,13 @@ class SubscribeAttributeApplicationLauncherAcceptedCommandList : public Subscrib ~SubscribeAttributeApplicationLauncherAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050C) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRApplicationLauncher * cluster = [[MTRApplicationLauncher alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterApplicationLauncher * cluster = [[MTRBaseClusterApplicationLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -69248,14 +71157,14 @@ class ReadApplicationLauncherAttributeList : public ReadAttribute { ~ReadApplicationLauncherAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050C) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRApplicationLauncher * cluster = [[MTRApplicationLauncher alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterApplicationLauncher * cluster = [[MTRBaseClusterApplicationLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ApplicationLauncher.AttributeList response %@", [value description]); if (error != nil) { @@ -69276,13 +71185,13 @@ class SubscribeAttributeApplicationLauncherAttributeList : public SubscribeAttri ~SubscribeAttributeApplicationLauncherAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050C) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRApplicationLauncher * cluster = [[MTRApplicationLauncher alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterApplicationLauncher * cluster = [[MTRBaseClusterApplicationLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -69316,14 +71225,14 @@ class ReadApplicationLauncherFeatureMap : public ReadAttribute { ~ReadApplicationLauncherFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050C) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRApplicationLauncher * cluster = [[MTRApplicationLauncher alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterApplicationLauncher * cluster = [[MTRBaseClusterApplicationLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ApplicationLauncher.FeatureMap response %@", [value description]); if (error != nil) { @@ -69344,13 +71253,13 @@ class SubscribeAttributeApplicationLauncherFeatureMap : public SubscribeAttribut ~SubscribeAttributeApplicationLauncherFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050C) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRApplicationLauncher * cluster = [[MTRApplicationLauncher alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterApplicationLauncher * cluster = [[MTRBaseClusterApplicationLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -69384,14 +71293,14 @@ class ReadApplicationLauncherClusterRevision : public ReadAttribute { ~ReadApplicationLauncherClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050C) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRApplicationLauncher * cluster = [[MTRApplicationLauncher alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterApplicationLauncher * cluster = [[MTRBaseClusterApplicationLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ApplicationLauncher.ClusterRevision response %@", [value description]); if (error != nil) { @@ -69412,13 +71321,13 @@ class SubscribeAttributeApplicationLauncherClusterRevision : public SubscribeAtt ~SubscribeAttributeApplicationLauncherClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050C) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRApplicationLauncher * cluster = [[MTRApplicationLauncher alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterApplicationLauncher * cluster = [[MTRBaseClusterApplicationLauncher alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -69475,12 +71384,14 @@ class ReadApplicationBasicVendorName : public ReadAttribute { ~ReadApplicationBasicVendorName() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeVendorNameWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"ApplicationBasic.VendorName response %@", [value description]); if (error != nil) { @@ -69501,11 +71412,13 @@ class SubscribeAttributeApplicationBasicVendorName : public SubscribeAttribute { ~SubscribeAttributeApplicationBasicVendorName() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -69539,12 +71452,14 @@ class ReadApplicationBasicVendorID : public ReadAttribute { ~ReadApplicationBasicVendorID() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeVendorIDWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ApplicationBasic.VendorID response %@", [value description]); if (error != nil) { @@ -69565,11 +71480,13 @@ class SubscribeAttributeApplicationBasicVendorID : public SubscribeAttribute { ~SubscribeAttributeApplicationBasicVendorID() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -69603,12 +71520,14 @@ class ReadApplicationBasicApplicationName : public ReadAttribute { ~ReadApplicationBasicApplicationName() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeApplicationNameWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"ApplicationBasic.ApplicationName response %@", [value description]); if (error != nil) { @@ -69629,11 +71548,13 @@ class SubscribeAttributeApplicationBasicApplicationName : public SubscribeAttrib ~SubscribeAttributeApplicationBasicApplicationName() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -69667,12 +71588,14 @@ class ReadApplicationBasicProductID : public ReadAttribute { ~ReadApplicationBasicProductID() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeProductIDWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ApplicationBasic.ProductID response %@", [value description]); if (error != nil) { @@ -69693,11 +71616,13 @@ class SubscribeAttributeApplicationBasicProductID : public SubscribeAttribute { ~SubscribeAttributeApplicationBasicProductID() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -69731,12 +71656,14 @@ class ReadApplicationBasicApplication : public ReadAttribute { ~ReadApplicationBasicApplication() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeApplicationWithCompletionHandler:^( MTRApplicationBasicClusterApplicationBasicApplication * _Nullable value, NSError * _Nullable error) { NSLog(@"ApplicationBasic.Application response %@", [value description]); @@ -69758,11 +71685,13 @@ class SubscribeAttributeApplicationBasicApplication : public SubscribeAttribute ~SubscribeAttributeApplicationBasicApplication() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -69796,12 +71725,14 @@ class ReadApplicationBasicStatus : public ReadAttribute { ~ReadApplicationBasicStatus() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReadAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ApplicationBasic.Status response %@", [value description]); if (error != nil) { @@ -69822,11 +71753,13 @@ class SubscribeAttributeApplicationBasicStatus : public SubscribeAttribute { ~SubscribeAttributeApplicationBasicStatus() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReportAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -69860,12 +71793,14 @@ class ReadApplicationBasicApplicationVersion : public ReadAttribute { ~ReadApplicationBasicApplicationVersion() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReadAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeApplicationVersionWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"ApplicationBasic.ApplicationVersion response %@", [value description]); if (error != nil) { @@ -69886,11 +71821,13 @@ class SubscribeAttributeApplicationBasicApplicationVersion : public SubscribeAtt ~SubscribeAttributeApplicationBasicApplicationVersion() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReportAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -69924,12 +71861,14 @@ class ReadApplicationBasicAllowedVendorList : public ReadAttribute { ~ReadApplicationBasicAllowedVendorList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReadAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAllowedVendorListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ApplicationBasic.AllowedVendorList response %@", [value description]); if (error != nil) { @@ -69950,11 +71889,13 @@ class SubscribeAttributeApplicationBasicAllowedVendorList : public SubscribeAttr ~SubscribeAttributeApplicationBasicAllowedVendorList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReportAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -69988,12 +71929,14 @@ class ReadApplicationBasicGeneratedCommandList : public ReadAttribute { ~ReadApplicationBasicGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ApplicationBasic.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -70014,11 +71957,13 @@ class SubscribeAttributeApplicationBasicGeneratedCommandList : public SubscribeA ~SubscribeAttributeApplicationBasicGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -70052,12 +71997,14 @@ class ReadApplicationBasicAcceptedCommandList : public ReadAttribute { ~ReadApplicationBasicAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ApplicationBasic.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -70078,11 +72025,13 @@ class SubscribeAttributeApplicationBasicAcceptedCommandList : public SubscribeAt ~SubscribeAttributeApplicationBasicAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -70116,12 +72065,14 @@ class ReadApplicationBasicAttributeList : public ReadAttribute { ~ReadApplicationBasicAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ApplicationBasic.AttributeList response %@", [value description]); if (error != nil) { @@ -70142,11 +72093,13 @@ class SubscribeAttributeApplicationBasicAttributeList : public SubscribeAttribut ~SubscribeAttributeApplicationBasicAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -70180,12 +72133,14 @@ class ReadApplicationBasicFeatureMap : public ReadAttribute { ~ReadApplicationBasicFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ApplicationBasic.FeatureMap response %@", [value description]); if (error != nil) { @@ -70206,11 +72161,13 @@ class SubscribeAttributeApplicationBasicFeatureMap : public SubscribeAttribute { ~SubscribeAttributeApplicationBasicFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -70244,12 +72201,14 @@ class ReadApplicationBasicClusterRevision : public ReadAttribute { ~ReadApplicationBasicClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ApplicationBasic.ClusterRevision response %@", [value description]); if (error != nil) { @@ -70270,11 +72229,13 @@ class SubscribeAttributeApplicationBasicClusterRevision : public SubscribeAttrib ~SubscribeAttributeApplicationBasicClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050D) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRApplicationBasic * cluster = [[MTRApplicationBasic alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -70326,12 +72287,14 @@ class AccountLoginGetSetupPIN : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050E) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAccountLogin * cluster = [[MTRAccountLogin alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAccountLogin * cluster = [[MTRBaseClusterAccountLogin alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRAccountLoginClusterGetSetupPINParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -70375,12 +72338,14 @@ class AccountLoginLogin : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050E) command (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAccountLogin * cluster = [[MTRAccountLogin alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAccountLogin * cluster = [[MTRBaseClusterAccountLogin alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRAccountLoginClusterLoginParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -70423,12 +72388,14 @@ class AccountLoginLogout : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050E) command (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAccountLogin * cluster = [[MTRAccountLogin alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAccountLogin * cluster = [[MTRBaseClusterAccountLogin alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRAccountLoginClusterLogoutParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -70465,12 +72432,14 @@ class ReadAccountLoginGeneratedCommandList : public ReadAttribute { ~ReadAccountLoginGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050E) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAccountLogin * cluster = [[MTRAccountLogin alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAccountLogin * cluster = [[MTRBaseClusterAccountLogin alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"AccountLogin.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -70491,11 +72460,13 @@ class SubscribeAttributeAccountLoginGeneratedCommandList : public SubscribeAttri ~SubscribeAttributeAccountLoginGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050E) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAccountLogin * cluster = [[MTRAccountLogin alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAccountLogin * cluster = [[MTRBaseClusterAccountLogin alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -70529,12 +72500,14 @@ class ReadAccountLoginAcceptedCommandList : public ReadAttribute { ~ReadAccountLoginAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050E) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAccountLogin * cluster = [[MTRAccountLogin alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAccountLogin * cluster = [[MTRBaseClusterAccountLogin alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"AccountLogin.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -70555,11 +72528,13 @@ class SubscribeAttributeAccountLoginAcceptedCommandList : public SubscribeAttrib ~SubscribeAttributeAccountLoginAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050E) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAccountLogin * cluster = [[MTRAccountLogin alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAccountLogin * cluster = [[MTRBaseClusterAccountLogin alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -70593,12 +72568,14 @@ class ReadAccountLoginAttributeList : public ReadAttribute { ~ReadAccountLoginAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050E) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAccountLogin * cluster = [[MTRAccountLogin alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAccountLogin * cluster = [[MTRBaseClusterAccountLogin alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"AccountLogin.AttributeList response %@", [value description]); if (error != nil) { @@ -70619,11 +72596,13 @@ class SubscribeAttributeAccountLoginAttributeList : public SubscribeAttribute { ~SubscribeAttributeAccountLoginAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050E) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAccountLogin * cluster = [[MTRAccountLogin alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAccountLogin * cluster = [[MTRBaseClusterAccountLogin alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -70657,12 +72636,14 @@ class ReadAccountLoginFeatureMap : public ReadAttribute { ~ReadAccountLoginFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050E) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAccountLogin * cluster = [[MTRAccountLogin alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAccountLogin * cluster = [[MTRBaseClusterAccountLogin alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"AccountLogin.FeatureMap response %@", [value description]); if (error != nil) { @@ -70683,11 +72664,13 @@ class SubscribeAttributeAccountLoginFeatureMap : public SubscribeAttribute { ~SubscribeAttributeAccountLoginFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050E) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAccountLogin * cluster = [[MTRAccountLogin alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAccountLogin * cluster = [[MTRBaseClusterAccountLogin alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -70721,12 +72704,14 @@ class ReadAccountLoginClusterRevision : public ReadAttribute { ~ReadAccountLoginClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050E) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAccountLogin * cluster = [[MTRAccountLogin alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAccountLogin * cluster = [[MTRBaseClusterAccountLogin alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"AccountLogin.ClusterRevision response %@", [value description]); if (error != nil) { @@ -70747,11 +72732,13 @@ class SubscribeAttributeAccountLoginClusterRevision : public SubscribeAttribute ~SubscribeAttributeAccountLoginClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x0000050E) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRAccountLogin * cluster = [[MTRAccountLogin alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterAccountLogin * cluster = [[MTRBaseClusterAccountLogin alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -70929,14 +72916,14 @@ class ElectricalMeasurementGetProfileInfoCommand : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRElectricalMeasurementClusterGetProfileInfoCommandParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -70975,14 +72962,14 @@ class ElectricalMeasurementGetMeasurementProfileCommand : public ClusterCommand ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) command (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRElectricalMeasurementClusterGetMeasurementProfileCommandParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -71023,14 +73010,14 @@ class ReadElectricalMeasurementMeasurementType : public ReadAttribute { ~ReadElectricalMeasurementMeasurementType() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMeasurementTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.MeasurementType response %@", [value description]); if (error != nil) { @@ -71051,13 +73038,13 @@ class SubscribeAttributeElectricalMeasurementMeasurementType : public SubscribeA ~SubscribeAttributeElectricalMeasurementMeasurementType() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -71091,14 +73078,14 @@ class ReadElectricalMeasurementDcVoltage : public ReadAttribute { ~ReadElectricalMeasurementDcVoltage() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000100) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeDcVoltageWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.DcVoltage response %@", [value description]); if (error != nil) { @@ -71119,13 +73106,13 @@ class SubscribeAttributeElectricalMeasurementDcVoltage : public SubscribeAttribu ~SubscribeAttributeElectricalMeasurementDcVoltage() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000100) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -71159,14 +73146,14 @@ class ReadElectricalMeasurementDcVoltageMin : public ReadAttribute { ~ReadElectricalMeasurementDcVoltageMin() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000101) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeDcVoltageMinWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.DcVoltageMin response %@", [value description]); if (error != nil) { @@ -71187,13 +73174,13 @@ class SubscribeAttributeElectricalMeasurementDcVoltageMin : public SubscribeAttr ~SubscribeAttributeElectricalMeasurementDcVoltageMin() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000101) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -71227,14 +73214,14 @@ class ReadElectricalMeasurementDcVoltageMax : public ReadAttribute { ~ReadElectricalMeasurementDcVoltageMax() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000102) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeDcVoltageMaxWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.DcVoltageMax response %@", [value description]); if (error != nil) { @@ -71255,13 +73242,13 @@ class SubscribeAttributeElectricalMeasurementDcVoltageMax : public SubscribeAttr ~SubscribeAttributeElectricalMeasurementDcVoltageMax() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000102) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -71295,14 +73282,14 @@ class ReadElectricalMeasurementDcCurrent : public ReadAttribute { ~ReadElectricalMeasurementDcCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000103) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeDcCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.DcCurrent response %@", [value description]); if (error != nil) { @@ -71323,13 +73310,13 @@ class SubscribeAttributeElectricalMeasurementDcCurrent : public SubscribeAttribu ~SubscribeAttributeElectricalMeasurementDcCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000103) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -71363,14 +73350,14 @@ class ReadElectricalMeasurementDcCurrentMin : public ReadAttribute { ~ReadElectricalMeasurementDcCurrentMin() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000104) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeDcCurrentMinWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.DcCurrentMin response %@", [value description]); if (error != nil) { @@ -71391,13 +73378,13 @@ class SubscribeAttributeElectricalMeasurementDcCurrentMin : public SubscribeAttr ~SubscribeAttributeElectricalMeasurementDcCurrentMin() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000104) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -71431,14 +73418,14 @@ class ReadElectricalMeasurementDcCurrentMax : public ReadAttribute { ~ReadElectricalMeasurementDcCurrentMax() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000105) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeDcCurrentMaxWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.DcCurrentMax response %@", [value description]); if (error != nil) { @@ -71459,13 +73446,13 @@ class SubscribeAttributeElectricalMeasurementDcCurrentMax : public SubscribeAttr ~SubscribeAttributeElectricalMeasurementDcCurrentMax() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000105) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -71499,14 +73486,14 @@ class ReadElectricalMeasurementDcPower : public ReadAttribute { ~ReadElectricalMeasurementDcPower() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000106) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeDcPowerWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.DcPower response %@", [value description]); if (error != nil) { @@ -71527,13 +73514,13 @@ class SubscribeAttributeElectricalMeasurementDcPower : public SubscribeAttribute ~SubscribeAttributeElectricalMeasurementDcPower() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000106) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -71567,14 +73554,14 @@ class ReadElectricalMeasurementDcPowerMin : public ReadAttribute { ~ReadElectricalMeasurementDcPowerMin() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000107) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeDcPowerMinWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.DcPowerMin response %@", [value description]); if (error != nil) { @@ -71595,13 +73582,13 @@ class SubscribeAttributeElectricalMeasurementDcPowerMin : public SubscribeAttrib ~SubscribeAttributeElectricalMeasurementDcPowerMin() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000107) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -71635,14 +73622,14 @@ class ReadElectricalMeasurementDcPowerMax : public ReadAttribute { ~ReadElectricalMeasurementDcPowerMax() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000108) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeDcPowerMaxWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.DcPowerMax response %@", [value description]); if (error != nil) { @@ -71663,13 +73650,13 @@ class SubscribeAttributeElectricalMeasurementDcPowerMax : public SubscribeAttrib ~SubscribeAttributeElectricalMeasurementDcPowerMax() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000108) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -71703,14 +73690,14 @@ class ReadElectricalMeasurementDcVoltageMultiplier : public ReadAttribute { ~ReadElectricalMeasurementDcVoltageMultiplier() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000200) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeDcVoltageMultiplierWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.DcVoltageMultiplier response %@", [value description]); if (error != nil) { @@ -71731,13 +73718,13 @@ class SubscribeAttributeElectricalMeasurementDcVoltageMultiplier : public Subscr ~SubscribeAttributeElectricalMeasurementDcVoltageMultiplier() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000200) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -71771,14 +73758,14 @@ class ReadElectricalMeasurementDcVoltageDivisor : public ReadAttribute { ~ReadElectricalMeasurementDcVoltageDivisor() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000201) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeDcVoltageDivisorWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.DcVoltageDivisor response %@", [value description]); if (error != nil) { @@ -71799,13 +73786,13 @@ class SubscribeAttributeElectricalMeasurementDcVoltageDivisor : public Subscribe ~SubscribeAttributeElectricalMeasurementDcVoltageDivisor() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000201) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -71839,14 +73826,14 @@ class ReadElectricalMeasurementDcCurrentMultiplier : public ReadAttribute { ~ReadElectricalMeasurementDcCurrentMultiplier() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000202) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeDcCurrentMultiplierWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.DcCurrentMultiplier response %@", [value description]); if (error != nil) { @@ -71867,13 +73854,13 @@ class SubscribeAttributeElectricalMeasurementDcCurrentMultiplier : public Subscr ~SubscribeAttributeElectricalMeasurementDcCurrentMultiplier() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000202) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -71907,14 +73894,14 @@ class ReadElectricalMeasurementDcCurrentDivisor : public ReadAttribute { ~ReadElectricalMeasurementDcCurrentDivisor() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000203) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeDcCurrentDivisorWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.DcCurrentDivisor response %@", [value description]); if (error != nil) { @@ -71935,13 +73922,13 @@ class SubscribeAttributeElectricalMeasurementDcCurrentDivisor : public Subscribe ~SubscribeAttributeElectricalMeasurementDcCurrentDivisor() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000203) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -71975,14 +73962,14 @@ class ReadElectricalMeasurementDcPowerMultiplier : public ReadAttribute { ~ReadElectricalMeasurementDcPowerMultiplier() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000204) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeDcPowerMultiplierWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.DcPowerMultiplier response %@", [value description]); if (error != nil) { @@ -72003,13 +73990,13 @@ class SubscribeAttributeElectricalMeasurementDcPowerMultiplier : public Subscrib ~SubscribeAttributeElectricalMeasurementDcPowerMultiplier() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000204) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -72043,14 +74030,14 @@ class ReadElectricalMeasurementDcPowerDivisor : public ReadAttribute { ~ReadElectricalMeasurementDcPowerDivisor() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000205) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeDcPowerDivisorWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.DcPowerDivisor response %@", [value description]); if (error != nil) { @@ -72071,13 +74058,13 @@ class SubscribeAttributeElectricalMeasurementDcPowerDivisor : public SubscribeAt ~SubscribeAttributeElectricalMeasurementDcPowerDivisor() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000205) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -72111,14 +74098,14 @@ class ReadElectricalMeasurementAcFrequency : public ReadAttribute { ~ReadElectricalMeasurementAcFrequency() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000300) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcFrequencyWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AcFrequency response %@", [value description]); if (error != nil) { @@ -72139,13 +74126,13 @@ class SubscribeAttributeElectricalMeasurementAcFrequency : public SubscribeAttri ~SubscribeAttributeElectricalMeasurementAcFrequency() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000300) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -72179,14 +74166,14 @@ class ReadElectricalMeasurementAcFrequencyMin : public ReadAttribute { ~ReadElectricalMeasurementAcFrequencyMin() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000301) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcFrequencyMinWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AcFrequencyMin response %@", [value description]); if (error != nil) { @@ -72207,13 +74194,13 @@ class SubscribeAttributeElectricalMeasurementAcFrequencyMin : public SubscribeAt ~SubscribeAttributeElectricalMeasurementAcFrequencyMin() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000301) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -72247,14 +74234,14 @@ class ReadElectricalMeasurementAcFrequencyMax : public ReadAttribute { ~ReadElectricalMeasurementAcFrequencyMax() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000302) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcFrequencyMaxWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AcFrequencyMax response %@", [value description]); if (error != nil) { @@ -72275,13 +74262,13 @@ class SubscribeAttributeElectricalMeasurementAcFrequencyMax : public SubscribeAt ~SubscribeAttributeElectricalMeasurementAcFrequencyMax() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000302) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -72315,14 +74302,14 @@ class ReadElectricalMeasurementNeutralCurrent : public ReadAttribute { ~ReadElectricalMeasurementNeutralCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000303) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNeutralCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.NeutralCurrent response %@", [value description]); if (error != nil) { @@ -72343,13 +74330,13 @@ class SubscribeAttributeElectricalMeasurementNeutralCurrent : public SubscribeAt ~SubscribeAttributeElectricalMeasurementNeutralCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000303) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -72383,14 +74370,14 @@ class ReadElectricalMeasurementTotalActivePower : public ReadAttribute { ~ReadElectricalMeasurementTotalActivePower() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000304) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeTotalActivePowerWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.TotalActivePower response %@", [value description]); if (error != nil) { @@ -72411,13 +74398,13 @@ class SubscribeAttributeElectricalMeasurementTotalActivePower : public Subscribe ~SubscribeAttributeElectricalMeasurementTotalActivePower() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000304) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -72451,14 +74438,14 @@ class ReadElectricalMeasurementTotalReactivePower : public ReadAttribute { ~ReadElectricalMeasurementTotalReactivePower() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000305) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeTotalReactivePowerWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.TotalReactivePower response %@", [value description]); if (error != nil) { @@ -72479,13 +74466,13 @@ class SubscribeAttributeElectricalMeasurementTotalReactivePower : public Subscri ~SubscribeAttributeElectricalMeasurementTotalReactivePower() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000305) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -72519,14 +74506,14 @@ class ReadElectricalMeasurementTotalApparentPower : public ReadAttribute { ~ReadElectricalMeasurementTotalApparentPower() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000306) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeTotalApparentPowerWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.TotalApparentPower response %@", [value description]); if (error != nil) { @@ -72547,13 +74534,13 @@ class SubscribeAttributeElectricalMeasurementTotalApparentPower : public Subscri ~SubscribeAttributeElectricalMeasurementTotalApparentPower() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000306) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -72587,14 +74574,14 @@ class ReadElectricalMeasurementMeasured1stHarmonicCurrent : public ReadAttribute ~ReadElectricalMeasurementMeasured1stHarmonicCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000307) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMeasured1stHarmonicCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.Measured1stHarmonicCurrent response %@", [value description]); @@ -72616,13 +74603,13 @@ class SubscribeAttributeElectricalMeasurementMeasured1stHarmonicCurrent : public ~SubscribeAttributeElectricalMeasurementMeasured1stHarmonicCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000307) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -72656,14 +74643,14 @@ class ReadElectricalMeasurementMeasured3rdHarmonicCurrent : public ReadAttribute ~ReadElectricalMeasurementMeasured3rdHarmonicCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000308) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMeasured3rdHarmonicCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.Measured3rdHarmonicCurrent response %@", [value description]); @@ -72685,13 +74672,13 @@ class SubscribeAttributeElectricalMeasurementMeasured3rdHarmonicCurrent : public ~SubscribeAttributeElectricalMeasurementMeasured3rdHarmonicCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000308) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -72725,14 +74712,14 @@ class ReadElectricalMeasurementMeasured5thHarmonicCurrent : public ReadAttribute ~ReadElectricalMeasurementMeasured5thHarmonicCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000309) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMeasured5thHarmonicCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.Measured5thHarmonicCurrent response %@", [value description]); @@ -72754,13 +74741,13 @@ class SubscribeAttributeElectricalMeasurementMeasured5thHarmonicCurrent : public ~SubscribeAttributeElectricalMeasurementMeasured5thHarmonicCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000309) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -72794,14 +74781,14 @@ class ReadElectricalMeasurementMeasured7thHarmonicCurrent : public ReadAttribute ~ReadElectricalMeasurementMeasured7thHarmonicCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000030A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMeasured7thHarmonicCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.Measured7thHarmonicCurrent response %@", [value description]); @@ -72823,13 +74810,13 @@ class SubscribeAttributeElectricalMeasurementMeasured7thHarmonicCurrent : public ~SubscribeAttributeElectricalMeasurementMeasured7thHarmonicCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000030A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -72863,14 +74850,14 @@ class ReadElectricalMeasurementMeasured9thHarmonicCurrent : public ReadAttribute ~ReadElectricalMeasurementMeasured9thHarmonicCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000030B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMeasured9thHarmonicCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.Measured9thHarmonicCurrent response %@", [value description]); @@ -72892,13 +74879,13 @@ class SubscribeAttributeElectricalMeasurementMeasured9thHarmonicCurrent : public ~SubscribeAttributeElectricalMeasurementMeasured9thHarmonicCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000030B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -72932,14 +74919,14 @@ class ReadElectricalMeasurementMeasured11thHarmonicCurrent : public ReadAttribut ~ReadElectricalMeasurementMeasured11thHarmonicCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000030C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMeasured11thHarmonicCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.Measured11thHarmonicCurrent response %@", [value description]); @@ -72961,13 +74948,13 @@ class SubscribeAttributeElectricalMeasurementMeasured11thHarmonicCurrent : publi ~SubscribeAttributeElectricalMeasurementMeasured11thHarmonicCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000030C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -73001,14 +74988,14 @@ class ReadElectricalMeasurementMeasuredPhase1stHarmonicCurrent : public ReadAttr ~ReadElectricalMeasurementMeasuredPhase1stHarmonicCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000030D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMeasuredPhase1stHarmonicCurrentWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.MeasuredPhase1stHarmonicCurrent response %@", [value description]); @@ -73030,13 +75017,13 @@ class SubscribeAttributeElectricalMeasurementMeasuredPhase1stHarmonicCurrent : p ~SubscribeAttributeElectricalMeasurementMeasuredPhase1stHarmonicCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000030D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -73070,14 +75057,14 @@ class ReadElectricalMeasurementMeasuredPhase3rdHarmonicCurrent : public ReadAttr ~ReadElectricalMeasurementMeasuredPhase3rdHarmonicCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000030E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMeasuredPhase3rdHarmonicCurrentWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.MeasuredPhase3rdHarmonicCurrent response %@", [value description]); @@ -73099,13 +75086,13 @@ class SubscribeAttributeElectricalMeasurementMeasuredPhase3rdHarmonicCurrent : p ~SubscribeAttributeElectricalMeasurementMeasuredPhase3rdHarmonicCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000030E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -73139,14 +75126,14 @@ class ReadElectricalMeasurementMeasuredPhase5thHarmonicCurrent : public ReadAttr ~ReadElectricalMeasurementMeasuredPhase5thHarmonicCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000030F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMeasuredPhase5thHarmonicCurrentWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.MeasuredPhase5thHarmonicCurrent response %@", [value description]); @@ -73168,13 +75155,13 @@ class SubscribeAttributeElectricalMeasurementMeasuredPhase5thHarmonicCurrent : p ~SubscribeAttributeElectricalMeasurementMeasuredPhase5thHarmonicCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000030F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -73208,14 +75195,14 @@ class ReadElectricalMeasurementMeasuredPhase7thHarmonicCurrent : public ReadAttr ~ReadElectricalMeasurementMeasuredPhase7thHarmonicCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000310) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMeasuredPhase7thHarmonicCurrentWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.MeasuredPhase7thHarmonicCurrent response %@", [value description]); @@ -73237,13 +75224,13 @@ class SubscribeAttributeElectricalMeasurementMeasuredPhase7thHarmonicCurrent : p ~SubscribeAttributeElectricalMeasurementMeasuredPhase7thHarmonicCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000310) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -73277,14 +75264,14 @@ class ReadElectricalMeasurementMeasuredPhase9thHarmonicCurrent : public ReadAttr ~ReadElectricalMeasurementMeasuredPhase9thHarmonicCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000311) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMeasuredPhase9thHarmonicCurrentWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.MeasuredPhase9thHarmonicCurrent response %@", [value description]); @@ -73306,13 +75293,13 @@ class SubscribeAttributeElectricalMeasurementMeasuredPhase9thHarmonicCurrent : p ~SubscribeAttributeElectricalMeasurementMeasuredPhase9thHarmonicCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000311) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -73346,14 +75333,14 @@ class ReadElectricalMeasurementMeasuredPhase11thHarmonicCurrent : public ReadAtt ~ReadElectricalMeasurementMeasuredPhase11thHarmonicCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000312) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeMeasuredPhase11thHarmonicCurrentWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.MeasuredPhase11thHarmonicCurrent response %@", [value description]); @@ -73375,13 +75362,13 @@ class SubscribeAttributeElectricalMeasurementMeasuredPhase11thHarmonicCurrent : ~SubscribeAttributeElectricalMeasurementMeasuredPhase11thHarmonicCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000312) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -73415,14 +75402,14 @@ class ReadElectricalMeasurementAcFrequencyMultiplier : public ReadAttribute { ~ReadElectricalMeasurementAcFrequencyMultiplier() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000400) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcFrequencyMultiplierWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AcFrequencyMultiplier response %@", [value description]); if (error != nil) { @@ -73443,13 +75430,13 @@ class SubscribeAttributeElectricalMeasurementAcFrequencyMultiplier : public Subs ~SubscribeAttributeElectricalMeasurementAcFrequencyMultiplier() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000400) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -73483,14 +75470,14 @@ class ReadElectricalMeasurementAcFrequencyDivisor : public ReadAttribute { ~ReadElectricalMeasurementAcFrequencyDivisor() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000401) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcFrequencyDivisorWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AcFrequencyDivisor response %@", [value description]); if (error != nil) { @@ -73511,13 +75498,13 @@ class SubscribeAttributeElectricalMeasurementAcFrequencyDivisor : public Subscri ~SubscribeAttributeElectricalMeasurementAcFrequencyDivisor() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000401) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -73551,14 +75538,14 @@ class ReadElectricalMeasurementPowerMultiplier : public ReadAttribute { ~ReadElectricalMeasurementPowerMultiplier() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000402) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePowerMultiplierWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.PowerMultiplier response %@", [value description]); if (error != nil) { @@ -73579,13 +75566,13 @@ class SubscribeAttributeElectricalMeasurementPowerMultiplier : public SubscribeA ~SubscribeAttributeElectricalMeasurementPowerMultiplier() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000402) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -73619,14 +75606,14 @@ class ReadElectricalMeasurementPowerDivisor : public ReadAttribute { ~ReadElectricalMeasurementPowerDivisor() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000403) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePowerDivisorWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.PowerDivisor response %@", [value description]); if (error != nil) { @@ -73647,13 +75634,13 @@ class SubscribeAttributeElectricalMeasurementPowerDivisor : public SubscribeAttr ~SubscribeAttributeElectricalMeasurementPowerDivisor() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000403) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -73687,14 +75674,14 @@ class ReadElectricalMeasurementHarmonicCurrentMultiplier : public ReadAttribute ~ReadElectricalMeasurementHarmonicCurrentMultiplier() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000404) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeHarmonicCurrentMultiplierWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.HarmonicCurrentMultiplier response %@", [value description]); @@ -73716,13 +75703,13 @@ class SubscribeAttributeElectricalMeasurementHarmonicCurrentMultiplier : public ~SubscribeAttributeElectricalMeasurementHarmonicCurrentMultiplier() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000404) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -73756,14 +75743,14 @@ class ReadElectricalMeasurementPhaseHarmonicCurrentMultiplier : public ReadAttri ~ReadElectricalMeasurementPhaseHarmonicCurrentMultiplier() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000405) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePhaseHarmonicCurrentMultiplierWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.PhaseHarmonicCurrentMultiplier response %@", [value description]); @@ -73785,13 +75772,13 @@ class SubscribeAttributeElectricalMeasurementPhaseHarmonicCurrentMultiplier : pu ~SubscribeAttributeElectricalMeasurementPhaseHarmonicCurrentMultiplier() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000405) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -73825,14 +75812,14 @@ class ReadElectricalMeasurementInstantaneousVoltage : public ReadAttribute { ~ReadElectricalMeasurementInstantaneousVoltage() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000500) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeInstantaneousVoltageWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.InstantaneousVoltage response %@", [value description]); if (error != nil) { @@ -73853,13 +75840,13 @@ class SubscribeAttributeElectricalMeasurementInstantaneousVoltage : public Subsc ~SubscribeAttributeElectricalMeasurementInstantaneousVoltage() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000500) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -73893,14 +75880,14 @@ class ReadElectricalMeasurementInstantaneousLineCurrent : public ReadAttribute { ~ReadElectricalMeasurementInstantaneousLineCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000501) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeInstantaneousLineCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.InstantaneousLineCurrent response %@", [value description]); @@ -73922,13 +75909,13 @@ class SubscribeAttributeElectricalMeasurementInstantaneousLineCurrent : public S ~SubscribeAttributeElectricalMeasurementInstantaneousLineCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000501) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -73962,14 +75949,14 @@ class ReadElectricalMeasurementInstantaneousActiveCurrent : public ReadAttribute ~ReadElectricalMeasurementInstantaneousActiveCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000502) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeInstantaneousActiveCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.InstantaneousActiveCurrent response %@", [value description]); @@ -73991,13 +75978,13 @@ class SubscribeAttributeElectricalMeasurementInstantaneousActiveCurrent : public ~SubscribeAttributeElectricalMeasurementInstantaneousActiveCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000502) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -74031,14 +76018,14 @@ class ReadElectricalMeasurementInstantaneousReactiveCurrent : public ReadAttribu ~ReadElectricalMeasurementInstantaneousReactiveCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000503) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeInstantaneousReactiveCurrentWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.InstantaneousReactiveCurrent response %@", [value description]); @@ -74060,13 +76047,13 @@ class SubscribeAttributeElectricalMeasurementInstantaneousReactiveCurrent : publ ~SubscribeAttributeElectricalMeasurementInstantaneousReactiveCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000503) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -74100,14 +76087,14 @@ class ReadElectricalMeasurementInstantaneousPower : public ReadAttribute { ~ReadElectricalMeasurementInstantaneousPower() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000504) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeInstantaneousPowerWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.InstantaneousPower response %@", [value description]); if (error != nil) { @@ -74128,13 +76115,13 @@ class SubscribeAttributeElectricalMeasurementInstantaneousPower : public Subscri ~SubscribeAttributeElectricalMeasurementInstantaneousPower() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000504) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -74168,14 +76155,14 @@ class ReadElectricalMeasurementRmsVoltage : public ReadAttribute { ~ReadElectricalMeasurementRmsVoltage() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000505) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsVoltageWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsVoltage response %@", [value description]); if (error != nil) { @@ -74196,13 +76183,13 @@ class SubscribeAttributeElectricalMeasurementRmsVoltage : public SubscribeAttrib ~SubscribeAttributeElectricalMeasurementRmsVoltage() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000505) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -74236,14 +76223,14 @@ class ReadElectricalMeasurementRmsVoltageMin : public ReadAttribute { ~ReadElectricalMeasurementRmsVoltageMin() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000506) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsVoltageMinWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsVoltageMin response %@", [value description]); if (error != nil) { @@ -74264,13 +76251,13 @@ class SubscribeAttributeElectricalMeasurementRmsVoltageMin : public SubscribeAtt ~SubscribeAttributeElectricalMeasurementRmsVoltageMin() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000506) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -74304,14 +76291,14 @@ class ReadElectricalMeasurementRmsVoltageMax : public ReadAttribute { ~ReadElectricalMeasurementRmsVoltageMax() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000507) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsVoltageMaxWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsVoltageMax response %@", [value description]); if (error != nil) { @@ -74332,13 +76319,13 @@ class SubscribeAttributeElectricalMeasurementRmsVoltageMax : public SubscribeAtt ~SubscribeAttributeElectricalMeasurementRmsVoltageMax() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000507) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -74372,14 +76359,14 @@ class ReadElectricalMeasurementRmsCurrent : public ReadAttribute { ~ReadElectricalMeasurementRmsCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000508) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsCurrent response %@", [value description]); if (error != nil) { @@ -74400,13 +76387,13 @@ class SubscribeAttributeElectricalMeasurementRmsCurrent : public SubscribeAttrib ~SubscribeAttributeElectricalMeasurementRmsCurrent() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000508) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -74440,14 +76427,14 @@ class ReadElectricalMeasurementRmsCurrentMin : public ReadAttribute { ~ReadElectricalMeasurementRmsCurrentMin() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000509) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsCurrentMinWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsCurrentMin response %@", [value description]); if (error != nil) { @@ -74468,13 +76455,13 @@ class SubscribeAttributeElectricalMeasurementRmsCurrentMin : public SubscribeAtt ~SubscribeAttributeElectricalMeasurementRmsCurrentMin() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000509) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -74508,14 +76495,14 @@ class ReadElectricalMeasurementRmsCurrentMax : public ReadAttribute { ~ReadElectricalMeasurementRmsCurrentMax() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000050A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsCurrentMaxWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsCurrentMax response %@", [value description]); if (error != nil) { @@ -74536,13 +76523,13 @@ class SubscribeAttributeElectricalMeasurementRmsCurrentMax : public SubscribeAtt ~SubscribeAttributeElectricalMeasurementRmsCurrentMax() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000050A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -74576,14 +76563,14 @@ class ReadElectricalMeasurementActivePower : public ReadAttribute { ~ReadElectricalMeasurementActivePower() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000050B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeActivePowerWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.ActivePower response %@", [value description]); if (error != nil) { @@ -74604,13 +76591,13 @@ class SubscribeAttributeElectricalMeasurementActivePower : public SubscribeAttri ~SubscribeAttributeElectricalMeasurementActivePower() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000050B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -74644,14 +76631,14 @@ class ReadElectricalMeasurementActivePowerMin : public ReadAttribute { ~ReadElectricalMeasurementActivePowerMin() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000050C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeActivePowerMinWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.ActivePowerMin response %@", [value description]); if (error != nil) { @@ -74672,13 +76659,13 @@ class SubscribeAttributeElectricalMeasurementActivePowerMin : public SubscribeAt ~SubscribeAttributeElectricalMeasurementActivePowerMin() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000050C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -74712,14 +76699,14 @@ class ReadElectricalMeasurementActivePowerMax : public ReadAttribute { ~ReadElectricalMeasurementActivePowerMax() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000050D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeActivePowerMaxWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.ActivePowerMax response %@", [value description]); if (error != nil) { @@ -74740,13 +76727,13 @@ class SubscribeAttributeElectricalMeasurementActivePowerMax : public SubscribeAt ~SubscribeAttributeElectricalMeasurementActivePowerMax() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000050D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -74780,14 +76767,14 @@ class ReadElectricalMeasurementReactivePower : public ReadAttribute { ~ReadElectricalMeasurementReactivePower() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000050E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeReactivePowerWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.ReactivePower response %@", [value description]); if (error != nil) { @@ -74808,13 +76795,13 @@ class SubscribeAttributeElectricalMeasurementReactivePower : public SubscribeAtt ~SubscribeAttributeElectricalMeasurementReactivePower() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000050E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -74848,14 +76835,14 @@ class ReadElectricalMeasurementApparentPower : public ReadAttribute { ~ReadElectricalMeasurementApparentPower() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000050F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeApparentPowerWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.ApparentPower response %@", [value description]); if (error != nil) { @@ -74876,13 +76863,13 @@ class SubscribeAttributeElectricalMeasurementApparentPower : public SubscribeAtt ~SubscribeAttributeElectricalMeasurementApparentPower() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000050F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -74916,14 +76903,14 @@ class ReadElectricalMeasurementPowerFactor : public ReadAttribute { ~ReadElectricalMeasurementPowerFactor() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000510) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePowerFactorWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.PowerFactor response %@", [value description]); if (error != nil) { @@ -74944,13 +76931,13 @@ class SubscribeAttributeElectricalMeasurementPowerFactor : public SubscribeAttri ~SubscribeAttributeElectricalMeasurementPowerFactor() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000510) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -74984,14 +76971,14 @@ class ReadElectricalMeasurementAverageRmsVoltageMeasurementPeriod : public ReadA ~ReadElectricalMeasurementAverageRmsVoltageMeasurementPeriod() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000511) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAverageRmsVoltageMeasurementPeriodWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AverageRmsVoltageMeasurementPeriod response %@", [value description]); @@ -75016,15 +77003,15 @@ class WriteElectricalMeasurementAverageRmsVoltageMeasurementPeriod : public Writ ~WriteElectricalMeasurementAverageRmsVoltageMeasurementPeriod() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) WriteAttribute (0x00000511) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; @@ -75055,13 +77042,13 @@ class SubscribeAttributeElectricalMeasurementAverageRmsVoltageMeasurementPeriod ~SubscribeAttributeElectricalMeasurementAverageRmsVoltageMeasurementPeriod() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000511) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -75095,14 +77082,14 @@ class ReadElectricalMeasurementAverageRmsUnderVoltageCounter : public ReadAttrib ~ReadElectricalMeasurementAverageRmsUnderVoltageCounter() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000513) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAverageRmsUnderVoltageCounterWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AverageRmsUnderVoltageCounter response %@", [value description]); @@ -75127,15 +77114,15 @@ class WriteElectricalMeasurementAverageRmsUnderVoltageCounter : public WriteAttr ~WriteElectricalMeasurementAverageRmsUnderVoltageCounter() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) WriteAttribute (0x00000513) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; @@ -75166,13 +77153,13 @@ class SubscribeAttributeElectricalMeasurementAverageRmsUnderVoltageCounter : pub ~SubscribeAttributeElectricalMeasurementAverageRmsUnderVoltageCounter() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000513) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -75206,14 +77193,14 @@ class ReadElectricalMeasurementRmsExtremeOverVoltagePeriod : public ReadAttribut ~ReadElectricalMeasurementRmsExtremeOverVoltagePeriod() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000514) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsExtremeOverVoltagePeriodWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsExtremeOverVoltagePeriod response %@", [value description]); @@ -75238,15 +77225,15 @@ class WriteElectricalMeasurementRmsExtremeOverVoltagePeriod : public WriteAttrib ~WriteElectricalMeasurementRmsExtremeOverVoltagePeriod() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) WriteAttribute (0x00000514) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; @@ -75277,13 +77264,13 @@ class SubscribeAttributeElectricalMeasurementRmsExtremeOverVoltagePeriod : publi ~SubscribeAttributeElectricalMeasurementRmsExtremeOverVoltagePeriod() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000514) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -75317,14 +77304,14 @@ class ReadElectricalMeasurementRmsExtremeUnderVoltagePeriod : public ReadAttribu ~ReadElectricalMeasurementRmsExtremeUnderVoltagePeriod() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000515) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsExtremeUnderVoltagePeriodWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsExtremeUnderVoltagePeriod response %@", [value description]); @@ -75349,15 +77336,15 @@ class WriteElectricalMeasurementRmsExtremeUnderVoltagePeriod : public WriteAttri ~WriteElectricalMeasurementRmsExtremeUnderVoltagePeriod() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) WriteAttribute (0x00000515) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; @@ -75388,13 +77375,13 @@ class SubscribeAttributeElectricalMeasurementRmsExtremeUnderVoltagePeriod : publ ~SubscribeAttributeElectricalMeasurementRmsExtremeUnderVoltagePeriod() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000515) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -75428,14 +77415,14 @@ class ReadElectricalMeasurementRmsVoltageSagPeriod : public ReadAttribute { ~ReadElectricalMeasurementRmsVoltageSagPeriod() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000516) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsVoltageSagPeriodWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsVoltageSagPeriod response %@", [value description]); if (error != nil) { @@ -75459,15 +77446,15 @@ class WriteElectricalMeasurementRmsVoltageSagPeriod : public WriteAttribute { ~WriteElectricalMeasurementRmsVoltageSagPeriod() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) WriteAttribute (0x00000516) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; @@ -75496,13 +77483,13 @@ class SubscribeAttributeElectricalMeasurementRmsVoltageSagPeriod : public Subscr ~SubscribeAttributeElectricalMeasurementRmsVoltageSagPeriod() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000516) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -75536,14 +77523,14 @@ class ReadElectricalMeasurementRmsVoltageSwellPeriod : public ReadAttribute { ~ReadElectricalMeasurementRmsVoltageSwellPeriod() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000517) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsVoltageSwellPeriodWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsVoltageSwellPeriod response %@", [value description]); if (error != nil) { @@ -75567,15 +77554,15 @@ class WriteElectricalMeasurementRmsVoltageSwellPeriod : public WriteAttribute { ~WriteElectricalMeasurementRmsVoltageSwellPeriod() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) WriteAttribute (0x00000517) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; @@ -75604,13 +77591,13 @@ class SubscribeAttributeElectricalMeasurementRmsVoltageSwellPeriod : public Subs ~SubscribeAttributeElectricalMeasurementRmsVoltageSwellPeriod() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000517) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -75644,14 +77631,14 @@ class ReadElectricalMeasurementAcVoltageMultiplier : public ReadAttribute { ~ReadElectricalMeasurementAcVoltageMultiplier() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000600) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcVoltageMultiplierWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AcVoltageMultiplier response %@", [value description]); if (error != nil) { @@ -75672,13 +77659,13 @@ class SubscribeAttributeElectricalMeasurementAcVoltageMultiplier : public Subscr ~SubscribeAttributeElectricalMeasurementAcVoltageMultiplier() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000600) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -75712,14 +77699,14 @@ class ReadElectricalMeasurementAcVoltageDivisor : public ReadAttribute { ~ReadElectricalMeasurementAcVoltageDivisor() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000601) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcVoltageDivisorWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AcVoltageDivisor response %@", [value description]); if (error != nil) { @@ -75740,13 +77727,13 @@ class SubscribeAttributeElectricalMeasurementAcVoltageDivisor : public Subscribe ~SubscribeAttributeElectricalMeasurementAcVoltageDivisor() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000601) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -75780,14 +77767,14 @@ class ReadElectricalMeasurementAcCurrentMultiplier : public ReadAttribute { ~ReadElectricalMeasurementAcCurrentMultiplier() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000602) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcCurrentMultiplierWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AcCurrentMultiplier response %@", [value description]); if (error != nil) { @@ -75808,13 +77795,13 @@ class SubscribeAttributeElectricalMeasurementAcCurrentMultiplier : public Subscr ~SubscribeAttributeElectricalMeasurementAcCurrentMultiplier() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000602) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -75848,14 +77835,14 @@ class ReadElectricalMeasurementAcCurrentDivisor : public ReadAttribute { ~ReadElectricalMeasurementAcCurrentDivisor() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000603) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcCurrentDivisorWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AcCurrentDivisor response %@", [value description]); if (error != nil) { @@ -75876,13 +77863,13 @@ class SubscribeAttributeElectricalMeasurementAcCurrentDivisor : public Subscribe ~SubscribeAttributeElectricalMeasurementAcCurrentDivisor() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000603) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -75916,14 +77903,14 @@ class ReadElectricalMeasurementAcPowerMultiplier : public ReadAttribute { ~ReadElectricalMeasurementAcPowerMultiplier() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000604) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcPowerMultiplierWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AcPowerMultiplier response %@", [value description]); if (error != nil) { @@ -75944,13 +77931,13 @@ class SubscribeAttributeElectricalMeasurementAcPowerMultiplier : public Subscrib ~SubscribeAttributeElectricalMeasurementAcPowerMultiplier() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000604) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -75984,14 +77971,14 @@ class ReadElectricalMeasurementAcPowerDivisor : public ReadAttribute { ~ReadElectricalMeasurementAcPowerDivisor() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000605) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcPowerDivisorWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AcPowerDivisor response %@", [value description]); if (error != nil) { @@ -76012,13 +77999,13 @@ class SubscribeAttributeElectricalMeasurementAcPowerDivisor : public SubscribeAt ~SubscribeAttributeElectricalMeasurementAcPowerDivisor() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000605) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -76052,14 +78039,14 @@ class ReadElectricalMeasurementOverloadAlarmsMask : public ReadAttribute { ~ReadElectricalMeasurementOverloadAlarmsMask() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000700) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeOverloadAlarmsMaskWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.OverloadAlarmsMask response %@", [value description]); if (error != nil) { @@ -76083,15 +78070,15 @@ class WriteElectricalMeasurementOverloadAlarmsMask : public WriteAttribute { ~WriteElectricalMeasurementOverloadAlarmsMask() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) WriteAttribute (0x00000700) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; @@ -76120,13 +78107,13 @@ class SubscribeAttributeElectricalMeasurementOverloadAlarmsMask : public Subscri ~SubscribeAttributeElectricalMeasurementOverloadAlarmsMask() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000700) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -76160,14 +78147,14 @@ class ReadElectricalMeasurementVoltageOverload : public ReadAttribute { ~ReadElectricalMeasurementVoltageOverload() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000701) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeVoltageOverloadWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.VoltageOverload response %@", [value description]); if (error != nil) { @@ -76188,13 +78175,13 @@ class SubscribeAttributeElectricalMeasurementVoltageOverload : public SubscribeA ~SubscribeAttributeElectricalMeasurementVoltageOverload() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000701) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -76228,14 +78215,14 @@ class ReadElectricalMeasurementCurrentOverload : public ReadAttribute { ~ReadElectricalMeasurementCurrentOverload() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000702) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeCurrentOverloadWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.CurrentOverload response %@", [value description]); if (error != nil) { @@ -76256,13 +78243,13 @@ class SubscribeAttributeElectricalMeasurementCurrentOverload : public SubscribeA ~SubscribeAttributeElectricalMeasurementCurrentOverload() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000702) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -76296,14 +78283,14 @@ class ReadElectricalMeasurementAcOverloadAlarmsMask : public ReadAttribute { ~ReadElectricalMeasurementAcOverloadAlarmsMask() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000800) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcOverloadAlarmsMaskWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AcOverloadAlarmsMask response %@", [value description]); if (error != nil) { @@ -76327,15 +78314,15 @@ class WriteElectricalMeasurementAcOverloadAlarmsMask : public WriteAttribute { ~WriteElectricalMeasurementAcOverloadAlarmsMask() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) WriteAttribute (0x00000800) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; @@ -76364,13 +78351,13 @@ class SubscribeAttributeElectricalMeasurementAcOverloadAlarmsMask : public Subsc ~SubscribeAttributeElectricalMeasurementAcOverloadAlarmsMask() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000800) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -76404,14 +78391,14 @@ class ReadElectricalMeasurementAcVoltageOverload : public ReadAttribute { ~ReadElectricalMeasurementAcVoltageOverload() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000801) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcVoltageOverloadWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AcVoltageOverload response %@", [value description]); if (error != nil) { @@ -76432,13 +78419,13 @@ class SubscribeAttributeElectricalMeasurementAcVoltageOverload : public Subscrib ~SubscribeAttributeElectricalMeasurementAcVoltageOverload() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000801) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -76472,14 +78459,14 @@ class ReadElectricalMeasurementAcCurrentOverload : public ReadAttribute { ~ReadElectricalMeasurementAcCurrentOverload() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000802) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcCurrentOverloadWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AcCurrentOverload response %@", [value description]); if (error != nil) { @@ -76500,13 +78487,13 @@ class SubscribeAttributeElectricalMeasurementAcCurrentOverload : public Subscrib ~SubscribeAttributeElectricalMeasurementAcCurrentOverload() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000802) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -76540,14 +78527,14 @@ class ReadElectricalMeasurementAcActivePowerOverload : public ReadAttribute { ~ReadElectricalMeasurementAcActivePowerOverload() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000803) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcActivePowerOverloadWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AcActivePowerOverload response %@", [value description]); if (error != nil) { @@ -76568,13 +78555,13 @@ class SubscribeAttributeElectricalMeasurementAcActivePowerOverload : public Subs ~SubscribeAttributeElectricalMeasurementAcActivePowerOverload() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000803) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -76608,14 +78595,14 @@ class ReadElectricalMeasurementAcReactivePowerOverload : public ReadAttribute { ~ReadElectricalMeasurementAcReactivePowerOverload() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000804) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcReactivePowerOverloadWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AcReactivePowerOverload response %@", [value description]); @@ -76637,13 +78624,13 @@ class SubscribeAttributeElectricalMeasurementAcReactivePowerOverload : public Su ~SubscribeAttributeElectricalMeasurementAcReactivePowerOverload() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000804) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -76677,14 +78664,14 @@ class ReadElectricalMeasurementAverageRmsOverVoltage : public ReadAttribute { ~ReadElectricalMeasurementAverageRmsOverVoltage() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000805) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAverageRmsOverVoltageWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AverageRmsOverVoltage response %@", [value description]); if (error != nil) { @@ -76705,13 +78692,13 @@ class SubscribeAttributeElectricalMeasurementAverageRmsOverVoltage : public Subs ~SubscribeAttributeElectricalMeasurementAverageRmsOverVoltage() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000805) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -76745,14 +78732,14 @@ class ReadElectricalMeasurementAverageRmsUnderVoltage : public ReadAttribute { ~ReadElectricalMeasurementAverageRmsUnderVoltage() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000806) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAverageRmsUnderVoltageWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AverageRmsUnderVoltage response %@", [value description]); if (error != nil) { @@ -76773,13 +78760,13 @@ class SubscribeAttributeElectricalMeasurementAverageRmsUnderVoltage : public Sub ~SubscribeAttributeElectricalMeasurementAverageRmsUnderVoltage() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000806) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -76813,14 +78800,14 @@ class ReadElectricalMeasurementRmsExtremeOverVoltage : public ReadAttribute { ~ReadElectricalMeasurementRmsExtremeOverVoltage() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000807) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsExtremeOverVoltageWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsExtremeOverVoltage response %@", [value description]); if (error != nil) { @@ -76841,13 +78828,13 @@ class SubscribeAttributeElectricalMeasurementRmsExtremeOverVoltage : public Subs ~SubscribeAttributeElectricalMeasurementRmsExtremeOverVoltage() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000807) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -76881,14 +78868,14 @@ class ReadElectricalMeasurementRmsExtremeUnderVoltage : public ReadAttribute { ~ReadElectricalMeasurementRmsExtremeUnderVoltage() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000808) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsExtremeUnderVoltageWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsExtremeUnderVoltage response %@", [value description]); if (error != nil) { @@ -76909,13 +78896,13 @@ class SubscribeAttributeElectricalMeasurementRmsExtremeUnderVoltage : public Sub ~SubscribeAttributeElectricalMeasurementRmsExtremeUnderVoltage() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000808) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -76949,14 +78936,14 @@ class ReadElectricalMeasurementRmsVoltageSag : public ReadAttribute { ~ReadElectricalMeasurementRmsVoltageSag() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000809) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsVoltageSagWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsVoltageSag response %@", [value description]); if (error != nil) { @@ -76977,13 +78964,13 @@ class SubscribeAttributeElectricalMeasurementRmsVoltageSag : public SubscribeAtt ~SubscribeAttributeElectricalMeasurementRmsVoltageSag() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000809) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -77017,14 +79004,14 @@ class ReadElectricalMeasurementRmsVoltageSwell : public ReadAttribute { ~ReadElectricalMeasurementRmsVoltageSwell() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000080A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsVoltageSwellWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsVoltageSwell response %@", [value description]); if (error != nil) { @@ -77045,13 +79032,13 @@ class SubscribeAttributeElectricalMeasurementRmsVoltageSwell : public SubscribeA ~SubscribeAttributeElectricalMeasurementRmsVoltageSwell() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000080A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -77085,14 +79072,14 @@ class ReadElectricalMeasurementLineCurrentPhaseB : public ReadAttribute { ~ReadElectricalMeasurementLineCurrentPhaseB() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000901) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeLineCurrentPhaseBWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.LineCurrentPhaseB response %@", [value description]); if (error != nil) { @@ -77113,13 +79100,13 @@ class SubscribeAttributeElectricalMeasurementLineCurrentPhaseB : public Subscrib ~SubscribeAttributeElectricalMeasurementLineCurrentPhaseB() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000901) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -77153,14 +79140,14 @@ class ReadElectricalMeasurementActiveCurrentPhaseB : public ReadAttribute { ~ReadElectricalMeasurementActiveCurrentPhaseB() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000902) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeActiveCurrentPhaseBWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.ActiveCurrentPhaseB response %@", [value description]); if (error != nil) { @@ -77181,13 +79168,13 @@ class SubscribeAttributeElectricalMeasurementActiveCurrentPhaseB : public Subscr ~SubscribeAttributeElectricalMeasurementActiveCurrentPhaseB() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000902) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -77221,14 +79208,14 @@ class ReadElectricalMeasurementReactiveCurrentPhaseB : public ReadAttribute { ~ReadElectricalMeasurementReactiveCurrentPhaseB() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000903) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeReactiveCurrentPhaseBWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.ReactiveCurrentPhaseB response %@", [value description]); if (error != nil) { @@ -77249,13 +79236,13 @@ class SubscribeAttributeElectricalMeasurementReactiveCurrentPhaseB : public Subs ~SubscribeAttributeElectricalMeasurementReactiveCurrentPhaseB() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000903) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -77289,14 +79276,14 @@ class ReadElectricalMeasurementRmsVoltagePhaseB : public ReadAttribute { ~ReadElectricalMeasurementRmsVoltagePhaseB() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000905) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsVoltagePhaseBWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsVoltagePhaseB response %@", [value description]); if (error != nil) { @@ -77317,13 +79304,13 @@ class SubscribeAttributeElectricalMeasurementRmsVoltagePhaseB : public Subscribe ~SubscribeAttributeElectricalMeasurementRmsVoltagePhaseB() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000905) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -77357,14 +79344,14 @@ class ReadElectricalMeasurementRmsVoltageMinPhaseB : public ReadAttribute { ~ReadElectricalMeasurementRmsVoltageMinPhaseB() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000906) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsVoltageMinPhaseBWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsVoltageMinPhaseB response %@", [value description]); if (error != nil) { @@ -77385,13 +79372,13 @@ class SubscribeAttributeElectricalMeasurementRmsVoltageMinPhaseB : public Subscr ~SubscribeAttributeElectricalMeasurementRmsVoltageMinPhaseB() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000906) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -77425,14 +79412,14 @@ class ReadElectricalMeasurementRmsVoltageMaxPhaseB : public ReadAttribute { ~ReadElectricalMeasurementRmsVoltageMaxPhaseB() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000907) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsVoltageMaxPhaseBWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsVoltageMaxPhaseB response %@", [value description]); if (error != nil) { @@ -77453,13 +79440,13 @@ class SubscribeAttributeElectricalMeasurementRmsVoltageMaxPhaseB : public Subscr ~SubscribeAttributeElectricalMeasurementRmsVoltageMaxPhaseB() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000907) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -77493,14 +79480,14 @@ class ReadElectricalMeasurementRmsCurrentPhaseB : public ReadAttribute { ~ReadElectricalMeasurementRmsCurrentPhaseB() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000908) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsCurrentPhaseBWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsCurrentPhaseB response %@", [value description]); if (error != nil) { @@ -77521,13 +79508,13 @@ class SubscribeAttributeElectricalMeasurementRmsCurrentPhaseB : public Subscribe ~SubscribeAttributeElectricalMeasurementRmsCurrentPhaseB() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000908) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -77561,14 +79548,14 @@ class ReadElectricalMeasurementRmsCurrentMinPhaseB : public ReadAttribute { ~ReadElectricalMeasurementRmsCurrentMinPhaseB() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000909) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsCurrentMinPhaseBWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsCurrentMinPhaseB response %@", [value description]); if (error != nil) { @@ -77589,13 +79576,13 @@ class SubscribeAttributeElectricalMeasurementRmsCurrentMinPhaseB : public Subscr ~SubscribeAttributeElectricalMeasurementRmsCurrentMinPhaseB() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000909) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -77629,14 +79616,14 @@ class ReadElectricalMeasurementRmsCurrentMaxPhaseB : public ReadAttribute { ~ReadElectricalMeasurementRmsCurrentMaxPhaseB() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000090A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsCurrentMaxPhaseBWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsCurrentMaxPhaseB response %@", [value description]); if (error != nil) { @@ -77657,13 +79644,13 @@ class SubscribeAttributeElectricalMeasurementRmsCurrentMaxPhaseB : public Subscr ~SubscribeAttributeElectricalMeasurementRmsCurrentMaxPhaseB() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000090A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -77697,14 +79684,14 @@ class ReadElectricalMeasurementActivePowerPhaseB : public ReadAttribute { ~ReadElectricalMeasurementActivePowerPhaseB() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000090B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeActivePowerPhaseBWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.ActivePowerPhaseB response %@", [value description]); if (error != nil) { @@ -77725,13 +79712,13 @@ class SubscribeAttributeElectricalMeasurementActivePowerPhaseB : public Subscrib ~SubscribeAttributeElectricalMeasurementActivePowerPhaseB() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000090B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -77765,14 +79752,14 @@ class ReadElectricalMeasurementActivePowerMinPhaseB : public ReadAttribute { ~ReadElectricalMeasurementActivePowerMinPhaseB() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000090C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeActivePowerMinPhaseBWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.ActivePowerMinPhaseB response %@", [value description]); if (error != nil) { @@ -77793,13 +79780,13 @@ class SubscribeAttributeElectricalMeasurementActivePowerMinPhaseB : public Subsc ~SubscribeAttributeElectricalMeasurementActivePowerMinPhaseB() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000090C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -77833,14 +79820,14 @@ class ReadElectricalMeasurementActivePowerMaxPhaseB : public ReadAttribute { ~ReadElectricalMeasurementActivePowerMaxPhaseB() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000090D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeActivePowerMaxPhaseBWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.ActivePowerMaxPhaseB response %@", [value description]); if (error != nil) { @@ -77861,13 +79848,13 @@ class SubscribeAttributeElectricalMeasurementActivePowerMaxPhaseB : public Subsc ~SubscribeAttributeElectricalMeasurementActivePowerMaxPhaseB() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000090D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -77901,14 +79888,14 @@ class ReadElectricalMeasurementReactivePowerPhaseB : public ReadAttribute { ~ReadElectricalMeasurementReactivePowerPhaseB() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000090E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeReactivePowerPhaseBWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.ReactivePowerPhaseB response %@", [value description]); if (error != nil) { @@ -77929,13 +79916,13 @@ class SubscribeAttributeElectricalMeasurementReactivePowerPhaseB : public Subscr ~SubscribeAttributeElectricalMeasurementReactivePowerPhaseB() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000090E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -77969,14 +79956,14 @@ class ReadElectricalMeasurementApparentPowerPhaseB : public ReadAttribute { ~ReadElectricalMeasurementApparentPowerPhaseB() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000090F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeApparentPowerPhaseBWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.ApparentPowerPhaseB response %@", [value description]); if (error != nil) { @@ -77997,13 +79984,13 @@ class SubscribeAttributeElectricalMeasurementApparentPowerPhaseB : public Subscr ~SubscribeAttributeElectricalMeasurementApparentPowerPhaseB() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000090F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -78037,14 +80024,14 @@ class ReadElectricalMeasurementPowerFactorPhaseB : public ReadAttribute { ~ReadElectricalMeasurementPowerFactorPhaseB() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000910) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePowerFactorPhaseBWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.PowerFactorPhaseB response %@", [value description]); if (error != nil) { @@ -78065,13 +80052,13 @@ class SubscribeAttributeElectricalMeasurementPowerFactorPhaseB : public Subscrib ~SubscribeAttributeElectricalMeasurementPowerFactorPhaseB() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000910) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -78105,14 +80092,14 @@ class ReadElectricalMeasurementAverageRmsVoltageMeasurementPeriodPhaseB : public ~ReadElectricalMeasurementAverageRmsVoltageMeasurementPeriodPhaseB() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000911) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAverageRmsVoltageMeasurementPeriodPhaseBWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AverageRmsVoltageMeasurementPeriodPhaseB response %@", [value description]); @@ -78134,13 +80121,13 @@ class SubscribeAttributeElectricalMeasurementAverageRmsVoltageMeasurementPeriodP ~SubscribeAttributeElectricalMeasurementAverageRmsVoltageMeasurementPeriodPhaseB() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000911) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -78175,14 +80162,14 @@ class ReadElectricalMeasurementAverageRmsOverVoltageCounterPhaseB : public ReadA ~ReadElectricalMeasurementAverageRmsOverVoltageCounterPhaseB() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000912) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAverageRmsOverVoltageCounterPhaseBWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AverageRmsOverVoltageCounterPhaseB response %@", [value description]); @@ -78204,13 +80191,13 @@ class SubscribeAttributeElectricalMeasurementAverageRmsOverVoltageCounterPhaseB ~SubscribeAttributeElectricalMeasurementAverageRmsOverVoltageCounterPhaseB() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000912) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -78244,14 +80231,14 @@ class ReadElectricalMeasurementAverageRmsUnderVoltageCounterPhaseB : public Read ~ReadElectricalMeasurementAverageRmsUnderVoltageCounterPhaseB() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000913) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAverageRmsUnderVoltageCounterPhaseBWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AverageRmsUnderVoltageCounterPhaseB response %@", [value description]); @@ -78273,13 +80260,13 @@ class SubscribeAttributeElectricalMeasurementAverageRmsUnderVoltageCounterPhaseB ~SubscribeAttributeElectricalMeasurementAverageRmsUnderVoltageCounterPhaseB() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000913) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -78313,14 +80300,14 @@ class ReadElectricalMeasurementRmsExtremeOverVoltagePeriodPhaseB : public ReadAt ~ReadElectricalMeasurementRmsExtremeOverVoltagePeriodPhaseB() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000914) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsExtremeOverVoltagePeriodPhaseBWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsExtremeOverVoltagePeriodPhaseB response %@", [value description]); @@ -78342,13 +80329,13 @@ class SubscribeAttributeElectricalMeasurementRmsExtremeOverVoltagePeriodPhaseB : ~SubscribeAttributeElectricalMeasurementRmsExtremeOverVoltagePeriodPhaseB() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000914) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -78382,14 +80369,14 @@ class ReadElectricalMeasurementRmsExtremeUnderVoltagePeriodPhaseB : public ReadA ~ReadElectricalMeasurementRmsExtremeUnderVoltagePeriodPhaseB() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000915) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsExtremeUnderVoltagePeriodPhaseBWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsExtremeUnderVoltagePeriodPhaseB response %@", [value description]); @@ -78411,13 +80398,13 @@ class SubscribeAttributeElectricalMeasurementRmsExtremeUnderVoltagePeriodPhaseB ~SubscribeAttributeElectricalMeasurementRmsExtremeUnderVoltagePeriodPhaseB() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000915) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -78451,14 +80438,14 @@ class ReadElectricalMeasurementRmsVoltageSagPeriodPhaseB : public ReadAttribute ~ReadElectricalMeasurementRmsVoltageSagPeriodPhaseB() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000916) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsVoltageSagPeriodPhaseBWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsVoltageSagPeriodPhaseB response %@", [value description]); @@ -78480,13 +80467,13 @@ class SubscribeAttributeElectricalMeasurementRmsVoltageSagPeriodPhaseB : public ~SubscribeAttributeElectricalMeasurementRmsVoltageSagPeriodPhaseB() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000916) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -78520,14 +80507,14 @@ class ReadElectricalMeasurementRmsVoltageSwellPeriodPhaseB : public ReadAttribut ~ReadElectricalMeasurementRmsVoltageSwellPeriodPhaseB() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000917) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsVoltageSwellPeriodPhaseBWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsVoltageSwellPeriodPhaseB response %@", [value description]); @@ -78549,13 +80536,13 @@ class SubscribeAttributeElectricalMeasurementRmsVoltageSwellPeriodPhaseB : publi ~SubscribeAttributeElectricalMeasurementRmsVoltageSwellPeriodPhaseB() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000917) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -78589,14 +80576,14 @@ class ReadElectricalMeasurementLineCurrentPhaseC : public ReadAttribute { ~ReadElectricalMeasurementLineCurrentPhaseC() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000A01) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeLineCurrentPhaseCWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.LineCurrentPhaseC response %@", [value description]); if (error != nil) { @@ -78617,13 +80604,13 @@ class SubscribeAttributeElectricalMeasurementLineCurrentPhaseC : public Subscrib ~SubscribeAttributeElectricalMeasurementLineCurrentPhaseC() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000A01) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -78657,14 +80644,14 @@ class ReadElectricalMeasurementActiveCurrentPhaseC : public ReadAttribute { ~ReadElectricalMeasurementActiveCurrentPhaseC() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000A02) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeActiveCurrentPhaseCWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.ActiveCurrentPhaseC response %@", [value description]); if (error != nil) { @@ -78685,13 +80672,13 @@ class SubscribeAttributeElectricalMeasurementActiveCurrentPhaseC : public Subscr ~SubscribeAttributeElectricalMeasurementActiveCurrentPhaseC() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000A02) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -78725,14 +80712,14 @@ class ReadElectricalMeasurementReactiveCurrentPhaseC : public ReadAttribute { ~ReadElectricalMeasurementReactiveCurrentPhaseC() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000A03) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeReactiveCurrentPhaseCWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.ReactiveCurrentPhaseC response %@", [value description]); if (error != nil) { @@ -78753,13 +80740,13 @@ class SubscribeAttributeElectricalMeasurementReactiveCurrentPhaseC : public Subs ~SubscribeAttributeElectricalMeasurementReactiveCurrentPhaseC() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000A03) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -78793,14 +80780,14 @@ class ReadElectricalMeasurementRmsVoltagePhaseC : public ReadAttribute { ~ReadElectricalMeasurementRmsVoltagePhaseC() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000A05) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsVoltagePhaseCWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsVoltagePhaseC response %@", [value description]); if (error != nil) { @@ -78821,13 +80808,13 @@ class SubscribeAttributeElectricalMeasurementRmsVoltagePhaseC : public Subscribe ~SubscribeAttributeElectricalMeasurementRmsVoltagePhaseC() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000A05) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -78861,14 +80848,14 @@ class ReadElectricalMeasurementRmsVoltageMinPhaseC : public ReadAttribute { ~ReadElectricalMeasurementRmsVoltageMinPhaseC() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000A06) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsVoltageMinPhaseCWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsVoltageMinPhaseC response %@", [value description]); if (error != nil) { @@ -78889,13 +80876,13 @@ class SubscribeAttributeElectricalMeasurementRmsVoltageMinPhaseC : public Subscr ~SubscribeAttributeElectricalMeasurementRmsVoltageMinPhaseC() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000A06) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -78929,14 +80916,14 @@ class ReadElectricalMeasurementRmsVoltageMaxPhaseC : public ReadAttribute { ~ReadElectricalMeasurementRmsVoltageMaxPhaseC() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000A07) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsVoltageMaxPhaseCWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsVoltageMaxPhaseC response %@", [value description]); if (error != nil) { @@ -78957,13 +80944,13 @@ class SubscribeAttributeElectricalMeasurementRmsVoltageMaxPhaseC : public Subscr ~SubscribeAttributeElectricalMeasurementRmsVoltageMaxPhaseC() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000A07) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -78997,14 +80984,14 @@ class ReadElectricalMeasurementRmsCurrentPhaseC : public ReadAttribute { ~ReadElectricalMeasurementRmsCurrentPhaseC() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000A08) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsCurrentPhaseCWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsCurrentPhaseC response %@", [value description]); if (error != nil) { @@ -79025,13 +81012,13 @@ class SubscribeAttributeElectricalMeasurementRmsCurrentPhaseC : public Subscribe ~SubscribeAttributeElectricalMeasurementRmsCurrentPhaseC() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000A08) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -79065,14 +81052,14 @@ class ReadElectricalMeasurementRmsCurrentMinPhaseC : public ReadAttribute { ~ReadElectricalMeasurementRmsCurrentMinPhaseC() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000A09) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsCurrentMinPhaseCWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsCurrentMinPhaseC response %@", [value description]); if (error != nil) { @@ -79093,13 +81080,13 @@ class SubscribeAttributeElectricalMeasurementRmsCurrentMinPhaseC : public Subscr ~SubscribeAttributeElectricalMeasurementRmsCurrentMinPhaseC() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000A09) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -79133,14 +81120,14 @@ class ReadElectricalMeasurementRmsCurrentMaxPhaseC : public ReadAttribute { ~ReadElectricalMeasurementRmsCurrentMaxPhaseC() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000A0A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsCurrentMaxPhaseCWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsCurrentMaxPhaseC response %@", [value description]); if (error != nil) { @@ -79161,13 +81148,13 @@ class SubscribeAttributeElectricalMeasurementRmsCurrentMaxPhaseC : public Subscr ~SubscribeAttributeElectricalMeasurementRmsCurrentMaxPhaseC() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000A0A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -79201,14 +81188,14 @@ class ReadElectricalMeasurementActivePowerPhaseC : public ReadAttribute { ~ReadElectricalMeasurementActivePowerPhaseC() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000A0B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeActivePowerPhaseCWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.ActivePowerPhaseC response %@", [value description]); if (error != nil) { @@ -79229,13 +81216,13 @@ class SubscribeAttributeElectricalMeasurementActivePowerPhaseC : public Subscrib ~SubscribeAttributeElectricalMeasurementActivePowerPhaseC() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000A0B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -79269,14 +81256,14 @@ class ReadElectricalMeasurementActivePowerMinPhaseC : public ReadAttribute { ~ReadElectricalMeasurementActivePowerMinPhaseC() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000A0C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeActivePowerMinPhaseCWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.ActivePowerMinPhaseC response %@", [value description]); if (error != nil) { @@ -79297,13 +81284,13 @@ class SubscribeAttributeElectricalMeasurementActivePowerMinPhaseC : public Subsc ~SubscribeAttributeElectricalMeasurementActivePowerMinPhaseC() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000A0C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -79337,14 +81324,14 @@ class ReadElectricalMeasurementActivePowerMaxPhaseC : public ReadAttribute { ~ReadElectricalMeasurementActivePowerMaxPhaseC() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000A0D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeActivePowerMaxPhaseCWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.ActivePowerMaxPhaseC response %@", [value description]); if (error != nil) { @@ -79365,13 +81352,13 @@ class SubscribeAttributeElectricalMeasurementActivePowerMaxPhaseC : public Subsc ~SubscribeAttributeElectricalMeasurementActivePowerMaxPhaseC() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000A0D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -79405,14 +81392,14 @@ class ReadElectricalMeasurementReactivePowerPhaseC : public ReadAttribute { ~ReadElectricalMeasurementReactivePowerPhaseC() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000A0E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeReactivePowerPhaseCWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.ReactivePowerPhaseC response %@", [value description]); if (error != nil) { @@ -79433,13 +81420,13 @@ class SubscribeAttributeElectricalMeasurementReactivePowerPhaseC : public Subscr ~SubscribeAttributeElectricalMeasurementReactivePowerPhaseC() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000A0E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -79473,14 +81460,14 @@ class ReadElectricalMeasurementApparentPowerPhaseC : public ReadAttribute { ~ReadElectricalMeasurementApparentPowerPhaseC() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000A0F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeApparentPowerPhaseCWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.ApparentPowerPhaseC response %@", [value description]); if (error != nil) { @@ -79501,13 +81488,13 @@ class SubscribeAttributeElectricalMeasurementApparentPowerPhaseC : public Subscr ~SubscribeAttributeElectricalMeasurementApparentPowerPhaseC() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000A0F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -79541,14 +81528,14 @@ class ReadElectricalMeasurementPowerFactorPhaseC : public ReadAttribute { ~ReadElectricalMeasurementPowerFactorPhaseC() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000A10) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributePowerFactorPhaseCWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.PowerFactorPhaseC response %@", [value description]); if (error != nil) { @@ -79569,13 +81556,13 @@ class SubscribeAttributeElectricalMeasurementPowerFactorPhaseC : public Subscrib ~SubscribeAttributeElectricalMeasurementPowerFactorPhaseC() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000A10) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -79609,14 +81596,14 @@ class ReadElectricalMeasurementAverageRmsVoltageMeasurementPeriodPhaseC : public ~ReadElectricalMeasurementAverageRmsVoltageMeasurementPeriodPhaseC() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000A11) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAverageRmsVoltageMeasurementPeriodPhaseCWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AverageRmsVoltageMeasurementPeriodPhaseC response %@", [value description]); @@ -79638,13 +81625,13 @@ class SubscribeAttributeElectricalMeasurementAverageRmsVoltageMeasurementPeriodP ~SubscribeAttributeElectricalMeasurementAverageRmsVoltageMeasurementPeriodPhaseC() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000A11) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -79679,14 +81666,14 @@ class ReadElectricalMeasurementAverageRmsOverVoltageCounterPhaseC : public ReadA ~ReadElectricalMeasurementAverageRmsOverVoltageCounterPhaseC() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000A12) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAverageRmsOverVoltageCounterPhaseCWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AverageRmsOverVoltageCounterPhaseC response %@", [value description]); @@ -79708,13 +81695,13 @@ class SubscribeAttributeElectricalMeasurementAverageRmsOverVoltageCounterPhaseC ~SubscribeAttributeElectricalMeasurementAverageRmsOverVoltageCounterPhaseC() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000A12) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -79748,14 +81735,14 @@ class ReadElectricalMeasurementAverageRmsUnderVoltageCounterPhaseC : public Read ~ReadElectricalMeasurementAverageRmsUnderVoltageCounterPhaseC() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000A13) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAverageRmsUnderVoltageCounterPhaseCWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AverageRmsUnderVoltageCounterPhaseC response %@", [value description]); @@ -79777,13 +81764,13 @@ class SubscribeAttributeElectricalMeasurementAverageRmsUnderVoltageCounterPhaseC ~SubscribeAttributeElectricalMeasurementAverageRmsUnderVoltageCounterPhaseC() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000A13) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -79817,14 +81804,14 @@ class ReadElectricalMeasurementRmsExtremeOverVoltagePeriodPhaseC : public ReadAt ~ReadElectricalMeasurementRmsExtremeOverVoltagePeriodPhaseC() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000A14) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsExtremeOverVoltagePeriodPhaseCWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsExtremeOverVoltagePeriodPhaseC response %@", [value description]); @@ -79846,13 +81833,13 @@ class SubscribeAttributeElectricalMeasurementRmsExtremeOverVoltagePeriodPhaseC : ~SubscribeAttributeElectricalMeasurementRmsExtremeOverVoltagePeriodPhaseC() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000A14) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -79886,14 +81873,14 @@ class ReadElectricalMeasurementRmsExtremeUnderVoltagePeriodPhaseC : public ReadA ~ReadElectricalMeasurementRmsExtremeUnderVoltagePeriodPhaseC() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000A15) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsExtremeUnderVoltagePeriodPhaseCWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsExtremeUnderVoltagePeriodPhaseC response %@", [value description]); @@ -79915,13 +81902,13 @@ class SubscribeAttributeElectricalMeasurementRmsExtremeUnderVoltagePeriodPhaseC ~SubscribeAttributeElectricalMeasurementRmsExtremeUnderVoltagePeriodPhaseC() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000A15) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -79955,14 +81942,14 @@ class ReadElectricalMeasurementRmsVoltageSagPeriodPhaseC : public ReadAttribute ~ReadElectricalMeasurementRmsVoltageSagPeriodPhaseC() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000A16) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsVoltageSagPeriodPhaseCWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsVoltageSagPeriodPhaseC response %@", [value description]); @@ -79984,13 +81971,13 @@ class SubscribeAttributeElectricalMeasurementRmsVoltageSagPeriodPhaseC : public ~SubscribeAttributeElectricalMeasurementRmsVoltageSagPeriodPhaseC() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000A16) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -80024,14 +82011,14 @@ class ReadElectricalMeasurementRmsVoltageSwellPeriodPhaseC : public ReadAttribut ~ReadElectricalMeasurementRmsVoltageSwellPeriodPhaseC() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x00000A17) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRmsVoltageSwellPeriodPhaseCWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.RmsVoltageSwellPeriodPhaseC response %@", [value description]); @@ -80053,13 +82040,13 @@ class SubscribeAttributeElectricalMeasurementRmsVoltageSwellPeriodPhaseC : publi ~SubscribeAttributeElectricalMeasurementRmsVoltageSwellPeriodPhaseC() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x00000A17) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -80093,14 +82080,14 @@ class ReadElectricalMeasurementGeneratedCommandList : public ReadAttribute { ~ReadElectricalMeasurementGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -80121,13 +82108,13 @@ class SubscribeAttributeElectricalMeasurementGeneratedCommandList : public Subsc ~SubscribeAttributeElectricalMeasurementGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -80161,14 +82148,14 @@ class ReadElectricalMeasurementAcceptedCommandList : public ReadAttribute { ~ReadElectricalMeasurementAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -80189,13 +82176,13 @@ class SubscribeAttributeElectricalMeasurementAcceptedCommandList : public Subscr ~SubscribeAttributeElectricalMeasurementAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -80229,14 +82216,14 @@ class ReadElectricalMeasurementAttributeList : public ReadAttribute { ~ReadElectricalMeasurementAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.AttributeList response %@", [value description]); if (error != nil) { @@ -80257,13 +82244,13 @@ class SubscribeAttributeElectricalMeasurementAttributeList : public SubscribeAtt ~SubscribeAttributeElectricalMeasurementAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -80297,14 +82284,14 @@ class ReadElectricalMeasurementFeatureMap : public ReadAttribute { ~ReadElectricalMeasurementFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.FeatureMap response %@", [value description]); if (error != nil) { @@ -80325,13 +82312,13 @@ class SubscribeAttributeElectricalMeasurementFeatureMap : public SubscribeAttrib ~SubscribeAttributeElectricalMeasurementFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -80365,14 +82352,14 @@ class ReadElectricalMeasurementClusterRevision : public ReadAttribute { ~ReadElectricalMeasurementClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"ElectricalMeasurement.ClusterRevision response %@", [value description]); if (error != nil) { @@ -80393,13 +82380,13 @@ class SubscribeAttributeElectricalMeasurementClusterRevision : public SubscribeA ~SubscribeAttributeElectricalMeasurementClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0x00000B04) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRElectricalMeasurement * cluster = [[MTRElectricalMeasurement alloc] initWithDevice:device - endpoint:endpointId - queue:callbackQueue]; + MTRBaseClusterElectricalMeasurement * cluster = [[MTRBaseClusterElectricalMeasurement alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -80552,12 +82539,14 @@ class TestClusterTest : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRTestClusterClusterTestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -80593,12 +82582,14 @@ class TestClusterTestNotHandled : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRTestClusterClusterTestNotHandledParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -80634,12 +82625,14 @@ class TestClusterTestSpecific : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRTestClusterClusterTestSpecificParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -80677,12 +82670,14 @@ class TestClusterTestUnknownCommand : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRTestClusterClusterTestUnknownCommandParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -80720,12 +82715,14 @@ class TestClusterTestAddArguments : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRTestClusterClusterTestAddArgumentsParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -80767,12 +82764,14 @@ class TestClusterTestSimpleArgumentRequest : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRTestClusterClusterTestSimpleArgumentRequestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -80822,12 +82821,14 @@ class TestClusterTestStructArrayArgumentRequest : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRTestClusterClusterTestStructArrayArgumentRequestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -80982,12 +82983,14 @@ class TestClusterTestStructArgumentRequest : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRTestClusterClusterTestStructArgumentRequestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -81040,12 +83043,14 @@ class TestClusterTestNestedStructArgumentRequest : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRTestClusterClusterTestNestedStructArgumentRequestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -81101,12 +83106,14 @@ class TestClusterTestListStructArgumentRequest : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRTestClusterClusterTestListStructArgumentRequestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -81168,12 +83175,14 @@ class TestClusterTestListInt8UArgumentRequest : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRTestClusterClusterTestListInt8UArgumentRequestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -81224,12 +83233,14 @@ class TestClusterTestNestedStructListArgumentRequest : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRTestClusterClusterTestNestedStructListArgumentRequestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -81331,12 +83342,14 @@ class TestClusterTestListNestedStructListArgumentRequest : public ClusterCommand ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x0000000C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRTestClusterClusterTestListNestedStructListArgumentRequestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -81448,12 +83461,14 @@ class TestClusterTestListInt8UReverseRequest : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x0000000D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRTestClusterClusterTestListInt8UReverseRequestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -81505,12 +83520,14 @@ class TestClusterTestEnumsRequest : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x0000000E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRTestClusterClusterTestEnumsRequestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -81552,12 +83569,14 @@ class TestClusterTestNullableOptionalRequest : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRTestClusterClusterTestNullableOptionalRequestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -81624,12 +83643,14 @@ class TestClusterTestComplexNullableOptionalRequest : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRTestClusterClusterTestComplexNullableOptionalRequestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -81830,12 +83851,14 @@ class TestClusterSimpleStructEchoRequest : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRTestClusterClusterSimpleStructEchoRequestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -81886,12 +83909,14 @@ class TestClusterTimedInvokeRequest : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRTestClusterClusterTimedInvokeRequestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -81928,12 +83953,14 @@ class TestClusterTestSimpleOptionalArgumentRequest : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRTestClusterClusterTestSimpleOptionalArgumentRequestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -81978,12 +84005,14 @@ class TestClusterTestEmitTestEventRequest : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRTestClusterClusterTestEmitTestEventRequestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -82026,12 +84055,14 @@ class TestClusterTestEmitTestFabricScopedEventRequest : public ClusterCommand { ClusterCommand::AddArguments(); } - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) command (0x00000015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; __auto_type * params = [[MTRTestClusterClusterTestEmitTestFabricScopedEventRequestParams alloc] init]; params.timedInvokeTimeoutMs = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; @@ -82074,12 +84105,14 @@ class ReadTestClusterBoolean : public ReadAttribute { ~ReadTestClusterBoolean() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeBooleanWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Boolean response %@", [value description]); if (error != nil) { @@ -82103,13 +84136,15 @@ class WriteTestClusterBoolean : public WriteAttribute { ~WriteTestClusterBoolean() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithBool:mValue]; @@ -82138,11 +84173,13 @@ class SubscribeAttributeTestClusterBoolean : public SubscribeAttribute { ~SubscribeAttributeTestClusterBoolean() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -82176,12 +84213,14 @@ class ReadTestClusterBitmap8 : public ReadAttribute { ~ReadTestClusterBitmap8() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeBitmap8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Bitmap8 response %@", [value description]); if (error != nil) { @@ -82205,13 +84244,15 @@ class WriteTestClusterBitmap8 : public WriteAttribute { ~WriteTestClusterBitmap8() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; @@ -82240,11 +84281,13 @@ class SubscribeAttributeTestClusterBitmap8 : public SubscribeAttribute { ~SubscribeAttributeTestClusterBitmap8() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -82278,12 +84321,14 @@ class ReadTestClusterBitmap16 : public ReadAttribute { ~ReadTestClusterBitmap16() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeBitmap16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Bitmap16 response %@", [value description]); if (error != nil) { @@ -82307,13 +84352,15 @@ class WriteTestClusterBitmap16 : public WriteAttribute { ~WriteTestClusterBitmap16() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; @@ -82342,11 +84389,13 @@ class SubscribeAttributeTestClusterBitmap16 : public SubscribeAttribute { ~SubscribeAttributeTestClusterBitmap16() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -82380,12 +84429,14 @@ class ReadTestClusterBitmap32 : public ReadAttribute { ~ReadTestClusterBitmap32() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeBitmap32WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Bitmap32 response %@", [value description]); if (error != nil) { @@ -82409,13 +84460,15 @@ class WriteTestClusterBitmap32 : public WriteAttribute { ~WriteTestClusterBitmap32() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedInt:mValue]; @@ -82444,11 +84497,13 @@ class SubscribeAttributeTestClusterBitmap32 : public SubscribeAttribute { ~SubscribeAttributeTestClusterBitmap32() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -82482,12 +84537,14 @@ class ReadTestClusterBitmap64 : public ReadAttribute { ~ReadTestClusterBitmap64() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeBitmap64WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Bitmap64 response %@", [value description]); if (error != nil) { @@ -82511,13 +84568,15 @@ class WriteTestClusterBitmap64 : public WriteAttribute { ~WriteTestClusterBitmap64() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedLongLong:mValue]; @@ -82546,11 +84605,13 @@ class SubscribeAttributeTestClusterBitmap64 : public SubscribeAttribute { ~SubscribeAttributeTestClusterBitmap64() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -82584,12 +84645,14 @@ class ReadTestClusterInt8u : public ReadAttribute { ~ReadTestClusterInt8u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Int8u response %@", [value description]); if (error != nil) { @@ -82613,13 +84676,15 @@ class WriteTestClusterInt8u : public WriteAttribute { ~WriteTestClusterInt8u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; @@ -82648,11 +84713,13 @@ class SubscribeAttributeTestClusterInt8u : public SubscribeAttribute { ~SubscribeAttributeTestClusterInt8u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -82686,12 +84753,14 @@ class ReadTestClusterInt16u : public ReadAttribute { ~ReadTestClusterInt16u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Int16u response %@", [value description]); if (error != nil) { @@ -82715,13 +84784,15 @@ class WriteTestClusterInt16u : public WriteAttribute { ~WriteTestClusterInt16u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; @@ -82750,11 +84821,13 @@ class SubscribeAttributeTestClusterInt16u : public SubscribeAttribute { ~SubscribeAttributeTestClusterInt16u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -82788,12 +84861,14 @@ class ReadTestClusterInt24u : public ReadAttribute { ~ReadTestClusterInt24u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeInt24uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Int24u response %@", [value description]); if (error != nil) { @@ -82817,13 +84892,15 @@ class WriteTestClusterInt24u : public WriteAttribute { ~WriteTestClusterInt24u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedInt:mValue]; @@ -82852,11 +84929,13 @@ class SubscribeAttributeTestClusterInt24u : public SubscribeAttribute { ~SubscribeAttributeTestClusterInt24u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -82890,12 +84969,14 @@ class ReadTestClusterInt32u : public ReadAttribute { ~ReadTestClusterInt32u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Int32u response %@", [value description]); if (error != nil) { @@ -82919,13 +85000,15 @@ class WriteTestClusterInt32u : public WriteAttribute { ~WriteTestClusterInt32u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedInt:mValue]; @@ -82954,11 +85037,13 @@ class SubscribeAttributeTestClusterInt32u : public SubscribeAttribute { ~SubscribeAttributeTestClusterInt32u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -82992,12 +85077,14 @@ class ReadTestClusterInt40u : public ReadAttribute { ~ReadTestClusterInt40u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeInt40uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Int40u response %@", [value description]); if (error != nil) { @@ -83021,13 +85108,15 @@ class WriteTestClusterInt40u : public WriteAttribute { ~WriteTestClusterInt40u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedLongLong:mValue]; @@ -83056,11 +85145,13 @@ class SubscribeAttributeTestClusterInt40u : public SubscribeAttribute { ~SubscribeAttributeTestClusterInt40u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -83094,12 +85185,14 @@ class ReadTestClusterInt48u : public ReadAttribute { ~ReadTestClusterInt48u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeInt48uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Int48u response %@", [value description]); if (error != nil) { @@ -83123,13 +85216,15 @@ class WriteTestClusterInt48u : public WriteAttribute { ~WriteTestClusterInt48u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedLongLong:mValue]; @@ -83158,11 +85253,13 @@ class SubscribeAttributeTestClusterInt48u : public SubscribeAttribute { ~SubscribeAttributeTestClusterInt48u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000000A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -83196,12 +85293,14 @@ class ReadTestClusterInt56u : public ReadAttribute { ~ReadTestClusterInt56u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeInt56uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Int56u response %@", [value description]); if (error != nil) { @@ -83225,13 +85324,15 @@ class WriteTestClusterInt56u : public WriteAttribute { ~WriteTestClusterInt56u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedLongLong:mValue]; @@ -83260,11 +85361,13 @@ class SubscribeAttributeTestClusterInt56u : public SubscribeAttribute { ~SubscribeAttributeTestClusterInt56u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000000B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -83298,12 +85401,14 @@ class ReadTestClusterInt64u : public ReadAttribute { ~ReadTestClusterInt64u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000000C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Int64u response %@", [value description]); if (error != nil) { @@ -83327,13 +85432,15 @@ class WriteTestClusterInt64u : public WriteAttribute { ~WriteTestClusterInt64u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000000C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedLongLong:mValue]; @@ -83362,11 +85469,13 @@ class SubscribeAttributeTestClusterInt64u : public SubscribeAttribute { ~SubscribeAttributeTestClusterInt64u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000000C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -83400,12 +85509,14 @@ class ReadTestClusterInt8s : public ReadAttribute { ~ReadTestClusterInt8s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000000D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Int8s response %@", [value description]); if (error != nil) { @@ -83429,13 +85540,15 @@ class WriteTestClusterInt8s : public WriteAttribute { ~WriteTestClusterInt8s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000000D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithChar:mValue]; @@ -83464,11 +85577,13 @@ class SubscribeAttributeTestClusterInt8s : public SubscribeAttribute { ~SubscribeAttributeTestClusterInt8s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000000D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -83502,12 +85617,14 @@ class ReadTestClusterInt16s : public ReadAttribute { ~ReadTestClusterInt16s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000000E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Int16s response %@", [value description]); if (error != nil) { @@ -83531,13 +85648,15 @@ class WriteTestClusterInt16s : public WriteAttribute { ~WriteTestClusterInt16s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000000E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithShort:mValue]; @@ -83566,11 +85685,13 @@ class SubscribeAttributeTestClusterInt16s : public SubscribeAttribute { ~SubscribeAttributeTestClusterInt16s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000000E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -83604,12 +85725,14 @@ class ReadTestClusterInt24s : public ReadAttribute { ~ReadTestClusterInt24s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeInt24sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Int24s response %@", [value description]); if (error != nil) { @@ -83633,13 +85756,15 @@ class WriteTestClusterInt24s : public WriteAttribute { ~WriteTestClusterInt24s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithInt:mValue]; @@ -83668,11 +85793,13 @@ class SubscribeAttributeTestClusterInt24s : public SubscribeAttribute { ~SubscribeAttributeTestClusterInt24s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000000F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -83706,12 +85833,14 @@ class ReadTestClusterInt32s : public ReadAttribute { ~ReadTestClusterInt32s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Int32s response %@", [value description]); if (error != nil) { @@ -83735,13 +85864,15 @@ class WriteTestClusterInt32s : public WriteAttribute { ~WriteTestClusterInt32s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithInt:mValue]; @@ -83770,11 +85901,13 @@ class SubscribeAttributeTestClusterInt32s : public SubscribeAttribute { ~SubscribeAttributeTestClusterInt32s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -83808,12 +85941,14 @@ class ReadTestClusterInt40s : public ReadAttribute { ~ReadTestClusterInt40s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeInt40sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Int40s response %@", [value description]); if (error != nil) { @@ -83837,13 +85972,15 @@ class WriteTestClusterInt40s : public WriteAttribute { ~WriteTestClusterInt40s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithLongLong:mValue]; @@ -83872,11 +86009,13 @@ class SubscribeAttributeTestClusterInt40s : public SubscribeAttribute { ~SubscribeAttributeTestClusterInt40s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -83910,12 +86049,14 @@ class ReadTestClusterInt48s : public ReadAttribute { ~ReadTestClusterInt48s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeInt48sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Int48s response %@", [value description]); if (error != nil) { @@ -83939,13 +86080,15 @@ class WriteTestClusterInt48s : public WriteAttribute { ~WriteTestClusterInt48s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithLongLong:mValue]; @@ -83974,11 +86117,13 @@ class SubscribeAttributeTestClusterInt48s : public SubscribeAttribute { ~SubscribeAttributeTestClusterInt48s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -84012,12 +86157,14 @@ class ReadTestClusterInt56s : public ReadAttribute { ~ReadTestClusterInt56s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeInt56sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Int56s response %@", [value description]); if (error != nil) { @@ -84041,13 +86188,15 @@ class WriteTestClusterInt56s : public WriteAttribute { ~WriteTestClusterInt56s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithLongLong:mValue]; @@ -84076,11 +86225,13 @@ class SubscribeAttributeTestClusterInt56s : public SubscribeAttribute { ~SubscribeAttributeTestClusterInt56s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -84114,12 +86265,14 @@ class ReadTestClusterInt64s : public ReadAttribute { ~ReadTestClusterInt64s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Int64s response %@", [value description]); if (error != nil) { @@ -84143,13 +86296,15 @@ class WriteTestClusterInt64s : public WriteAttribute { ~WriteTestClusterInt64s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithLongLong:mValue]; @@ -84178,11 +86333,13 @@ class SubscribeAttributeTestClusterInt64s : public SubscribeAttribute { ~SubscribeAttributeTestClusterInt64s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -84216,12 +86373,14 @@ class ReadTestClusterEnum8 : public ReadAttribute { ~ReadTestClusterEnum8() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeEnum8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Enum8 response %@", [value description]); if (error != nil) { @@ -84245,13 +86404,15 @@ class WriteTestClusterEnum8 : public WriteAttribute { ~WriteTestClusterEnum8() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; @@ -84280,11 +86441,13 @@ class SubscribeAttributeTestClusterEnum8 : public SubscribeAttribute { ~SubscribeAttributeTestClusterEnum8() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -84318,12 +86481,14 @@ class ReadTestClusterEnum16 : public ReadAttribute { ~ReadTestClusterEnum16() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000016) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeEnum16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Enum16 response %@", [value description]); if (error != nil) { @@ -84347,13 +86512,15 @@ class WriteTestClusterEnum16 : public WriteAttribute { ~WriteTestClusterEnum16() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000016) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; @@ -84382,11 +86549,13 @@ class SubscribeAttributeTestClusterEnum16 : public SubscribeAttribute { ~SubscribeAttributeTestClusterEnum16() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000016) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -84420,12 +86589,14 @@ class ReadTestClusterFloatSingle : public ReadAttribute { ~ReadTestClusterFloatSingle() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFloatSingleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.FloatSingle response %@", [value description]); if (error != nil) { @@ -84449,13 +86620,15 @@ class WriteTestClusterFloatSingle : public WriteAttribute { ~WriteTestClusterFloatSingle() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithFloat:mValue]; @@ -84484,11 +86657,13 @@ class SubscribeAttributeTestClusterFloatSingle : public SubscribeAttribute { ~SubscribeAttributeTestClusterFloatSingle() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -84522,12 +86697,14 @@ class ReadTestClusterFloatDouble : public ReadAttribute { ~ReadTestClusterFloatDouble() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000018) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFloatDoubleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.FloatDouble response %@", [value description]); if (error != nil) { @@ -84551,13 +86728,15 @@ class WriteTestClusterFloatDouble : public WriteAttribute { ~WriteTestClusterFloatDouble() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000018) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithDouble:mValue]; @@ -84586,11 +86765,13 @@ class SubscribeAttributeTestClusterFloatDouble : public SubscribeAttribute { ~SubscribeAttributeTestClusterFloatDouble() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000018) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -84624,12 +86805,14 @@ class ReadTestClusterOctetString : public ReadAttribute { ~ReadTestClusterOctetString() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000019) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.OctetString response %@", [value description]); if (error != nil) { @@ -84653,13 +86836,15 @@ class WriteTestClusterOctetString : public WriteAttribute { ~WriteTestClusterOctetString() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000019) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSData * _Nonnull value = [[NSData alloc] initWithBytes:mValue.data() length:mValue.size()]; @@ -84688,11 +86873,13 @@ class SubscribeAttributeTestClusterOctetString : public SubscribeAttribute { ~SubscribeAttributeTestClusterOctetString() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000019) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -84726,12 +86913,14 @@ class ReadTestClusterListInt8u : public ReadAttribute { ~ReadTestClusterListInt8u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000001A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeListInt8uWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.ListInt8u response %@", [value description]); if (error != nil) { @@ -84756,13 +86945,15 @@ class WriteTestClusterListInt8u : public WriteAttribute { ~WriteTestClusterListInt8u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000001A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSArray * _Nonnull value; @@ -84801,11 +86992,13 @@ class SubscribeAttributeTestClusterListInt8u : public SubscribeAttribute { ~SubscribeAttributeTestClusterListInt8u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000001A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -84839,12 +87032,14 @@ class ReadTestClusterListOctetString : public ReadAttribute { ~ReadTestClusterListOctetString() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000001B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeListOctetStringWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.ListOctetString response %@", [value description]); if (error != nil) { @@ -84869,13 +87064,15 @@ class WriteTestClusterListOctetString : public WriteAttribute { ~WriteTestClusterListOctetString() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000001B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSArray * _Nonnull value; @@ -84914,11 +87111,13 @@ class SubscribeAttributeTestClusterListOctetString : public SubscribeAttribute { ~SubscribeAttributeTestClusterListOctetString() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000001B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -84952,12 +87151,14 @@ class ReadTestClusterListStructOctetString : public ReadAttribute { ~ReadTestClusterListStructOctetString() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000001C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeListStructOctetStringWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.ListStructOctetString response %@", [value description]); if (error != nil) { @@ -84982,13 +87183,15 @@ class WriteTestClusterListStructOctetString : public WriteAttribute { ~WriteTestClusterListStructOctetString() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000001C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSArray * _Nonnull value; @@ -85030,11 +87233,13 @@ class SubscribeAttributeTestClusterListStructOctetString : public SubscribeAttri ~SubscribeAttributeTestClusterListStructOctetString() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000001C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -85068,12 +87273,14 @@ class ReadTestClusterLongOctetString : public ReadAttribute { ~ReadTestClusterLongOctetString() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000001D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeLongOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.LongOctetString response %@", [value description]); if (error != nil) { @@ -85097,13 +87304,15 @@ class WriteTestClusterLongOctetString : public WriteAttribute { ~WriteTestClusterLongOctetString() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000001D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSData * _Nonnull value = [[NSData alloc] initWithBytes:mValue.data() length:mValue.size()]; @@ -85132,11 +87341,13 @@ class SubscribeAttributeTestClusterLongOctetString : public SubscribeAttribute { ~SubscribeAttributeTestClusterLongOctetString() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000001D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -85170,12 +87381,14 @@ class ReadTestClusterCharString : public ReadAttribute { ~ReadTestClusterCharString() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000001E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.CharString response %@", [value description]); if (error != nil) { @@ -85199,13 +87412,15 @@ class WriteTestClusterCharString : public WriteAttribute { ~WriteTestClusterCharString() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000001E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSString * _Nonnull value = [[NSString alloc] initWithBytes:mValue.data() @@ -85236,11 +87451,13 @@ class SubscribeAttributeTestClusterCharString : public SubscribeAttribute { ~SubscribeAttributeTestClusterCharString() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000001E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -85274,12 +87491,14 @@ class ReadTestClusterLongCharString : public ReadAttribute { ~ReadTestClusterLongCharString() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000001F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeLongCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.LongCharString response %@", [value description]); if (error != nil) { @@ -85303,13 +87522,15 @@ class WriteTestClusterLongCharString : public WriteAttribute { ~WriteTestClusterLongCharString() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000001F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSString * _Nonnull value = [[NSString alloc] initWithBytes:mValue.data() @@ -85340,11 +87561,13 @@ class SubscribeAttributeTestClusterLongCharString : public SubscribeAttribute { ~SubscribeAttributeTestClusterLongCharString() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000001F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -85378,12 +87601,14 @@ class ReadTestClusterEpochUs : public ReadAttribute { ~ReadTestClusterEpochUs() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000020) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeEpochUsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.EpochUs response %@", [value description]); if (error != nil) { @@ -85407,13 +87632,15 @@ class WriteTestClusterEpochUs : public WriteAttribute { ~WriteTestClusterEpochUs() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000020) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedLongLong:mValue]; @@ -85442,11 +87669,13 @@ class SubscribeAttributeTestClusterEpochUs : public SubscribeAttribute { ~SubscribeAttributeTestClusterEpochUs() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000020) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -85480,12 +87709,14 @@ class ReadTestClusterEpochS : public ReadAttribute { ~ReadTestClusterEpochS() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000021) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeEpochSWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.EpochS response %@", [value description]); if (error != nil) { @@ -85509,13 +87740,15 @@ class WriteTestClusterEpochS : public WriteAttribute { ~WriteTestClusterEpochS() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000021) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedInt:mValue]; @@ -85544,11 +87777,13 @@ class SubscribeAttributeTestClusterEpochS : public SubscribeAttribute { ~SubscribeAttributeTestClusterEpochS() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000021) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -85582,12 +87817,14 @@ class ReadTestClusterVendorId : public ReadAttribute { ~ReadTestClusterVendorId() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000022) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeVendorIdWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.VendorId response %@", [value description]); if (error != nil) { @@ -85611,13 +87848,15 @@ class WriteTestClusterVendorId : public WriteAttribute { ~WriteTestClusterVendorId() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000022) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; @@ -85646,11 +87885,13 @@ class SubscribeAttributeTestClusterVendorId : public SubscribeAttribute { ~SubscribeAttributeTestClusterVendorId() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000022) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -85684,12 +87925,14 @@ class ReadTestClusterListNullablesAndOptionalsStruct : public ReadAttribute { ~ReadTestClusterListNullablesAndOptionalsStruct() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000023) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeListNullablesAndOptionalsStructWithCompletionHandler:^( NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.ListNullablesAndOptionalsStruct response %@", [value description]); @@ -85715,13 +87958,15 @@ class WriteTestClusterListNullablesAndOptionalsStruct : public WriteAttribute { ~WriteTestClusterListNullablesAndOptionalsStruct() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000023) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSArray * _Nonnull value; @@ -85914,11 +88159,13 @@ class SubscribeAttributeTestClusterListNullablesAndOptionalsStruct : public Subs ~SubscribeAttributeTestClusterListNullablesAndOptionalsStruct() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000023) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -85952,12 +88199,14 @@ class ReadTestClusterEnumAttr : public ReadAttribute { ~ReadTestClusterEnumAttr() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000024) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeEnumAttrWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.EnumAttr response %@", [value description]); if (error != nil) { @@ -85981,13 +88230,15 @@ class WriteTestClusterEnumAttr : public WriteAttribute { ~WriteTestClusterEnumAttr() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000024) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; @@ -86016,11 +88267,13 @@ class SubscribeAttributeTestClusterEnumAttr : public SubscribeAttribute { ~SubscribeAttributeTestClusterEnumAttr() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000024) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -86054,12 +88307,14 @@ class ReadTestClusterStructAttr : public ReadAttribute { ~ReadTestClusterStructAttr() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000025) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeStructAttrWithCompletionHandler:^( MTRTestClusterClusterSimpleStruct * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.StructAttr response %@", [value description]); @@ -86085,13 +88340,15 @@ class WriteTestClusterStructAttr : public WriteAttribute { ~WriteTestClusterStructAttr() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000025) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; MTRTestClusterClusterSimpleStruct * _Nonnull value; @@ -86130,11 +88387,13 @@ class SubscribeAttributeTestClusterStructAttr : public SubscribeAttribute { ~SubscribeAttributeTestClusterStructAttr() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000025) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -86168,12 +88427,14 @@ class ReadTestClusterRangeRestrictedInt8u : public ReadAttribute { ~ReadTestClusterRangeRestrictedInt8u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000026) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRangeRestrictedInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.RangeRestrictedInt8u response %@", [value description]); if (error != nil) { @@ -86197,13 +88458,15 @@ class WriteTestClusterRangeRestrictedInt8u : public WriteAttribute { ~WriteTestClusterRangeRestrictedInt8u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000026) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedChar:mValue]; @@ -86232,11 +88495,13 @@ class SubscribeAttributeTestClusterRangeRestrictedInt8u : public SubscribeAttrib ~SubscribeAttributeTestClusterRangeRestrictedInt8u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000026) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -86270,12 +88535,14 @@ class ReadTestClusterRangeRestrictedInt8s : public ReadAttribute { ~ReadTestClusterRangeRestrictedInt8s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000027) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRangeRestrictedInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.RangeRestrictedInt8s response %@", [value description]); if (error != nil) { @@ -86299,13 +88566,15 @@ class WriteTestClusterRangeRestrictedInt8s : public WriteAttribute { ~WriteTestClusterRangeRestrictedInt8s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000027) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithChar:mValue]; @@ -86334,11 +88603,13 @@ class SubscribeAttributeTestClusterRangeRestrictedInt8s : public SubscribeAttrib ~SubscribeAttributeTestClusterRangeRestrictedInt8s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000027) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -86372,12 +88643,14 @@ class ReadTestClusterRangeRestrictedInt16u : public ReadAttribute { ~ReadTestClusterRangeRestrictedInt16u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000028) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRangeRestrictedInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.RangeRestrictedInt16u response %@", [value description]); if (error != nil) { @@ -86401,13 +88674,15 @@ class WriteTestClusterRangeRestrictedInt16u : public WriteAttribute { ~WriteTestClusterRangeRestrictedInt16u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000028) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithUnsignedShort:mValue]; @@ -86436,11 +88711,13 @@ class SubscribeAttributeTestClusterRangeRestrictedInt16u : public SubscribeAttri ~SubscribeAttributeTestClusterRangeRestrictedInt16u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000028) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -86474,12 +88751,14 @@ class ReadTestClusterRangeRestrictedInt16s : public ReadAttribute { ~ReadTestClusterRangeRestrictedInt16s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000029) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeRangeRestrictedInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.RangeRestrictedInt16s response %@", [value description]); if (error != nil) { @@ -86503,13 +88782,15 @@ class WriteTestClusterRangeRestrictedInt16s : public WriteAttribute { ~WriteTestClusterRangeRestrictedInt16s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000029) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithShort:mValue]; @@ -86538,11 +88819,13 @@ class SubscribeAttributeTestClusterRangeRestrictedInt16s : public SubscribeAttri ~SubscribeAttributeTestClusterRangeRestrictedInt16s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000029) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -86576,12 +88859,14 @@ class ReadTestClusterListLongOctetString : public ReadAttribute { ~ReadTestClusterListLongOctetString() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000002A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeListLongOctetStringWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.ListLongOctetString response %@", [value description]); if (error != nil) { @@ -86606,13 +88891,15 @@ class WriteTestClusterListLongOctetString : public WriteAttribute { ~WriteTestClusterListLongOctetString() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000002A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSArray * _Nonnull value; @@ -86651,11 +88938,13 @@ class SubscribeAttributeTestClusterListLongOctetString : public SubscribeAttribu ~SubscribeAttributeTestClusterListLongOctetString() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000002A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -86689,12 +88978,14 @@ class ReadTestClusterListFabricScoped : public ReadAttribute { ~ReadTestClusterListFabricScoped() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000002B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRReadParams * params = [[MTRReadParams alloc] init]; params.fabricFiltered = mFabricFiltered.HasValue() ? [NSNumber numberWithBool:mFabricFiltered.Value()] : nil; [cluster readAttributeListFabricScopedWithParams:params @@ -86722,13 +89013,15 @@ class WriteTestClusterListFabricScoped : public WriteAttribute { ~WriteTestClusterListFabricScoped() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000002B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSArray * _Nonnull value; @@ -86817,11 +89110,13 @@ class SubscribeAttributeTestClusterListFabricScoped : public SubscribeAttribute ~SubscribeAttributeTestClusterListFabricScoped() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000002B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -86855,12 +89150,14 @@ class ReadTestClusterTimedWriteBoolean : public ReadAttribute { ~ReadTestClusterTimedWriteBoolean() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000030) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeTimedWriteBooleanWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.TimedWriteBoolean response %@", [value description]); if (error != nil) { @@ -86884,13 +89181,15 @@ class WriteTestClusterTimedWriteBoolean : public WriteAttribute { ~WriteTestClusterTimedWriteBoolean() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000030) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithBool:mValue]; @@ -86919,11 +89218,13 @@ class SubscribeAttributeTestClusterTimedWriteBoolean : public SubscribeAttribute ~SubscribeAttributeTestClusterTimedWriteBoolean() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000030) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -86957,12 +89258,14 @@ class ReadTestClusterGeneralErrorBoolean : public ReadAttribute { ~ReadTestClusterGeneralErrorBoolean() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000031) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneralErrorBooleanWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.GeneralErrorBoolean response %@", [value description]); if (error != nil) { @@ -86986,13 +89289,15 @@ class WriteTestClusterGeneralErrorBoolean : public WriteAttribute { ~WriteTestClusterGeneralErrorBoolean() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000031) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithBool:mValue]; @@ -87021,11 +89326,13 @@ class SubscribeAttributeTestClusterGeneralErrorBoolean : public SubscribeAttribu ~SubscribeAttributeTestClusterGeneralErrorBoolean() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000031) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -87059,12 +89366,14 @@ class ReadTestClusterClusterErrorBoolean : public ReadAttribute { ~ReadTestClusterClusterErrorBoolean() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00000032) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterErrorBooleanWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.ClusterErrorBoolean response %@", [value description]); if (error != nil) { @@ -87088,13 +89397,15 @@ class WriteTestClusterClusterErrorBoolean : public WriteAttribute { ~WriteTestClusterClusterErrorBoolean() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00000032) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithBool:mValue]; @@ -87123,11 +89434,13 @@ class SubscribeAttributeTestClusterClusterErrorBoolean : public SubscribeAttribu ~SubscribeAttributeTestClusterClusterErrorBoolean() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00000032) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -87161,12 +89474,14 @@ class ReadTestClusterUnsupported : public ReadAttribute { ~ReadTestClusterUnsupported() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x000000FF) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeUnsupportedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.Unsupported response %@", [value description]); if (error != nil) { @@ -87190,13 +89505,15 @@ class WriteTestClusterUnsupported : public WriteAttribute { ~WriteTestClusterUnsupported() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x000000FF) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nonnull value = [NSNumber numberWithBool:mValue]; @@ -87225,11 +89542,13 @@ class SubscribeAttributeTestClusterUnsupported : public SubscribeAttribute { ~SubscribeAttributeTestClusterUnsupported() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x000000FF) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -87263,12 +89582,14 @@ class ReadTestClusterNullableBoolean : public ReadAttribute { ~ReadTestClusterNullableBoolean() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNullableBooleanWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableBoolean response %@", [value description]); if (error != nil) { @@ -87292,13 +89613,15 @@ class WriteTestClusterNullableBoolean : public WriteAttribute { ~WriteTestClusterNullableBoolean() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithBool:mValue]; @@ -87327,11 +89650,13 @@ class SubscribeAttributeTestClusterNullableBoolean : public SubscribeAttribute { ~SubscribeAttributeTestClusterNullableBoolean() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004000) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -87365,12 +89690,14 @@ class ReadTestClusterNullableBitmap8 : public ReadAttribute { ~ReadTestClusterNullableBitmap8() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNullableBitmap8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableBitmap8 response %@", [value description]); if (error != nil) { @@ -87394,13 +89721,15 @@ class WriteTestClusterNullableBitmap8 : public WriteAttribute { ~WriteTestClusterNullableBitmap8() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithUnsignedChar:mValue]; @@ -87429,11 +89758,13 @@ class SubscribeAttributeTestClusterNullableBitmap8 : public SubscribeAttribute { ~SubscribeAttributeTestClusterNullableBitmap8() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004001) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -87467,12 +89798,14 @@ class ReadTestClusterNullableBitmap16 : public ReadAttribute { ~ReadTestClusterNullableBitmap16() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNullableBitmap16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableBitmap16 response %@", [value description]); if (error != nil) { @@ -87496,13 +89829,15 @@ class WriteTestClusterNullableBitmap16 : public WriteAttribute { ~WriteTestClusterNullableBitmap16() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithUnsignedShort:mValue]; @@ -87531,11 +89866,13 @@ class SubscribeAttributeTestClusterNullableBitmap16 : public SubscribeAttribute ~SubscribeAttributeTestClusterNullableBitmap16() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004002) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -87569,12 +89906,14 @@ class ReadTestClusterNullableBitmap32 : public ReadAttribute { ~ReadTestClusterNullableBitmap32() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNullableBitmap32WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableBitmap32 response %@", [value description]); if (error != nil) { @@ -87598,13 +89937,15 @@ class WriteTestClusterNullableBitmap32 : public WriteAttribute { ~WriteTestClusterNullableBitmap32() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithUnsignedInt:mValue]; @@ -87633,11 +89974,13 @@ class SubscribeAttributeTestClusterNullableBitmap32 : public SubscribeAttribute ~SubscribeAttributeTestClusterNullableBitmap32() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004003) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -87671,12 +90014,14 @@ class ReadTestClusterNullableBitmap64 : public ReadAttribute { ~ReadTestClusterNullableBitmap64() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNullableBitmap64WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableBitmap64 response %@", [value description]); if (error != nil) { @@ -87700,13 +90045,15 @@ class WriteTestClusterNullableBitmap64 : public WriteAttribute { ~WriteTestClusterNullableBitmap64() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithUnsignedLongLong:mValue]; @@ -87735,11 +90082,13 @@ class SubscribeAttributeTestClusterNullableBitmap64 : public SubscribeAttribute ~SubscribeAttributeTestClusterNullableBitmap64() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004004) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -87773,12 +90122,14 @@ class ReadTestClusterNullableInt8u : public ReadAttribute { ~ReadTestClusterNullableInt8u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNullableInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableInt8u response %@", [value description]); if (error != nil) { @@ -87802,13 +90153,15 @@ class WriteTestClusterNullableInt8u : public WriteAttribute { ~WriteTestClusterNullableInt8u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithUnsignedChar:mValue]; @@ -87837,11 +90190,13 @@ class SubscribeAttributeTestClusterNullableInt8u : public SubscribeAttribute { ~SubscribeAttributeTestClusterNullableInt8u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004005) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -87875,12 +90230,14 @@ class ReadTestClusterNullableInt16u : public ReadAttribute { ~ReadTestClusterNullableInt16u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNullableInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableInt16u response %@", [value description]); if (error != nil) { @@ -87904,13 +90261,15 @@ class WriteTestClusterNullableInt16u : public WriteAttribute { ~WriteTestClusterNullableInt16u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithUnsignedShort:mValue]; @@ -87939,11 +90298,13 @@ class SubscribeAttributeTestClusterNullableInt16u : public SubscribeAttribute { ~SubscribeAttributeTestClusterNullableInt16u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004006) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -87977,12 +90338,14 @@ class ReadTestClusterNullableInt24u : public ReadAttribute { ~ReadTestClusterNullableInt24u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNullableInt24uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableInt24u response %@", [value description]); if (error != nil) { @@ -88006,13 +90369,15 @@ class WriteTestClusterNullableInt24u : public WriteAttribute { ~WriteTestClusterNullableInt24u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithUnsignedInt:mValue]; @@ -88041,11 +90406,13 @@ class SubscribeAttributeTestClusterNullableInt24u : public SubscribeAttribute { ~SubscribeAttributeTestClusterNullableInt24u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004007) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -88079,12 +90446,14 @@ class ReadTestClusterNullableInt32u : public ReadAttribute { ~ReadTestClusterNullableInt32u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNullableInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableInt32u response %@", [value description]); if (error != nil) { @@ -88108,13 +90477,15 @@ class WriteTestClusterNullableInt32u : public WriteAttribute { ~WriteTestClusterNullableInt32u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithUnsignedInt:mValue]; @@ -88143,11 +90514,13 @@ class SubscribeAttributeTestClusterNullableInt32u : public SubscribeAttribute { ~SubscribeAttributeTestClusterNullableInt32u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004008) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -88181,12 +90554,14 @@ class ReadTestClusterNullableInt40u : public ReadAttribute { ~ReadTestClusterNullableInt40u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNullableInt40uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableInt40u response %@", [value description]); if (error != nil) { @@ -88210,13 +90585,15 @@ class WriteTestClusterNullableInt40u : public WriteAttribute { ~WriteTestClusterNullableInt40u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithUnsignedLongLong:mValue]; @@ -88245,11 +90622,13 @@ class SubscribeAttributeTestClusterNullableInt40u : public SubscribeAttribute { ~SubscribeAttributeTestClusterNullableInt40u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004009) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -88283,12 +90662,14 @@ class ReadTestClusterNullableInt48u : public ReadAttribute { ~ReadTestClusterNullableInt48u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000400A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNullableInt48uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableInt48u response %@", [value description]); if (error != nil) { @@ -88312,13 +90693,15 @@ class WriteTestClusterNullableInt48u : public WriteAttribute { ~WriteTestClusterNullableInt48u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000400A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithUnsignedLongLong:mValue]; @@ -88347,11 +90730,13 @@ class SubscribeAttributeTestClusterNullableInt48u : public SubscribeAttribute { ~SubscribeAttributeTestClusterNullableInt48u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000400A) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -88385,12 +90770,14 @@ class ReadTestClusterNullableInt56u : public ReadAttribute { ~ReadTestClusterNullableInt56u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000400B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNullableInt56uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableInt56u response %@", [value description]); if (error != nil) { @@ -88414,13 +90801,15 @@ class WriteTestClusterNullableInt56u : public WriteAttribute { ~WriteTestClusterNullableInt56u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000400B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithUnsignedLongLong:mValue]; @@ -88449,11 +90838,13 @@ class SubscribeAttributeTestClusterNullableInt56u : public SubscribeAttribute { ~SubscribeAttributeTestClusterNullableInt56u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000400B) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -88487,12 +90878,14 @@ class ReadTestClusterNullableInt64u : public ReadAttribute { ~ReadTestClusterNullableInt64u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000400C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNullableInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableInt64u response %@", [value description]); if (error != nil) { @@ -88516,13 +90909,15 @@ class WriteTestClusterNullableInt64u : public WriteAttribute { ~WriteTestClusterNullableInt64u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000400C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithUnsignedLongLong:mValue]; @@ -88551,11 +90946,13 @@ class SubscribeAttributeTestClusterNullableInt64u : public SubscribeAttribute { ~SubscribeAttributeTestClusterNullableInt64u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000400C) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -88589,12 +90986,14 @@ class ReadTestClusterNullableInt8s : public ReadAttribute { ~ReadTestClusterNullableInt8s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000400D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNullableInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableInt8s response %@", [value description]); if (error != nil) { @@ -88618,13 +91017,15 @@ class WriteTestClusterNullableInt8s : public WriteAttribute { ~WriteTestClusterNullableInt8s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000400D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithChar:mValue]; @@ -88653,11 +91054,13 @@ class SubscribeAttributeTestClusterNullableInt8s : public SubscribeAttribute { ~SubscribeAttributeTestClusterNullableInt8s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000400D) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -88691,12 +91094,14 @@ class ReadTestClusterNullableInt16s : public ReadAttribute { ~ReadTestClusterNullableInt16s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000400E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNullableInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableInt16s response %@", [value description]); if (error != nil) { @@ -88720,13 +91125,15 @@ class WriteTestClusterNullableInt16s : public WriteAttribute { ~WriteTestClusterNullableInt16s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000400E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithShort:mValue]; @@ -88755,11 +91162,13 @@ class SubscribeAttributeTestClusterNullableInt16s : public SubscribeAttribute { ~SubscribeAttributeTestClusterNullableInt16s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000400E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -88793,12 +91202,14 @@ class ReadTestClusterNullableInt24s : public ReadAttribute { ~ReadTestClusterNullableInt24s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000400F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNullableInt24sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableInt24s response %@", [value description]); if (error != nil) { @@ -88822,13 +91233,15 @@ class WriteTestClusterNullableInt24s : public WriteAttribute { ~WriteTestClusterNullableInt24s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000400F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithInt:mValue]; @@ -88857,11 +91270,13 @@ class SubscribeAttributeTestClusterNullableInt24s : public SubscribeAttribute { ~SubscribeAttributeTestClusterNullableInt24s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000400F) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -88895,12 +91310,14 @@ class ReadTestClusterNullableInt32s : public ReadAttribute { ~ReadTestClusterNullableInt32s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNullableInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableInt32s response %@", [value description]); if (error != nil) { @@ -88924,13 +91341,15 @@ class WriteTestClusterNullableInt32s : public WriteAttribute { ~WriteTestClusterNullableInt32s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithInt:mValue]; @@ -88959,11 +91378,13 @@ class SubscribeAttributeTestClusterNullableInt32s : public SubscribeAttribute { ~SubscribeAttributeTestClusterNullableInt32s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004010) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -88997,12 +91418,14 @@ class ReadTestClusterNullableInt40s : public ReadAttribute { ~ReadTestClusterNullableInt40s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNullableInt40sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableInt40s response %@", [value description]); if (error != nil) { @@ -89026,13 +91449,15 @@ class WriteTestClusterNullableInt40s : public WriteAttribute { ~WriteTestClusterNullableInt40s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithLongLong:mValue]; @@ -89061,11 +91486,13 @@ class SubscribeAttributeTestClusterNullableInt40s : public SubscribeAttribute { ~SubscribeAttributeTestClusterNullableInt40s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004011) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -89099,12 +91526,14 @@ class ReadTestClusterNullableInt48s : public ReadAttribute { ~ReadTestClusterNullableInt48s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNullableInt48sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableInt48s response %@", [value description]); if (error != nil) { @@ -89128,13 +91557,15 @@ class WriteTestClusterNullableInt48s : public WriteAttribute { ~WriteTestClusterNullableInt48s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithLongLong:mValue]; @@ -89163,11 +91594,13 @@ class SubscribeAttributeTestClusterNullableInt48s : public SubscribeAttribute { ~SubscribeAttributeTestClusterNullableInt48s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004012) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -89201,12 +91634,14 @@ class ReadTestClusterNullableInt56s : public ReadAttribute { ~ReadTestClusterNullableInt56s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNullableInt56sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableInt56s response %@", [value description]); if (error != nil) { @@ -89230,13 +91665,15 @@ class WriteTestClusterNullableInt56s : public WriteAttribute { ~WriteTestClusterNullableInt56s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithLongLong:mValue]; @@ -89265,11 +91702,13 @@ class SubscribeAttributeTestClusterNullableInt56s : public SubscribeAttribute { ~SubscribeAttributeTestClusterNullableInt56s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004013) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -89303,12 +91742,14 @@ class ReadTestClusterNullableInt64s : public ReadAttribute { ~ReadTestClusterNullableInt64s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNullableInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableInt64s response %@", [value description]); if (error != nil) { @@ -89332,13 +91773,15 @@ class WriteTestClusterNullableInt64s : public WriteAttribute { ~WriteTestClusterNullableInt64s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithLongLong:mValue]; @@ -89367,11 +91810,13 @@ class SubscribeAttributeTestClusterNullableInt64s : public SubscribeAttribute { ~SubscribeAttributeTestClusterNullableInt64s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004014) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -89405,12 +91850,14 @@ class ReadTestClusterNullableEnum8 : public ReadAttribute { ~ReadTestClusterNullableEnum8() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNullableEnum8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableEnum8 response %@", [value description]); if (error != nil) { @@ -89434,13 +91881,15 @@ class WriteTestClusterNullableEnum8 : public WriteAttribute { ~WriteTestClusterNullableEnum8() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithUnsignedChar:mValue]; @@ -89469,11 +91918,13 @@ class SubscribeAttributeTestClusterNullableEnum8 : public SubscribeAttribute { ~SubscribeAttributeTestClusterNullableEnum8() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004015) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -89507,12 +91958,14 @@ class ReadTestClusterNullableEnum16 : public ReadAttribute { ~ReadTestClusterNullableEnum16() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004016) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNullableEnum16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableEnum16 response %@", [value description]); if (error != nil) { @@ -89536,13 +91989,15 @@ class WriteTestClusterNullableEnum16 : public WriteAttribute { ~WriteTestClusterNullableEnum16() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004016) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithUnsignedShort:mValue]; @@ -89571,11 +92026,13 @@ class SubscribeAttributeTestClusterNullableEnum16 : public SubscribeAttribute { ~SubscribeAttributeTestClusterNullableEnum16() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004016) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -89609,12 +92066,14 @@ class ReadTestClusterNullableFloatSingle : public ReadAttribute { ~ReadTestClusterNullableFloatSingle() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNullableFloatSingleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableFloatSingle response %@", [value description]); if (error != nil) { @@ -89638,13 +92097,15 @@ class WriteTestClusterNullableFloatSingle : public WriteAttribute { ~WriteTestClusterNullableFloatSingle() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithFloat:mValue]; @@ -89673,11 +92134,13 @@ class SubscribeAttributeTestClusterNullableFloatSingle : public SubscribeAttribu ~SubscribeAttributeTestClusterNullableFloatSingle() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004017) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -89711,12 +92174,14 @@ class ReadTestClusterNullableFloatDouble : public ReadAttribute { ~ReadTestClusterNullableFloatDouble() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004018) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNullableFloatDoubleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableFloatDouble response %@", [value description]); if (error != nil) { @@ -89740,13 +92205,15 @@ class WriteTestClusterNullableFloatDouble : public WriteAttribute { ~WriteTestClusterNullableFloatDouble() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004018) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithDouble:mValue]; @@ -89775,11 +92242,13 @@ class SubscribeAttributeTestClusterNullableFloatDouble : public SubscribeAttribu ~SubscribeAttributeTestClusterNullableFloatDouble() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004018) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -89813,12 +92282,14 @@ class ReadTestClusterNullableOctetString : public ReadAttribute { ~ReadTestClusterNullableOctetString() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004019) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNullableOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableOctetString response %@", [value description]); if (error != nil) { @@ -89842,13 +92313,15 @@ class WriteTestClusterNullableOctetString : public WriteAttribute { ~WriteTestClusterNullableOctetString() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004019) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSData * _Nullable value = [[NSData alloc] initWithBytes:mValue.data() length:mValue.size()]; @@ -89877,11 +92350,13 @@ class SubscribeAttributeTestClusterNullableOctetString : public SubscribeAttribu ~SubscribeAttributeTestClusterNullableOctetString() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004019) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -89915,12 +92390,14 @@ class ReadTestClusterNullableCharString : public ReadAttribute { ~ReadTestClusterNullableCharString() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000401E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNullableCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableCharString response %@", [value description]); if (error != nil) { @@ -89944,13 +92421,15 @@ class WriteTestClusterNullableCharString : public WriteAttribute { ~WriteTestClusterNullableCharString() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x0000401E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSString * _Nullable value = [[NSString alloc] initWithBytes:mValue.data() @@ -89981,11 +92460,13 @@ class SubscribeAttributeTestClusterNullableCharString : public SubscribeAttribut ~SubscribeAttributeTestClusterNullableCharString() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000401E) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -90019,12 +92500,14 @@ class ReadTestClusterNullableEnumAttr : public ReadAttribute { ~ReadTestClusterNullableEnumAttr() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004024) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNullableEnumAttrWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableEnumAttr response %@", [value description]); if (error != nil) { @@ -90048,13 +92531,15 @@ class WriteTestClusterNullableEnumAttr : public WriteAttribute { ~WriteTestClusterNullableEnumAttr() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004024) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithUnsignedChar:mValue]; @@ -90083,11 +92568,13 @@ class SubscribeAttributeTestClusterNullableEnumAttr : public SubscribeAttribute ~SubscribeAttributeTestClusterNullableEnumAttr() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004024) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -90121,12 +92608,14 @@ class ReadTestClusterNullableStruct : public ReadAttribute { ~ReadTestClusterNullableStruct() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004025) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNullableStructWithCompletionHandler:^( MTRTestClusterClusterSimpleStruct * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableStruct response %@", [value description]); @@ -90152,13 +92641,15 @@ class WriteTestClusterNullableStruct : public WriteAttribute { ~WriteTestClusterNullableStruct() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004025) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; MTRTestClusterClusterSimpleStruct * _Nullable value; @@ -90203,11 +92694,13 @@ class SubscribeAttributeTestClusterNullableStruct : public SubscribeAttribute { ~SubscribeAttributeTestClusterNullableStruct() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004025) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -90241,12 +92734,14 @@ class ReadTestClusterNullableRangeRestrictedInt8u : public ReadAttribute { ~ReadTestClusterNullableRangeRestrictedInt8u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004026) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNullableRangeRestrictedInt8uWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableRangeRestrictedInt8u response %@", [value description]); @@ -90271,13 +92766,15 @@ class WriteTestClusterNullableRangeRestrictedInt8u : public WriteAttribute { ~WriteTestClusterNullableRangeRestrictedInt8u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004026) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithUnsignedChar:mValue]; @@ -90307,11 +92804,13 @@ class SubscribeAttributeTestClusterNullableRangeRestrictedInt8u : public Subscri ~SubscribeAttributeTestClusterNullableRangeRestrictedInt8u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004026) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -90345,12 +92844,14 @@ class ReadTestClusterNullableRangeRestrictedInt8s : public ReadAttribute { ~ReadTestClusterNullableRangeRestrictedInt8s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004027) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNullableRangeRestrictedInt8sWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableRangeRestrictedInt8s response %@", [value description]); @@ -90375,13 +92876,15 @@ class WriteTestClusterNullableRangeRestrictedInt8s : public WriteAttribute { ~WriteTestClusterNullableRangeRestrictedInt8s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004027) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithChar:mValue]; @@ -90411,11 +92914,13 @@ class SubscribeAttributeTestClusterNullableRangeRestrictedInt8s : public Subscri ~SubscribeAttributeTestClusterNullableRangeRestrictedInt8s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004027) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -90449,12 +92954,14 @@ class ReadTestClusterNullableRangeRestrictedInt16u : public ReadAttribute { ~ReadTestClusterNullableRangeRestrictedInt16u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004028) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNullableRangeRestrictedInt16uWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableRangeRestrictedInt16u response %@", [value description]); @@ -90479,13 +92986,15 @@ class WriteTestClusterNullableRangeRestrictedInt16u : public WriteAttribute { ~WriteTestClusterNullableRangeRestrictedInt16u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004028) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithUnsignedShort:mValue]; @@ -90515,11 +93024,13 @@ class SubscribeAttributeTestClusterNullableRangeRestrictedInt16u : public Subscr ~SubscribeAttributeTestClusterNullableRangeRestrictedInt16u() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004028) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -90553,12 +93064,14 @@ class ReadTestClusterNullableRangeRestrictedInt16s : public ReadAttribute { ~ReadTestClusterNullableRangeRestrictedInt16s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x00004029) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeNullableRangeRestrictedInt16sWithCompletionHandler:^( NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.NullableRangeRestrictedInt16s response %@", [value description]); @@ -90583,13 +93096,15 @@ class WriteTestClusterNullableRangeRestrictedInt16s : public WriteAttribute { ~WriteTestClusterNullableRangeRestrictedInt16s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) WriteAttribute (0x00004029) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRWriteParams * params = [[MTRWriteParams alloc] init]; - params.timedWriteTimeoutMs + params.timedWriteTimeout = mTimedInteractionTimeoutMs.HasValue() ? [NSNumber numberWithUnsignedShort:mTimedInteractionTimeoutMs.Value()] : nil; params.dataVersion = mDataVersion.HasValue() ? [NSNumber numberWithUnsignedInt:mDataVersion.Value()] : nil; NSNumber * _Nullable value = [NSNumber numberWithShort:mValue]; @@ -90619,11 +93134,13 @@ class SubscribeAttributeTestClusterNullableRangeRestrictedInt16s : public Subscr ~SubscribeAttributeTestClusterNullableRangeRestrictedInt16s() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x00004029) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -90657,12 +93174,14 @@ class ReadTestClusterGeneratedCommandList : public ReadAttribute { ~ReadTestClusterGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.GeneratedCommandList response %@", [value description]); if (error != nil) { @@ -90683,11 +93202,13 @@ class SubscribeAttributeTestClusterGeneratedCommandList : public SubscribeAttrib ~SubscribeAttributeTestClusterGeneratedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000FFF8) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -90721,12 +93242,14 @@ class ReadTestClusterAcceptedCommandList : public ReadAttribute { ~ReadTestClusterAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.AcceptedCommandList response %@", [value description]); if (error != nil) { @@ -90747,11 +93270,13 @@ class SubscribeAttributeTestClusterAcceptedCommandList : public SubscribeAttribu ~SubscribeAttributeTestClusterAcceptedCommandList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000FFF9) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -90785,12 +93310,14 @@ class ReadTestClusterAttributeList : public ReadAttribute { ~ReadTestClusterAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.AttributeList response %@", [value description]); if (error != nil) { @@ -90811,11 +93338,13 @@ class SubscribeAttributeTestClusterAttributeList : public SubscribeAttribute { ~SubscribeAttributeTestClusterAttributeList() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000FFFB) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -90849,12 +93378,14 @@ class ReadTestClusterFeatureMap : public ReadAttribute { ~ReadTestClusterFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.FeatureMap response %@", [value description]); if (error != nil) { @@ -90875,11 +93406,13 @@ class SubscribeAttributeTestClusterFeatureMap : public SubscribeAttribute { ~SubscribeAttributeTestClusterFeatureMap() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000FFFC) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; @@ -90913,12 +93446,14 @@ class ReadTestClusterClusterRevision : public ReadAttribute { ~ReadTestClusterClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReadAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable error) { NSLog(@"TestCluster.ClusterRevision response %@", [value description]); if (error != nil) { @@ -90939,11 +93474,13 @@ class SubscribeAttributeTestClusterClusterRevision : public SubscribeAttribute { ~SubscribeAttributeTestClusterClusterRevision() {} - CHIP_ERROR SendCommand(MTRDevice * device, chip::EndpointId endpointId) override + CHIP_ERROR SendCommand(MTRBaseDevice * device, chip::EndpointId endpointId) override { ChipLogProgress(chipTool, "Sending cluster (0xFFF1FC05) ReportAttribute (0x0000FFFD) on endpoint %u", endpointId); dispatch_queue_t callbackQueue = dispatch_queue_create("com.chip.command", DISPATCH_QUEUE_SERIAL); - MTRTestCluster * cluster = [[MTRTestCluster alloc] initWithDevice:device endpoint:endpointId queue:callbackQueue]; + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:endpointId + queue:callbackQueue]; MTRSubscribeParams * params = [[MTRSubscribeParams alloc] init]; params.keepPreviousSubscriptions = mKeepSubscriptions.HasValue() ? [NSNumber numberWithBool:mKeepSubscriptions.Value()] : nil; diff --git a/zzz_generated/darwin-framework-tool/zap-generated/cluster/MTRTestClustersObjc.h b/zzz_generated/darwin-framework-tool/zap-generated/cluster/MTRTestClustersObjc.h deleted file mode 100644 index beba3f81f2e67a..00000000000000 --- a/zzz_generated/darwin-framework-tool/zap-generated/cluster/MTRTestClustersObjc.h +++ /dev/null @@ -1,1607 +0,0 @@ -/* - * - * Copyright (c) 2022 Project CHIP Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// THIS FILE IS GENERATED BY ZAP - -#import - -@class MTRDevice; - -NS_ASSUME_NONNULL_BEGIN - -/** - * Cluster Identify - * - */ -@interface MTRTestIdentify : MTRIdentify - -- (void)writeAttributeIdentifyTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Groups - * - */ -@interface MTRTestGroups : MTRGroups - -- (void)writeAttributeNameSupportWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Scenes - * - */ -@interface MTRTestScenes : MTRScenes - -- (void)writeAttributeSceneCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentSceneWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentGroupWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSceneValidWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeNameSupportWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeLastConfiguredByWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster On/Off - * - */ -@interface MTRTestOnOff : MTROnOff - -- (void)writeAttributeOnOffWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGlobalSceneControlWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster On/off Switch Configuration - * - */ -@interface MTRTestOnOffSwitchConfiguration : MTROnOffSwitchConfiguration - -- (void)writeAttributeSwitchTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Level Control - * - */ -@interface MTRTestLevelControl : MTRLevelControl - -- (void)writeAttributeCurrentLevelWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRemainingTimeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMinLevelWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMaxLevelWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentFrequencyWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMinFrequencyWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMaxFrequencyWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Binary Input (Basic) - * - */ -@interface MTRTestBinaryInputBasic : MTRBinaryInputBasic - -- (void)writeAttributePolarityWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeStatusFlagsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeApplicationTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Descriptor - * - */ -@interface MTRTestDescriptor : MTRDescriptor - -- (void)writeAttributeDeviceListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeServerListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClientListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePartsListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Binding - * - */ -@interface MTRTestBinding : MTRBinding - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Access Control - * - */ -@interface MTRTestAccessControl : MTRAccessControl - -- (void)writeAttributeSubjectsPerAccessControlEntryWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTargetsPerAccessControlEntryWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAccessControlEntriesPerFabricWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Bridged Actions - * - */ -@interface MTRTestBridgedActions : MTRBridgedActions - -- (void)writeAttributeActionListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeEndpointListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSetupUrlWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Basic - * - */ -@interface MTRTestBasic : MTRBasic - -- (void)writeAttributeDataModelRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeVendorNameWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeVendorIDWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeProductNameWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeProductIDWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeHardwareVersionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeHardwareVersionStringWithValue:(NSString * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSoftwareVersionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSoftwareVersionStringWithValue:(NSString * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeManufacturingDateWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePartNumberWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeProductURLWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeProductLabelWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSerialNumberWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeReachableWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeUniqueIDWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCapabilityMinimaWithValue:(MTRBasicClusterCapabilityMinimaStruct * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster OTA Software Update Provider - * - */ -@interface MTRTestOtaSoftwareUpdateProvider : MTROtaSoftwareUpdateProvider - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster OTA Software Update Requestor - * - */ -@interface MTRTestOtaSoftwareUpdateRequestor : MTROtaSoftwareUpdateRequestor - -- (void)writeAttributeUpdatePossibleWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeUpdateStateWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeUpdateStateProgressWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Localization Configuration - * - */ -@interface MTRTestLocalizationConfiguration : MTRLocalizationConfiguration - -- (void)writeAttributeSupportedLocalesWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Time Format Localization - * - */ -@interface MTRTestTimeFormatLocalization : MTRTimeFormatLocalization - -- (void)writeAttributeSupportedCalendarTypesWithValue:(NSArray * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Unit Localization - * - */ -@interface MTRTestUnitLocalization : MTRUnitLocalization - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Power Source Configuration - * - */ -@interface MTRTestPowerSourceConfiguration : MTRPowerSourceConfiguration - -- (void)writeAttributeSourcesWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Power Source - * - */ -@interface MTRTestPowerSource : MTRPowerSource - -- (void)writeAttributeStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeOrderWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDescriptionWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeWiredAssessedInputVoltageWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeWiredAssessedInputFrequencyWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeWiredCurrentTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeWiredAssessedCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeWiredNominalVoltageWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeWiredMaximumCurrentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeWiredPresentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeActiveWiredFaultsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBatteryVoltageWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBatteryPercentRemainingWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBatteryTimeRemainingWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBatteryChargeLevelWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBatteryReplacementNeededWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBatteryReplaceabilityWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBatteryPresentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeActiveBatteryFaultsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBatteryReplacementDescriptionWithValue:(NSString * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBatteryCommonDesignationWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBatteryANSIDesignationWithValue:(NSString * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBatteryIECDesignationWithValue:(NSString * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBatteryApprovedChemistryWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBatteryCapacityWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBatteryQuantityWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBatteryChargeStateWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBatteryTimeToFullChargeWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBatteryFunctionalWhileChargingWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBatteryChargingCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeActiveBatteryChargeFaultsWithValue:(NSArray * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster General Commissioning - * - */ -@interface MTRTestGeneralCommissioning : MTRGeneralCommissioning - -- (void)writeAttributeBasicCommissioningInfoWithValue:(MTRGeneralCommissioningClusterBasicCommissioningInfo * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRegulatoryConfigWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeLocationCapabilityWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSupportsConcurrentConnectionWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Network Commissioning - * - */ -@interface MTRTestNetworkCommissioning : MTRNetworkCommissioning - -- (void)writeAttributeMaxNetworksWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeNetworksWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeScanMaxTimeSecondsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeConnectMaxTimeSecondsWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeLastNetworkingStatusWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeLastNetworkIDWithValue:(NSData * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeLastConnectErrorValueWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Diagnostic Logs - * - */ -@interface MTRTestDiagnosticLogs : MTRDiagnosticLogs - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster General Diagnostics - * - */ -@interface MTRTestGeneralDiagnostics : MTRGeneralDiagnostics - -- (void)writeAttributeNetworkInterfacesWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRebootCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeUpTimeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTotalOperationalHoursWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBootReasonsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeActiveHardwareFaultsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeActiveRadioFaultsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeActiveNetworkFaultsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTestEventTriggersEnabledWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Software Diagnostics - * - */ -@interface MTRTestSoftwareDiagnostics : MTRSoftwareDiagnostics - -- (void)writeAttributeThreadMetricsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentHeapFreeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentHeapUsedWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentHeapHighWatermarkWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Thread Network Diagnostics - * - */ -@interface MTRTestThreadNetworkDiagnostics : MTRThreadNetworkDiagnostics - -- (void)writeAttributeChannelWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRoutingRoleWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeNetworkNameWithValue:(NSString * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePanIdWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeExtendedPanIdWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMeshLocalPrefixWithValue:(NSData * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeOverrunCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeNeighborTableListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRouteTableListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePartitionIdWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeWeightingWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDataVersionWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeStableDataVersionWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeLeaderRouterIdWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDetachedRoleCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeChildRoleCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRouterRoleCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeLeaderRoleCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttachAttemptCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePartitionIdChangeCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBetterPartitionAttachAttemptCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeParentChangeCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTxTotalCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTxUnicastCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTxBroadcastCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTxAckRequestedCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTxAckedCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTxNoAckRequestedCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTxDataCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTxDataPollCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTxBeaconCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTxBeaconRequestCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTxOtherCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTxRetryCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTxDirectMaxRetryExpiryCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTxIndirectMaxRetryExpiryCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTxErrCcaCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTxErrAbortCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTxErrBusyChannelCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRxTotalCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRxUnicastCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRxBroadcastCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRxDataCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRxDataPollCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRxBeaconCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRxBeaconRequestCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRxOtherCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRxAddressFilteredCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRxDestAddrFilteredCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRxDuplicatedCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRxErrNoFrameCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRxErrUnknownNeighborCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRxErrInvalidSrcAddrCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRxErrSecCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRxErrFcsCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRxErrOtherCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeActiveTimestampWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePendingTimestampWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDelayWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSecurityPolicyWithValue:(MTRThreadNetworkDiagnosticsClusterSecurityPolicy * _Nullable)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeChannelMaskWithValue:(NSData * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeOperationalDatasetComponentsWithValue: - (MTRThreadNetworkDiagnosticsClusterOperationalDatasetComponents * _Nullable)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeActiveNetworkFaultsListWithValue:(NSArray * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster WiFi Network Diagnostics - * - */ -@interface MTRTestWiFiNetworkDiagnostics : MTRWiFiNetworkDiagnostics - -- (void)writeAttributeBssidWithValue:(NSData * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSecurityTypeWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeWiFiVersionWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeChannelNumberWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRssiWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBeaconLostCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBeaconRxCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePacketMulticastRxCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePacketMulticastTxCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePacketUnicastRxCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePacketUnicastTxCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentMaxRateWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeOverrunCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Ethernet Network Diagnostics - * - */ -@interface MTRTestEthernetNetworkDiagnostics : MTREthernetNetworkDiagnostics - -- (void)writeAttributePHYRateWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFullDuplexWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePacketRxCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePacketTxCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTxErrCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCollisionCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeOverrunCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCarrierDetectWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTimeSinceResetWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Bridged Device Basic - * - */ -@interface MTRTestBridgedDeviceBasic : MTRBridgedDeviceBasic - -- (void)writeAttributeVendorNameWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeVendorIDWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeProductNameWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeHardwareVersionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeHardwareVersionStringWithValue:(NSString * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSoftwareVersionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSoftwareVersionStringWithValue:(NSString * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeManufacturingDateWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePartNumberWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeProductURLWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeProductLabelWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSerialNumberWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeReachableWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeUniqueIDWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Switch - * - */ -@interface MTRTestSwitch : MTRSwitch - -- (void)writeAttributeNumberOfPositionsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentPositionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMultiPressMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster AdministratorCommissioning - * - */ -@interface MTRTestAdministratorCommissioning : MTRAdministratorCommissioning - -- (void)writeAttributeWindowStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAdminFabricIndexWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAdminVendorIdWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Operational Credentials - * - */ -@interface MTRTestOperationalCredentials : MTROperationalCredentials - -- (void)writeAttributeNOCsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFabricsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSupportedFabricsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCommissionedFabricsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTrustedRootCertificatesWithValue:(NSArray * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentFabricIndexWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Group Key Management - * - */ -@interface MTRTestGroupKeyManagement : MTRGroupKeyManagement - -- (void)writeAttributeGroupTableWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMaxGroupsPerFabricWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMaxGroupKeysPerFabricWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Fixed Label - * - */ -@interface MTRTestFixedLabel : MTRFixedLabel - -- (void)writeAttributeLabelListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster User Label - * - */ -@interface MTRTestUserLabel : MTRUserLabel - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Boolean State - * - */ -@interface MTRTestBooleanState : MTRBooleanState - -- (void)writeAttributeStateValueWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Mode Select - * - */ -@interface MTRTestModeSelect : MTRModeSelect - -- (void)writeAttributeDescriptionWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeStandardNamespaceWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSupportedModesWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentModeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Door Lock - * - */ -@interface MTRTestDoorLock : MTRDoorLock - -- (void)writeAttributeLockStateWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeLockTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeActuatorEnabledWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDoorStateWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeNumberOfTotalUsersSupportedWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeNumberOfPINUsersSupportedWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeNumberOfRFIDUsersSupportedWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeNumberOfWeekDaySchedulesSupportedPerUserWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeNumberOfYearDaySchedulesSupportedPerUserWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeNumberOfHolidaySchedulesSupportedWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMaxPINCodeLengthWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMinPINCodeLengthWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMaxRFIDCodeLengthWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMinRFIDCodeLengthWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCredentialRulesSupportWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeNumberOfCredentialsSupportedPerUserWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSupportedOperatingModesWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDefaultConfigurationRegisterWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Window Covering - * - */ -@interface MTRTestWindowCovering : MTRWindowCovering - -- (void)writeAttributeTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePhysicalClosedLimitLiftWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePhysicalClosedLimitTiltWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentPositionLiftWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentPositionTiltWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeNumberOfActuationsLiftWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeNumberOfActuationsTiltWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeConfigStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentPositionLiftPercentageWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentPositionTiltPercentageWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeOperationalStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTargetPositionLiftPercent100thsWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTargetPositionTiltPercent100thsWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeEndProductTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentPositionLiftPercent100thsWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentPositionTiltPercent100thsWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeInstalledOpenLimitLiftWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeInstalledClosedLimitLiftWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeInstalledOpenLimitTiltWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeInstalledClosedLimitTiltWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSafetyStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Barrier Control - * - */ -@interface MTRTestBarrierControl : MTRBarrierControl - -- (void)writeAttributeBarrierMovingStateWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBarrierSafetyStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBarrierCapabilitiesWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeBarrierPositionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Pump Configuration and Control - * - */ -@interface MTRTestPumpConfigurationAndControl : MTRPumpConfigurationAndControl - -- (void)writeAttributeMaxPressureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMaxSpeedWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMaxFlowWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMinConstPressureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMaxConstPressureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMinCompPressureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMaxCompPressureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMinConstSpeedWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMaxConstSpeedWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMinConstFlowWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMaxConstFlowWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMinConstTempWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMaxConstTempWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePumpStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeEffectiveOperationModeWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeEffectiveControlModeWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCapacityWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSpeedWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePowerWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Thermostat - * - */ -@interface MTRTestThermostat : MTRThermostat - -- (void)writeAttributeLocalTemperatureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeOutdoorTemperatureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeOccupancyWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAbsMinHeatSetpointLimitWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAbsMaxHeatSetpointLimitWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAbsMinCoolSetpointLimitWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAbsMaxCoolSetpointLimitWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePICoolingDemandWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePIHeatingDemandWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeThermostatRunningModeWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeStartOfWeekWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeNumberOfWeeklyTransitionsWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeNumberOfDailyTransitionsWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeThermostatRunningStateWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSetpointChangeSourceWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSetpointChangeAmountWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSetpointChangeSourceTimestampWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeOccupiedSetbackMinWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeOccupiedSetbackMaxWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeUnoccupiedSetbackMinWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeUnoccupiedSetbackMaxWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeACCoilTemperatureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Fan Control - * - */ -@interface MTRTestFanControl : MTRFanControl - -- (void)writeAttributePercentCurrentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSpeedMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSpeedCurrentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRockSupportWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeWindSupportWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Thermostat User Interface Configuration - * - */ -@interface MTRTestThermostatUserInterfaceConfiguration : MTRThermostatUserInterfaceConfiguration - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Color Control - * - */ -@interface MTRTestColorControl : MTRColorControl - -- (void)writeAttributeCurrentHueWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentSaturationWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRemainingTimeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentXWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentYWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDriftCompensationWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCompensationTextWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeColorTemperatureWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeColorModeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeNumberOfPrimariesWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePrimary1XWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePrimary1YWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePrimary1IntensityWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePrimary2XWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePrimary2YWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePrimary2IntensityWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePrimary3XWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePrimary3YWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePrimary3IntensityWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePrimary4XWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePrimary4YWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePrimary4IntensityWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePrimary5XWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePrimary5YWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePrimary5IntensityWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePrimary6XWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePrimary6YWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePrimary6IntensityWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeEnhancedCurrentHueWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeEnhancedColorModeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeColorLoopActiveWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeColorLoopDirectionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeColorLoopTimeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeColorLoopStartEnhancedHueWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeColorLoopStoredEnhancedHueWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeColorCapabilitiesWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeColorTempPhysicalMinMiredsWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeColorTempPhysicalMaxMiredsWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCoupleColorTempToLevelMinMiredsWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Illuminance Measurement - * - */ -@interface MTRTestIlluminanceMeasurement : MTRIlluminanceMeasurement - -- (void)writeAttributeMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMinMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMaxMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeToleranceWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeLightSensorTypeWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Temperature Measurement - * - */ -@interface MTRTestTemperatureMeasurement : MTRTemperatureMeasurement - -- (void)writeAttributeMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMinMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMaxMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeToleranceWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Pressure Measurement - * - */ -@interface MTRTestPressureMeasurement : MTRPressureMeasurement - -- (void)writeAttributeMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMinMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMaxMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeToleranceWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeScaledValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMinScaledValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMaxScaledValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeScaledToleranceWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeScaleWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Flow Measurement - * - */ -@interface MTRTestFlowMeasurement : MTRFlowMeasurement - -- (void)writeAttributeMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMinMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMaxMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeToleranceWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Relative Humidity Measurement - * - */ -@interface MTRTestRelativeHumidityMeasurement : MTRRelativeHumidityMeasurement - -- (void)writeAttributeMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMinMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMaxMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeToleranceWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Occupancy Sensing - * - */ -@interface MTRTestOccupancySensing : MTROccupancySensing - -- (void)writeAttributeOccupancyWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeOccupancySensorTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeOccupancySensorTypeBitmapWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Wake on LAN - * - */ -@interface MTRTestWakeOnLan : MTRWakeOnLan - -- (void)writeAttributeMACAddressWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Channel - * - */ -@interface MTRTestChannel : MTRChannel - -- (void)writeAttributeChannelListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeLineupWithValue:(MTRChannelClusterLineupInfo * _Nullable)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentChannelWithValue:(MTRChannelClusterChannelInfo * _Nullable)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Target Navigator - * - */ -@interface MTRTestTargetNavigator : MTRTargetNavigator - -- (void)writeAttributeTargetListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentTargetWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Media Playback - * - */ -@interface MTRTestMediaPlayback : MTRMediaPlayback - -- (void)writeAttributeCurrentStateWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeStartTimeWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDurationWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSampledPositionWithValue:(MTRMediaPlaybackClusterPlaybackPosition * _Nullable)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePlaybackSpeedWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSeekRangeEndWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeSeekRangeStartWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Media Input - * - */ -@interface MTRTestMediaInput : MTRMediaInput - -- (void)writeAttributeInputListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentInputWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Low Power - * - */ -@interface MTRTestLowPower : MTRLowPower - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Keypad Input - * - */ -@interface MTRTestKeypadInput : MTRKeypadInput - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Content Launcher - * - */ -@interface MTRTestContentLauncher : MTRContentLauncher - -- (void)writeAttributeAcceptHeaderWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Audio Output - * - */ -@interface MTRTestAudioOutput : MTRAudioOutput - -- (void)writeAttributeOutputListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentOutputWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Application Launcher - * - */ -@interface MTRTestApplicationLauncher : MTRApplicationLauncher - -- (void)writeAttributeCatalogListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Application Basic - * - */ -@interface MTRTestApplicationBasic : MTRApplicationBasic - -- (void)writeAttributeVendorNameWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeVendorIDWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeApplicationNameWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeProductIDWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeApplicationWithValue:(MTRApplicationBasicClusterApplicationBasicApplication * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeApplicationVersionWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAllowedVendorListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Account Login - * - */ -@interface MTRTestAccountLogin : MTRAccountLogin - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Electrical Measurement - * - */ -@interface MTRTestElectricalMeasurement : MTRElectricalMeasurement - -- (void)writeAttributeMeasurementTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDcVoltageWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDcVoltageMinWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDcVoltageMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDcCurrentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDcCurrentMinWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDcCurrentMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDcPowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDcPowerMinWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDcPowerMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDcVoltageMultiplierWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDcVoltageDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDcCurrentMultiplierWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDcCurrentDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDcPowerMultiplierWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeDcPowerDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcFrequencyWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcFrequencyMinWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcFrequencyMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeNeutralCurrentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTotalActivePowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTotalReactivePowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeTotalApparentPowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMeasured1stHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMeasured3rdHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMeasured5thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMeasured7thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMeasured9thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMeasured11thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMeasuredPhase1stHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMeasuredPhase3rdHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMeasuredPhase5thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMeasuredPhase7thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMeasuredPhase9thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeMeasuredPhase11thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcFrequencyMultiplierWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcFrequencyDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePowerMultiplierWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePowerDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeHarmonicCurrentMultiplierWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePhaseHarmonicCurrentMultiplierWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeInstantaneousVoltageWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeInstantaneousLineCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeInstantaneousActiveCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeInstantaneousReactiveCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeInstantaneousPowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsVoltageWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsVoltageMinWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsVoltageMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsCurrentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsCurrentMinWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsCurrentMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeActivePowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeActivePowerMinWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeActivePowerMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeReactivePowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeApparentPowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePowerFactorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcVoltageMultiplierWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcVoltageDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcCurrentMultiplierWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcCurrentDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcPowerMultiplierWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcPowerDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeVoltageOverloadWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeCurrentOverloadWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcVoltageOverloadWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcCurrentOverloadWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcActivePowerOverloadWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcReactivePowerOverloadWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAverageRmsOverVoltageWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAverageRmsUnderVoltageWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsExtremeOverVoltageWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsExtremeUnderVoltageWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsVoltageSagWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsVoltageSwellWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeLineCurrentPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeActiveCurrentPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeReactiveCurrentPhaseBWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsVoltagePhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsVoltageMinPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsVoltageMaxPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsCurrentPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsCurrentMinPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsCurrentMaxPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeActivePowerPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeActivePowerMinPhaseBWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeActivePowerMaxPhaseBWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeReactivePowerPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeApparentPowerPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePowerFactorPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAverageRmsVoltageMeasurementPeriodPhaseBWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAverageRmsOverVoltageCounterPhaseBWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAverageRmsUnderVoltageCounterPhaseBWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsExtremeOverVoltagePeriodPhaseBWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsExtremeUnderVoltagePeriodPhaseBWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsVoltageSagPeriodPhaseBWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsVoltageSwellPeriodPhaseBWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeLineCurrentPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeActiveCurrentPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeReactiveCurrentPhaseCWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsVoltagePhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsVoltageMinPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsVoltageMaxPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsCurrentPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsCurrentMinPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsCurrentMaxPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeActivePowerPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeActivePowerMinPhaseCWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeActivePowerMaxPhaseCWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeReactivePowerPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeApparentPowerPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributePowerFactorPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAverageRmsVoltageMeasurementPeriodPhaseCWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAverageRmsOverVoltageCounterPhaseCWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAverageRmsUnderVoltageCounterPhaseCWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsExtremeOverVoltagePeriodPhaseCWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsExtremeUnderVoltagePeriodPhaseCWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsVoltageSagPeriodPhaseCWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeRmsVoltageSwellPeriodPhaseCWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -/** - * Cluster Test Cluster - * - */ -@interface MTRTestTestCluster : MTRTestCluster - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler; - -@end - -NS_ASSUME_NONNULL_END diff --git a/zzz_generated/darwin-framework-tool/zap-generated/cluster/MTRTestClustersObjc.mm b/zzz_generated/darwin-framework-tool/zap-generated/cluster/MTRTestClustersObjc.mm deleted file mode 100644 index 51f61faf733325..00000000000000 --- a/zzz_generated/darwin-framework-tool/zap-generated/cluster/MTRTestClustersObjc.mm +++ /dev/null @@ -1,21948 +0,0 @@ -/* - * - * Copyright (c) 2022 Project CHIP Authors - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -// THIS FILE IS GENERATED BY ZAP -#import - -#import - -#import "MTRCallbackBridge_internal.h" -#import "MTRCluster_Externs.h" -#import "MTRDevice_Externs.h" -#import "zap-generated/CHIPClusters.h" -#import "zap-generated/cluster/MTRTestClustersObjc.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include - -using chip::Callback::Callback; -using chip::Callback::Cancelable; -using namespace chip::app::Clusters; - -@interface MTRTestIdentify () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::IdentifyCluster * cppCluster; -@end - -@implementation MTRTestIdentify - -- (chip::Controller::IdentifyCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeIdentifyTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Identify::Attributes::IdentifyType::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Identify::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Identify::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Identify::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Identify::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Identify::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestGroups () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::GroupsCluster * cppCluster; -@end - -@implementation MTRTestGroups - -- (chip::Controller::GroupsCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeNameSupportWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Groups::Attributes::NameSupport::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Groups::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Groups::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Groups::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Groups::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Groups::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestScenes () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::ScenesCluster * cppCluster; -@end - -@implementation MTRTestScenes - -- (chip::Controller::ScenesCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeSceneCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Scenes::Attributes::SceneCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentSceneWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Scenes::Attributes::CurrentScene::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentGroupWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Scenes::Attributes::CurrentGroup::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSceneValidWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Scenes::Attributes::SceneValid::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.boolValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeNameSupportWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Scenes::Attributes::NameSupport::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeLastConfiguredByWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Scenes::Attributes::LastConfiguredBy::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedLongLongValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Scenes::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Scenes::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Scenes::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Scenes::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Scenes::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestOnOff () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::OnOffCluster * cppCluster; -@end - -@implementation MTRTestOnOff - -- (chip::Controller::OnOffCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeOnOffWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OnOff::Attributes::OnOff::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.boolValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGlobalSceneControlWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OnOff::Attributes::GlobalSceneControl::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.boolValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OnOff::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OnOff::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OnOff::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OnOff::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OnOff::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestOnOffSwitchConfiguration () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::OnOffSwitchConfigurationCluster * cppCluster; -@end - -@implementation MTRTestOnOffSwitchConfiguration - -- (chip::Controller::OnOffSwitchConfigurationCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeSwitchTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OnOffSwitchConfiguration::Attributes::SwitchType::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OnOffSwitchConfiguration::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OnOffSwitchConfiguration::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OnOffSwitchConfiguration::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OnOffSwitchConfiguration::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OnOffSwitchConfiguration::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestLevelControl () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::LevelControlCluster * cppCluster; -@end - -@implementation MTRTestLevelControl - -- (chip::Controller::LevelControlCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeCurrentLevelWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LevelControl::Attributes::CurrentLevel::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRemainingTimeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LevelControl::Attributes::RemainingTime::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMinLevelWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LevelControl::Attributes::MinLevel::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMaxLevelWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LevelControl::Attributes::MaxLevel::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentFrequencyWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LevelControl::Attributes::CurrentFrequency::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMinFrequencyWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LevelControl::Attributes::MinFrequency::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMaxFrequencyWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LevelControl::Attributes::MaxFrequency::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LevelControl::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LevelControl::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LevelControl::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LevelControl::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LevelControl::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestBinaryInputBasic () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::BinaryInputBasicCluster * cppCluster; -@end - -@implementation MTRTestBinaryInputBasic - -- (chip::Controller::BinaryInputBasicCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributePolarityWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BinaryInputBasic::Attributes::Polarity::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeStatusFlagsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BinaryInputBasic::Attributes::StatusFlags::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeApplicationTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BinaryInputBasic::Attributes::ApplicationType::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BinaryInputBasic::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BinaryInputBasic::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BinaryInputBasic::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BinaryInputBasic::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BinaryInputBasic::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestDescriptor () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::DescriptorCluster * cppCluster; -@end - -@implementation MTRTestDescriptor - -- (chip::Controller::DescriptorCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeDeviceListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Descriptor::Attributes::DeviceList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[MTRDescriptorClusterDeviceType class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (MTRDescriptorClusterDeviceType *) value[i_0]; - listHolder_0->mList[i_0].type = element_0.type.unsignedIntValue; - listHolder_0->mList[i_0].revision = element_0.revision.unsignedShortValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeServerListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Descriptor::Attributes::ServerList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClientListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Descriptor::Attributes::ClientList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePartsListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Descriptor::Attributes::PartsList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedShortValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Descriptor::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Descriptor::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Descriptor::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Descriptor::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Descriptor::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestBinding () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::BindingCluster * cppCluster; -@end - -@implementation MTRTestBinding - -- (chip::Controller::BindingCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Binding::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Binding::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Binding::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Binding::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Binding::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestAccessControl () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::AccessControlCluster * cppCluster; -@end - -@implementation MTRTestAccessControl - -- (chip::Controller::AccessControlCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeSubjectsPerAccessControlEntryWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AccessControl::Attributes::SubjectsPerAccessControlEntry::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTargetsPerAccessControlEntryWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AccessControl::Attributes::TargetsPerAccessControlEntry::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAccessControlEntriesPerFabricWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AccessControl::Attributes::AccessControlEntriesPerFabric::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AccessControl::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AccessControl::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AccessControl::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AccessControl::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AccessControl::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestBridgedActions () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::BridgedActionsCluster * cppCluster; -@end - -@implementation MTRTestBridgedActions - -- (chip::Controller::BridgedActionsCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeActionListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedActions::Attributes::ActionList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[MTRBridgedActionsClusterActionStruct class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (MTRBridgedActionsClusterActionStruct *) value[i_0]; - listHolder_0->mList[i_0].actionID = element_0.actionID.unsignedShortValue; - listHolder_0->mList[i_0].name = [self asCharSpan:element_0.name]; - listHolder_0->mList[i_0].type - = static_castmList[i_0].type)>>( - element_0.type.unsignedCharValue); - listHolder_0->mList[i_0].endpointListID = element_0.endpointListID.unsignedShortValue; - listHolder_0->mList[i_0].supportedCommands = element_0.supportedCommands.unsignedShortValue; - listHolder_0->mList[i_0].status - = static_castmList[i_0].status)>>( - element_0.status.unsignedCharValue); - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeEndpointListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedActions::Attributes::EndpointList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[MTRBridgedActionsClusterEndpointListStruct class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (MTRBridgedActionsClusterEndpointListStruct *) value[i_0]; - listHolder_0->mList[i_0].endpointListID = element_0.endpointListID.unsignedShortValue; - listHolder_0->mList[i_0].name = [self asCharSpan:element_0.name]; - listHolder_0->mList[i_0].type - = static_castmList[i_0].type)>>( - element_0.type.unsignedCharValue); - { - using ListType_2 = std::remove_reference_tmList[i_0].endpoints)>; - using ListMemberType_2 = ListMemberTypeGetter::Type; - if (element_0.endpoints.count != 0) { - auto * listHolder_2 = new ListHolder(element_0.endpoints.count); - if (listHolder_2 == nullptr || listHolder_2->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_2); - for (size_t i_2 = 0; i_2 < element_0.endpoints.count; ++i_2) { - if (![element_0.endpoints[i_2] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_2 = (NSNumber *) element_0.endpoints[i_2]; - listHolder_2->mList[i_2] = element_2.unsignedShortValue; - } - listHolder_0->mList[i_0].endpoints = ListType_2(listHolder_2->mList, element_0.endpoints.count); - } else { - listHolder_0->mList[i_0].endpoints = ListType_2(); - } - } - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSetupUrlWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedActions::Attributes::SetupUrl::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedActions::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedActions::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedActions::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedActions::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedActions::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestBasic () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::BasicCluster * cppCluster; -@end - -@implementation MTRTestBasic - -- (chip::Controller::BasicCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeDataModelRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Basic::Attributes::DataModelRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeVendorNameWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Basic::Attributes::VendorName::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeVendorIDWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Basic::Attributes::VendorID::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedShortValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeProductNameWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Basic::Attributes::ProductName::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeProductIDWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Basic::Attributes::ProductID::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeHardwareVersionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Basic::Attributes::HardwareVersion::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeHardwareVersionStringWithValue:(NSString * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Basic::Attributes::HardwareVersionString::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSoftwareVersionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Basic::Attributes::SoftwareVersion::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSoftwareVersionStringWithValue:(NSString * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Basic::Attributes::SoftwareVersionString::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeManufacturingDateWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Basic::Attributes::ManufacturingDate::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePartNumberWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Basic::Attributes::PartNumber::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeProductURLWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Basic::Attributes::ProductURL::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeProductLabelWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Basic::Attributes::ProductLabel::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSerialNumberWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Basic::Attributes::SerialNumber::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeReachableWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Basic::Attributes::Reachable::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.boolValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeUniqueIDWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Basic::Attributes::UniqueID::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCapabilityMinimaWithValue:(MTRBasicClusterCapabilityMinimaStruct * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Basic::Attributes::CapabilityMinima::TypeInfo; - TypeInfo::Type cppValue; - cppValue.caseSessionsPerFabric = value.caseSessionsPerFabric.unsignedShortValue; - cppValue.subscriptionsPerFabric = value.subscriptionsPerFabric.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Basic::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Basic::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Basic::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Basic::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Basic::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestOtaSoftwareUpdateProvider () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::OtaSoftwareUpdateProviderCluster * cppCluster; -@end - -@implementation MTRTestOtaSoftwareUpdateProvider - -- (chip::Controller::OtaSoftwareUpdateProviderCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OtaSoftwareUpdateProvider::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OtaSoftwareUpdateProvider::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OtaSoftwareUpdateProvider::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OtaSoftwareUpdateProvider::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OtaSoftwareUpdateProvider::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestOtaSoftwareUpdateRequestor () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::OtaSoftwareUpdateRequestorCluster * cppCluster; -@end - -@implementation MTRTestOtaSoftwareUpdateRequestor - -- (chip::Controller::OtaSoftwareUpdateRequestorCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeUpdatePossibleWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::UpdatePossible::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.boolValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeUpdateStateWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::UpdateState::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedCharValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeUpdateStateProgressWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::UpdateStateProgress::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedCharValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OtaSoftwareUpdateRequestor::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestLocalizationConfiguration () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::LocalizationConfigurationCluster * cppCluster; -@end - -@implementation MTRTestLocalizationConfiguration - -- (chip::Controller::LocalizationConfigurationCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeSupportedLocalesWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LocalizationConfiguration::Attributes::SupportedLocales::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSString class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSString *) value[i_0]; - listHolder_0->mList[i_0] = [self asCharSpan:element_0]; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LocalizationConfiguration::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LocalizationConfiguration::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LocalizationConfiguration::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LocalizationConfiguration::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LocalizationConfiguration::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestTimeFormatLocalization () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::TimeFormatLocalizationCluster * cppCluster; -@end - -@implementation MTRTestTimeFormatLocalization - -- (chip::Controller::TimeFormatLocalizationCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeSupportedCalendarTypesWithValue:(NSArray * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TimeFormatLocalization::Attributes::SupportedCalendarTypes::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] - = static_castmList[i_0])>>(element_0.unsignedCharValue); - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TimeFormatLocalization::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TimeFormatLocalization::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TimeFormatLocalization::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TimeFormatLocalization::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TimeFormatLocalization::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestUnitLocalization () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::UnitLocalizationCluster * cppCluster; -@end - -@implementation MTRTestUnitLocalization - -- (chip::Controller::UnitLocalizationCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = UnitLocalization::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = UnitLocalization::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = UnitLocalization::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = UnitLocalization::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = UnitLocalization::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestPowerSourceConfiguration () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::PowerSourceConfigurationCluster * cppCluster; -@end - -@implementation MTRTestPowerSourceConfiguration - -- (chip::Controller::PowerSourceConfigurationCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeSourcesWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSourceConfiguration::Attributes::Sources::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedCharValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSourceConfiguration::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSourceConfiguration::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSourceConfiguration::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSourceConfiguration::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSourceConfiguration::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestPowerSource () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::PowerSourceCluster * cppCluster; -@end - -@implementation MTRTestPowerSource - -- (chip::Controller::PowerSourceCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::Status::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeOrderWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::Order::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDescriptionWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::Description::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeWiredAssessedInputVoltageWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::WiredAssessedInputVoltage::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeWiredAssessedInputFrequencyWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::WiredAssessedInputFrequency::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeWiredCurrentTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::WiredCurrentType::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeWiredAssessedCurrentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::WiredAssessedCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeWiredNominalVoltageWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::WiredNominalVoltage::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeWiredMaximumCurrentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::WiredMaximumCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeWiredPresentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::WiredPresent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.boolValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeActiveWiredFaultsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::ActiveWiredFaults::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedCharValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBatteryVoltageWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::BatteryVoltage::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBatteryPercentRemainingWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::BatteryPercentRemaining::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBatteryTimeRemainingWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::BatteryTimeRemaining::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBatteryChargeLevelWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::BatteryChargeLevel::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBatteryReplacementNeededWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::BatteryReplacementNeeded::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.boolValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBatteryReplaceabilityWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::BatteryReplaceability::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBatteryPresentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::BatteryPresent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.boolValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeActiveBatteryFaultsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::ActiveBatteryFaults::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedCharValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBatteryReplacementDescriptionWithValue:(NSString * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::BatteryReplacementDescription::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBatteryCommonDesignationWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::BatteryCommonDesignation::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBatteryANSIDesignationWithValue:(NSString * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::BatteryANSIDesignation::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBatteryIECDesignationWithValue:(NSString * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::BatteryIECDesignation::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBatteryApprovedChemistryWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::BatteryApprovedChemistry::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBatteryCapacityWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::BatteryCapacity::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBatteryQuantityWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::BatteryQuantity::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBatteryChargeStateWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::BatteryChargeState::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBatteryTimeToFullChargeWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::BatteryTimeToFullCharge::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBatteryFunctionalWhileChargingWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::BatteryFunctionalWhileCharging::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.boolValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBatteryChargingCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::BatteryChargingCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeActiveBatteryChargeFaultsWithValue:(NSArray * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::ActiveBatteryChargeFaults::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedCharValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PowerSource::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestGeneralCommissioning () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::GeneralCommissioningCluster * cppCluster; -@end - -@implementation MTRTestGeneralCommissioning - -- (chip::Controller::GeneralCommissioningCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeBasicCommissioningInfoWithValue:(MTRGeneralCommissioningClusterBasicCommissioningInfo * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralCommissioning::Attributes::BasicCommissioningInfo::TypeInfo; - TypeInfo::Type cppValue; - cppValue.failSafeExpiryLengthSeconds = value.failSafeExpiryLengthSeconds.unsignedShortValue; - cppValue.maxCumulativeFailsafeSeconds = value.maxCumulativeFailsafeSeconds.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRegulatoryConfigWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralCommissioning::Attributes::RegulatoryConfig::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedCharValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeLocationCapabilityWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralCommissioning::Attributes::LocationCapability::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedCharValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSupportsConcurrentConnectionWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralCommissioning::Attributes::SupportsConcurrentConnection::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.boolValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralCommissioning::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralCommissioning::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralCommissioning::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralCommissioning::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralCommissioning::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestNetworkCommissioning () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::NetworkCommissioningCluster * cppCluster; -@end - -@implementation MTRTestNetworkCommissioning - -- (chip::Controller::NetworkCommissioningCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeMaxNetworksWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = NetworkCommissioning::Attributes::MaxNetworks::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeNetworksWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = NetworkCommissioning::Attributes::Networks::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[MTRNetworkCommissioningClusterNetworkInfo class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (MTRNetworkCommissioningClusterNetworkInfo *) value[i_0]; - listHolder_0->mList[i_0].networkID = [self asByteSpan:element_0.networkID]; - listHolder_0->mList[i_0].connected = element_0.connected.boolValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeScanMaxTimeSecondsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = NetworkCommissioning::Attributes::ScanMaxTimeSeconds::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeConnectMaxTimeSecondsWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = NetworkCommissioning::Attributes::ConnectMaxTimeSeconds::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeLastNetworkingStatusWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = NetworkCommissioning::Attributes::LastNetworkingStatus::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = static_cast>(value.unsignedCharValue); - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeLastNetworkIDWithValue:(NSData * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = NetworkCommissioning::Attributes::LastNetworkID::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = [self asByteSpan:value]; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeLastConnectErrorValueWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = NetworkCommissioning::Attributes::LastConnectErrorValue::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.intValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = NetworkCommissioning::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = NetworkCommissioning::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = NetworkCommissioning::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = NetworkCommissioning::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = NetworkCommissioning::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestDiagnosticLogs () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::DiagnosticLogsCluster * cppCluster; -@end - -@implementation MTRTestDiagnosticLogs - -- (chip::Controller::DiagnosticLogsCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DiagnosticLogs::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DiagnosticLogs::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DiagnosticLogs::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DiagnosticLogs::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DiagnosticLogs::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestGeneralDiagnostics () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::GeneralDiagnosticsCluster * cppCluster; -@end - -@implementation MTRTestGeneralDiagnostics - -- (chip::Controller::GeneralDiagnosticsCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeNetworkInterfacesWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralDiagnostics::Attributes::NetworkInterfaces::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[MTRGeneralDiagnosticsClusterNetworkInterfaceType class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (MTRGeneralDiagnosticsClusterNetworkInterfaceType *) value[i_0]; - listHolder_0->mList[i_0].name = [self asCharSpan:element_0.name]; - listHolder_0->mList[i_0].isOperational = element_0.isOperational.boolValue; - if (element_0.offPremiseServicesReachableIPv4 == nil) { - listHolder_0->mList[i_0].offPremiseServicesReachableIPv4.SetNull(); - } else { - auto & nonNullValue_2 = listHolder_0->mList[i_0].offPremiseServicesReachableIPv4.SetNonNull(); - nonNullValue_2 = element_0.offPremiseServicesReachableIPv4.boolValue; - } - if (element_0.offPremiseServicesReachableIPv6 == nil) { - listHolder_0->mList[i_0].offPremiseServicesReachableIPv6.SetNull(); - } else { - auto & nonNullValue_2 = listHolder_0->mList[i_0].offPremiseServicesReachableIPv6.SetNonNull(); - nonNullValue_2 = element_0.offPremiseServicesReachableIPv6.boolValue; - } - listHolder_0->mList[i_0].hardwareAddress = [self asByteSpan:element_0.hardwareAddress]; - { - using ListType_2 = std::remove_reference_tmList[i_0].IPv4Addresses)>; - using ListMemberType_2 = ListMemberTypeGetter::Type; - if (element_0.iPv4Addresses.count != 0) { - auto * listHolder_2 = new ListHolder(element_0.iPv4Addresses.count); - if (listHolder_2 == nullptr || listHolder_2->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_2); - for (size_t i_2 = 0; i_2 < element_0.iPv4Addresses.count; ++i_2) { - if (![element_0.iPv4Addresses[i_2] isKindOfClass:[NSData class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_2 = (NSData *) element_0.iPv4Addresses[i_2]; - listHolder_2->mList[i_2] = [self asByteSpan:element_2]; - } - listHolder_0->mList[i_0].IPv4Addresses - = ListType_2(listHolder_2->mList, element_0.iPv4Addresses.count); - } else { - listHolder_0->mList[i_0].IPv4Addresses = ListType_2(); - } - } - { - using ListType_2 = std::remove_reference_tmList[i_0].IPv6Addresses)>; - using ListMemberType_2 = ListMemberTypeGetter::Type; - if (element_0.iPv6Addresses.count != 0) { - auto * listHolder_2 = new ListHolder(element_0.iPv6Addresses.count); - if (listHolder_2 == nullptr || listHolder_2->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_2); - for (size_t i_2 = 0; i_2 < element_0.iPv6Addresses.count; ++i_2) { - if (![element_0.iPv6Addresses[i_2] isKindOfClass:[NSData class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_2 = (NSData *) element_0.iPv6Addresses[i_2]; - listHolder_2->mList[i_2] = [self asByteSpan:element_2]; - } - listHolder_0->mList[i_0].IPv6Addresses - = ListType_2(listHolder_2->mList, element_0.iPv6Addresses.count); - } else { - listHolder_0->mList[i_0].IPv6Addresses = ListType_2(); - } - } - listHolder_0->mList[i_0].type - = static_castmList[i_0].type)>>( - element_0.type.unsignedCharValue); - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRebootCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralDiagnostics::Attributes::RebootCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeUpTimeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralDiagnostics::Attributes::UpTime::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedLongLongValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTotalOperationalHoursWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralDiagnostics::Attributes::TotalOperationalHours::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBootReasonsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralDiagnostics::Attributes::BootReasons::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeActiveHardwareFaultsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralDiagnostics::Attributes::ActiveHardwareFaults::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedCharValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeActiveRadioFaultsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralDiagnostics::Attributes::ActiveRadioFaults::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedCharValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeActiveNetworkFaultsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralDiagnostics::Attributes::ActiveNetworkFaults::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedCharValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTestEventTriggersEnabledWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralDiagnostics::Attributes::TestEventTriggersEnabled::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.boolValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralDiagnostics::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralDiagnostics::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralDiagnostics::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralDiagnostics::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GeneralDiagnostics::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestSoftwareDiagnostics () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::SoftwareDiagnosticsCluster * cppCluster; -@end - -@implementation MTRTestSoftwareDiagnostics - -- (chip::Controller::SoftwareDiagnosticsCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeThreadMetricsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = SoftwareDiagnostics::Attributes::ThreadMetrics::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[MTRSoftwareDiagnosticsClusterThreadMetrics class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (MTRSoftwareDiagnosticsClusterThreadMetrics *) value[i_0]; - listHolder_0->mList[i_0].id = element_0.id.unsignedLongLongValue; - if (element_0.name != nil) { - auto & definedValue_2 = listHolder_0->mList[i_0].name.Emplace(); - definedValue_2 = [self asCharSpan:element_0.name]; - } - if (element_0.stackFreeCurrent != nil) { - auto & definedValue_2 = listHolder_0->mList[i_0].stackFreeCurrent.Emplace(); - definedValue_2 = element_0.stackFreeCurrent.unsignedIntValue; - } - if (element_0.stackFreeMinimum != nil) { - auto & definedValue_2 = listHolder_0->mList[i_0].stackFreeMinimum.Emplace(); - definedValue_2 = element_0.stackFreeMinimum.unsignedIntValue; - } - if (element_0.stackSize != nil) { - auto & definedValue_2 = listHolder_0->mList[i_0].stackSize.Emplace(); - definedValue_2 = element_0.stackSize.unsignedIntValue; - } - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentHeapFreeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = SoftwareDiagnostics::Attributes::CurrentHeapFree::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedLongLongValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentHeapUsedWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = SoftwareDiagnostics::Attributes::CurrentHeapUsed::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedLongLongValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentHeapHighWatermarkWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = SoftwareDiagnostics::Attributes::CurrentHeapHighWatermark::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedLongLongValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = SoftwareDiagnostics::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = SoftwareDiagnostics::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = SoftwareDiagnostics::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = SoftwareDiagnostics::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = SoftwareDiagnostics::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestThreadNetworkDiagnostics () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::ThreadNetworkDiagnosticsCluster * cppCluster; -@end - -@implementation MTRTestThreadNetworkDiagnostics - -- (chip::Controller::ThreadNetworkDiagnosticsCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeChannelWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::Channel::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRoutingRoleWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::RoutingRole::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = static_cast>(value.unsignedCharValue); - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeNetworkNameWithValue:(NSString * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::NetworkName::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = [self asCharSpan:value]; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePanIdWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::PanId::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeExtendedPanIdWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::ExtendedPanId::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedLongLongValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMeshLocalPrefixWithValue:(NSData * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::MeshLocalPrefix::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = [self asByteSpan:value]; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeOverrunCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::OverrunCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedLongLongValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeNeighborTableListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::NeighborTableList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[MTRThreadNetworkDiagnosticsClusterNeighborTable class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (MTRThreadNetworkDiagnosticsClusterNeighborTable *) value[i_0]; - listHolder_0->mList[i_0].extAddress = element_0.extAddress.unsignedLongLongValue; - listHolder_0->mList[i_0].age = element_0.age.unsignedIntValue; - listHolder_0->mList[i_0].rloc16 = element_0.rloc16.unsignedShortValue; - listHolder_0->mList[i_0].linkFrameCounter = element_0.linkFrameCounter.unsignedIntValue; - listHolder_0->mList[i_0].mleFrameCounter = element_0.mleFrameCounter.unsignedIntValue; - listHolder_0->mList[i_0].lqi = element_0.lqi.unsignedCharValue; - if (element_0.averageRssi == nil) { - listHolder_0->mList[i_0].averageRssi.SetNull(); - } else { - auto & nonNullValue_2 = listHolder_0->mList[i_0].averageRssi.SetNonNull(); - nonNullValue_2 = element_0.averageRssi.charValue; - } - if (element_0.lastRssi == nil) { - listHolder_0->mList[i_0].lastRssi.SetNull(); - } else { - auto & nonNullValue_2 = listHolder_0->mList[i_0].lastRssi.SetNonNull(); - nonNullValue_2 = element_0.lastRssi.charValue; - } - listHolder_0->mList[i_0].frameErrorRate = element_0.frameErrorRate.unsignedCharValue; - listHolder_0->mList[i_0].messageErrorRate = element_0.messageErrorRate.unsignedCharValue; - listHolder_0->mList[i_0].rxOnWhenIdle = element_0.rxOnWhenIdle.boolValue; - listHolder_0->mList[i_0].fullThreadDevice = element_0.fullThreadDevice.boolValue; - listHolder_0->mList[i_0].fullNetworkData = element_0.fullNetworkData.boolValue; - listHolder_0->mList[i_0].isChild = element_0.isChild.boolValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRouteTableListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::RouteTableList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[MTRThreadNetworkDiagnosticsClusterRouteTable class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (MTRThreadNetworkDiagnosticsClusterRouteTable *) value[i_0]; - listHolder_0->mList[i_0].extAddress = element_0.extAddress.unsignedLongLongValue; - listHolder_0->mList[i_0].rloc16 = element_0.rloc16.unsignedShortValue; - listHolder_0->mList[i_0].routerId = element_0.routerId.unsignedCharValue; - listHolder_0->mList[i_0].nextHop = element_0.nextHop.unsignedCharValue; - listHolder_0->mList[i_0].pathCost = element_0.pathCost.unsignedCharValue; - listHolder_0->mList[i_0].LQIIn = element_0.lqiIn.unsignedCharValue; - listHolder_0->mList[i_0].LQIOut = element_0.lqiOut.unsignedCharValue; - listHolder_0->mList[i_0].age = element_0.age.unsignedCharValue; - listHolder_0->mList[i_0].allocated = element_0.allocated.boolValue; - listHolder_0->mList[i_0].linkEstablished = element_0.linkEstablished.boolValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePartitionIdWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::PartitionId::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedIntValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeWeightingWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::Weighting::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedCharValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDataVersionWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::DataVersion::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedCharValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeStableDataVersionWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::StableDataVersion::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedCharValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeLeaderRouterIdWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::LeaderRouterId::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedCharValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDetachedRoleCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::DetachedRoleCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeChildRoleCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::ChildRoleCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRouterRoleCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::RouterRoleCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeLeaderRoleCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::LeaderRoleCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttachAttemptCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::AttachAttemptCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePartitionIdChangeCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::PartitionIdChangeCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBetterPartitionAttachAttemptCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::BetterPartitionAttachAttemptCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeParentChangeCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::ParentChangeCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTxTotalCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxTotalCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTxUnicastCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxUnicastCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTxBroadcastCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxBroadcastCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTxAckRequestedCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxAckRequestedCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTxAckedCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxAckedCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTxNoAckRequestedCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxNoAckRequestedCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTxDataCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxDataCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTxDataPollCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxDataPollCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTxBeaconCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxBeaconCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTxBeaconRequestCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxBeaconRequestCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTxOtherCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxOtherCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTxRetryCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxRetryCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTxDirectMaxRetryExpiryCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxDirectMaxRetryExpiryCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTxIndirectMaxRetryExpiryCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxIndirectMaxRetryExpiryCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTxErrCcaCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxErrCcaCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTxErrAbortCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxErrAbortCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTxErrBusyChannelCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::TxErrBusyChannelCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRxTotalCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxTotalCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRxUnicastCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxUnicastCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRxBroadcastCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxBroadcastCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRxDataCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxDataCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRxDataPollCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxDataPollCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRxBeaconCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxBeaconCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRxBeaconRequestCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxBeaconRequestCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRxOtherCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxOtherCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRxAddressFilteredCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxAddressFilteredCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRxDestAddrFilteredCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxDestAddrFilteredCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRxDuplicatedCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxDuplicatedCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRxErrNoFrameCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxErrNoFrameCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRxErrUnknownNeighborCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxErrUnknownNeighborCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRxErrInvalidSrcAddrCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxErrInvalidSrcAddrCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRxErrSecCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxErrSecCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRxErrFcsCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxErrFcsCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRxErrOtherCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::RxErrOtherCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeActiveTimestampWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::ActiveTimestamp::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedLongLongValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePendingTimestampWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::PendingTimestamp::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedLongLongValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDelayWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::Delay::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedIntValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSecurityPolicyWithValue:(MTRThreadNetworkDiagnosticsClusterSecurityPolicy * _Nullable)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::SecurityPolicy::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0.rotationTime = value.rotationTime.unsignedShortValue; - nonNullValue_0.flags = value.flags.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeChannelMaskWithValue:(NSData * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::ChannelMask::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = [self asByteSpan:value]; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeOperationalDatasetComponentsWithValue: - (MTRThreadNetworkDiagnosticsClusterOperationalDatasetComponents * _Nullable)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::OperationalDatasetComponents::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0.activeTimestampPresent = value.activeTimestampPresent.boolValue; - nonNullValue_0.pendingTimestampPresent = value.pendingTimestampPresent.boolValue; - nonNullValue_0.masterKeyPresent = value.masterKeyPresent.boolValue; - nonNullValue_0.networkNamePresent = value.networkNamePresent.boolValue; - nonNullValue_0.extendedPanIdPresent = value.extendedPanIdPresent.boolValue; - nonNullValue_0.meshLocalPrefixPresent = value.meshLocalPrefixPresent.boolValue; - nonNullValue_0.delayPresent = value.delayPresent.boolValue; - nonNullValue_0.panIdPresent = value.panIdPresent.boolValue; - nonNullValue_0.channelPresent = value.channelPresent.boolValue; - nonNullValue_0.pskcPresent = value.pskcPresent.boolValue; - nonNullValue_0.securityPolicyPresent = value.securityPolicyPresent.boolValue; - nonNullValue_0.channelMaskPresent = value.channelMaskPresent.boolValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeActiveNetworkFaultsListWithValue:(NSArray * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::ActiveNetworkFaultsList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] - = static_castmList[i_0])>>(element_0.unsignedCharValue); - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThreadNetworkDiagnostics::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestWiFiNetworkDiagnostics () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::WiFiNetworkDiagnosticsCluster * cppCluster; -@end - -@implementation MTRTestWiFiNetworkDiagnostics - -- (chip::Controller::WiFiNetworkDiagnosticsCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeBssidWithValue:(NSData * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WiFiNetworkDiagnostics::Attributes::Bssid::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = [self asByteSpan:value]; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSecurityTypeWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WiFiNetworkDiagnostics::Attributes::SecurityType::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = static_cast>(value.unsignedCharValue); - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeWiFiVersionWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WiFiNetworkDiagnostics::Attributes::WiFiVersion::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = static_cast>(value.unsignedCharValue); - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeChannelNumberWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WiFiNetworkDiagnostics::Attributes::ChannelNumber::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRssiWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WiFiNetworkDiagnostics::Attributes::Rssi::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.charValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBeaconLostCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WiFiNetworkDiagnostics::Attributes::BeaconLostCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBeaconRxCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WiFiNetworkDiagnostics::Attributes::BeaconRxCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePacketMulticastRxCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WiFiNetworkDiagnostics::Attributes::PacketMulticastRxCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePacketMulticastTxCountWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WiFiNetworkDiagnostics::Attributes::PacketMulticastTxCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePacketUnicastRxCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WiFiNetworkDiagnostics::Attributes::PacketUnicastRxCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePacketUnicastTxCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WiFiNetworkDiagnostics::Attributes::PacketUnicastTxCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentMaxRateWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WiFiNetworkDiagnostics::Attributes::CurrentMaxRate::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedLongLongValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeOverrunCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WiFiNetworkDiagnostics::Attributes::OverrunCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedLongLongValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WiFiNetworkDiagnostics::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WiFiNetworkDiagnostics::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WiFiNetworkDiagnostics::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WiFiNetworkDiagnostics::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WiFiNetworkDiagnostics::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestEthernetNetworkDiagnostics () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::EthernetNetworkDiagnosticsCluster * cppCluster; -@end - -@implementation MTRTestEthernetNetworkDiagnostics - -- (chip::Controller::EthernetNetworkDiagnosticsCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributePHYRateWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = EthernetNetworkDiagnostics::Attributes::PHYRate::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = static_cast>(value.unsignedCharValue); - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFullDuplexWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = EthernetNetworkDiagnostics::Attributes::FullDuplex::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.boolValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePacketRxCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = EthernetNetworkDiagnostics::Attributes::PacketRxCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedLongLongValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePacketTxCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = EthernetNetworkDiagnostics::Attributes::PacketTxCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedLongLongValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTxErrCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = EthernetNetworkDiagnostics::Attributes::TxErrCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedLongLongValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCollisionCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = EthernetNetworkDiagnostics::Attributes::CollisionCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedLongLongValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeOverrunCountWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = EthernetNetworkDiagnostics::Attributes::OverrunCount::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedLongLongValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCarrierDetectWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = EthernetNetworkDiagnostics::Attributes::CarrierDetect::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.boolValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTimeSinceResetWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = EthernetNetworkDiagnostics::Attributes::TimeSinceReset::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedLongLongValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = EthernetNetworkDiagnostics::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = EthernetNetworkDiagnostics::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = EthernetNetworkDiagnostics::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = EthernetNetworkDiagnostics::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = EthernetNetworkDiagnostics::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestBridgedDeviceBasic () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::BridgedDeviceBasicCluster * cppCluster; -@end - -@implementation MTRTestBridgedDeviceBasic - -- (chip::Controller::BridgedDeviceBasicCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeVendorNameWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedDeviceBasic::Attributes::VendorName::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeVendorIDWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedDeviceBasic::Attributes::VendorID::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedShortValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeProductNameWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedDeviceBasic::Attributes::ProductName::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeHardwareVersionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedDeviceBasic::Attributes::HardwareVersion::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeHardwareVersionStringWithValue:(NSString * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedDeviceBasic::Attributes::HardwareVersionString::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSoftwareVersionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedDeviceBasic::Attributes::SoftwareVersion::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSoftwareVersionStringWithValue:(NSString * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedDeviceBasic::Attributes::SoftwareVersionString::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeManufacturingDateWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedDeviceBasic::Attributes::ManufacturingDate::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePartNumberWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedDeviceBasic::Attributes::PartNumber::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeProductURLWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedDeviceBasic::Attributes::ProductURL::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeProductLabelWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedDeviceBasic::Attributes::ProductLabel::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSerialNumberWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedDeviceBasic::Attributes::SerialNumber::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeReachableWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedDeviceBasic::Attributes::Reachable::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.boolValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeUniqueIDWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedDeviceBasic::Attributes::UniqueID::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedDeviceBasic::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedDeviceBasic::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedDeviceBasic::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedDeviceBasic::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BridgedDeviceBasic::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestSwitch () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::SwitchCluster * cppCluster; -@end - -@implementation MTRTestSwitch - -- (chip::Controller::SwitchCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeNumberOfPositionsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Switch::Attributes::NumberOfPositions::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentPositionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Switch::Attributes::CurrentPosition::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMultiPressMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Switch::Attributes::MultiPressMax::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Switch::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Switch::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Switch::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Switch::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Switch::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestAdministratorCommissioning () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::AdministratorCommissioningCluster * cppCluster; -@end - -@implementation MTRTestAdministratorCommissioning - -- (chip::Controller::AdministratorCommissioningCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeWindowStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AdministratorCommissioning::Attributes::WindowStatus::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAdminFabricIndexWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AdministratorCommissioning::Attributes::AdminFabricIndex::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAdminVendorIdWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AdministratorCommissioning::Attributes::AdminVendorId::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AdministratorCommissioning::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AdministratorCommissioning::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AdministratorCommissioning::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AdministratorCommissioning::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AdministratorCommissioning::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestOperationalCredentials () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::OperationalCredentialsCluster * cppCluster; -@end - -@implementation MTRTestOperationalCredentials - -- (chip::Controller::OperationalCredentialsCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeNOCsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OperationalCredentials::Attributes::NOCs::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[MTROperationalCredentialsClusterNOCStruct class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (MTROperationalCredentialsClusterNOCStruct *) value[i_0]; - listHolder_0->mList[i_0].noc = [self asByteSpan:element_0.noc]; - if (element_0.icac == nil) { - listHolder_0->mList[i_0].icac.SetNull(); - } else { - auto & nonNullValue_2 = listHolder_0->mList[i_0].icac.SetNonNull(); - nonNullValue_2 = [self asByteSpan:element_0.icac]; - } - listHolder_0->mList[i_0].fabricIndex = element_0.fabricIndex.unsignedCharValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFabricsWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OperationalCredentials::Attributes::Fabrics::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[MTROperationalCredentialsClusterFabricDescriptor class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (MTROperationalCredentialsClusterFabricDescriptor *) value[i_0]; - listHolder_0->mList[i_0].rootPublicKey = [self asByteSpan:element_0.rootPublicKey]; - listHolder_0->mList[i_0].vendorId - = static_castmList[i_0].vendorId)>>( - element_0.vendorId.unsignedShortValue); - listHolder_0->mList[i_0].fabricId = element_0.fabricId.unsignedLongLongValue; - listHolder_0->mList[i_0].nodeId = element_0.nodeId.unsignedLongLongValue; - listHolder_0->mList[i_0].label = [self asCharSpan:element_0.label]; - listHolder_0->mList[i_0].fabricIndex = element_0.fabricIndex.unsignedCharValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSupportedFabricsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OperationalCredentials::Attributes::SupportedFabrics::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCommissionedFabricsWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OperationalCredentials::Attributes::CommissionedFabrics::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTrustedRootCertificatesWithValue:(NSArray * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OperationalCredentials::Attributes::TrustedRootCertificates::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSData class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSData *) value[i_0]; - listHolder_0->mList[i_0] = [self asByteSpan:element_0]; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentFabricIndexWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OperationalCredentials::Attributes::CurrentFabricIndex::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OperationalCredentials::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OperationalCredentials::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OperationalCredentials::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OperationalCredentials::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OperationalCredentials::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestGroupKeyManagement () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::GroupKeyManagementCluster * cppCluster; -@end - -@implementation MTRTestGroupKeyManagement - -- (chip::Controller::GroupKeyManagementCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeGroupTableWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GroupKeyManagement::Attributes::GroupTable::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[MTRGroupKeyManagementClusterGroupInfoMapStruct class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (MTRGroupKeyManagementClusterGroupInfoMapStruct *) value[i_0]; - listHolder_0->mList[i_0].groupId = element_0.groupId.unsignedShortValue; - { - using ListType_2 = std::remove_reference_tmList[i_0].endpoints)>; - using ListMemberType_2 = ListMemberTypeGetter::Type; - if (element_0.endpoints.count != 0) { - auto * listHolder_2 = new ListHolder(element_0.endpoints.count); - if (listHolder_2 == nullptr || listHolder_2->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_2); - for (size_t i_2 = 0; i_2 < element_0.endpoints.count; ++i_2) { - if (![element_0.endpoints[i_2] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_2 = (NSNumber *) element_0.endpoints[i_2]; - listHolder_2->mList[i_2] = element_2.unsignedShortValue; - } - listHolder_0->mList[i_0].endpoints = ListType_2(listHolder_2->mList, element_0.endpoints.count); - } else { - listHolder_0->mList[i_0].endpoints = ListType_2(); - } - } - if (element_0.groupName != nil) { - auto & definedValue_2 = listHolder_0->mList[i_0].groupName.Emplace(); - definedValue_2 = [self asCharSpan:element_0.groupName]; - } - listHolder_0->mList[i_0].fabricIndex = element_0.fabricIndex.unsignedCharValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMaxGroupsPerFabricWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GroupKeyManagement::Attributes::MaxGroupsPerFabric::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMaxGroupKeysPerFabricWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GroupKeyManagement::Attributes::MaxGroupKeysPerFabric::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GroupKeyManagement::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GroupKeyManagement::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GroupKeyManagement::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GroupKeyManagement::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = GroupKeyManagement::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestFixedLabel () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::FixedLabelCluster * cppCluster; -@end - -@implementation MTRTestFixedLabel - -- (chip::Controller::FixedLabelCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeLabelListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FixedLabel::Attributes::LabelList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[MTRFixedLabelClusterLabelStruct class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (MTRFixedLabelClusterLabelStruct *) value[i_0]; - listHolder_0->mList[i_0].label = [self asCharSpan:element_0.label]; - listHolder_0->mList[i_0].value = [self asCharSpan:element_0.value]; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FixedLabel::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FixedLabel::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FixedLabel::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FixedLabel::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FixedLabel::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestUserLabel () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::UserLabelCluster * cppCluster; -@end - -@implementation MTRTestUserLabel - -- (chip::Controller::UserLabelCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = UserLabel::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = UserLabel::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = UserLabel::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = UserLabel::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = UserLabel::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestBooleanState () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::BooleanStateCluster * cppCluster; -@end - -@implementation MTRTestBooleanState - -- (chip::Controller::BooleanStateCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeStateValueWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BooleanState::Attributes::StateValue::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.boolValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BooleanState::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BooleanState::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BooleanState::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BooleanState::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BooleanState::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestModeSelect () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::ModeSelectCluster * cppCluster; -@end - -@implementation MTRTestModeSelect - -- (chip::Controller::ModeSelectCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeDescriptionWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ModeSelect::Attributes::Description::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeStandardNamespaceWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ModeSelect::Attributes::StandardNamespace::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSupportedModesWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ModeSelect::Attributes::SupportedModes::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[MTRModeSelectClusterModeOptionStruct class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (MTRModeSelectClusterModeOptionStruct *) value[i_0]; - listHolder_0->mList[i_0].label = [self asCharSpan:element_0.label]; - listHolder_0->mList[i_0].mode = element_0.mode.unsignedCharValue; - { - using ListType_2 = std::remove_reference_tmList[i_0].semanticTags)>; - using ListMemberType_2 = ListMemberTypeGetter::Type; - if (element_0.semanticTags.count != 0) { - auto * listHolder_2 = new ListHolder(element_0.semanticTags.count); - if (listHolder_2 == nullptr || listHolder_2->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_2); - for (size_t i_2 = 0; i_2 < element_0.semanticTags.count; ++i_2) { - if (![element_0.semanticTags[i_2] isKindOfClass:[MTRModeSelectClusterSemanticTag class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_2 = (MTRModeSelectClusterSemanticTag *) element_0.semanticTags[i_2]; - listHolder_2->mList[i_2].mfgCode = element_2.mfgCode.unsignedShortValue; - listHolder_2->mList[i_2].value = element_2.value.unsignedShortValue; - } - listHolder_0->mList[i_0].semanticTags - = ListType_2(listHolder_2->mList, element_0.semanticTags.count); - } else { - listHolder_0->mList[i_0].semanticTags = ListType_2(); - } - } - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentModeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ModeSelect::Attributes::CurrentMode::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ModeSelect::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ModeSelect::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ModeSelect::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ModeSelect::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ModeSelect::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestDoorLock () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::DoorLockCluster * cppCluster; -@end - -@implementation MTRTestDoorLock - -- (chip::Controller::DoorLockCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeLockStateWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::LockState::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = static_cast>(value.unsignedCharValue); - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeLockTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::LockType::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedCharValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeActuatorEnabledWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::ActuatorEnabled::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.boolValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDoorStateWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::DoorState::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = static_cast>(value.unsignedCharValue); - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeNumberOfTotalUsersSupportedWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::NumberOfTotalUsersSupported::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeNumberOfPINUsersSupportedWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::NumberOfPINUsersSupported::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeNumberOfRFIDUsersSupportedWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::NumberOfRFIDUsersSupported::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeNumberOfWeekDaySchedulesSupportedPerUserWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::NumberOfWeekDaySchedulesSupportedPerUser::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeNumberOfYearDaySchedulesSupportedPerUserWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::NumberOfYearDaySchedulesSupportedPerUser::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeNumberOfHolidaySchedulesSupportedWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::NumberOfHolidaySchedulesSupported::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMaxPINCodeLengthWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::MaxPINCodeLength::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMinPINCodeLengthWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::MinPINCodeLength::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMaxRFIDCodeLengthWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::MaxRFIDCodeLength::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMinRFIDCodeLengthWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::MinRFIDCodeLength::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCredentialRulesSupportWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::CredentialRulesSupport::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedCharValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeNumberOfCredentialsSupportedPerUserWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::NumberOfCredentialsSupportedPerUser::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSupportedOperatingModesWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::SupportedOperatingModes::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedShortValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDefaultConfigurationRegisterWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::DefaultConfigurationRegister::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedShortValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = DoorLock::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestWindowCovering () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::WindowCoveringCluster * cppCluster; -@end - -@implementation MTRTestWindowCovering - -- (chip::Controller::WindowCoveringCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::Type::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedCharValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePhysicalClosedLimitLiftWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::PhysicalClosedLimitLift::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePhysicalClosedLimitTiltWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::PhysicalClosedLimitTilt::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentPositionLiftWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::CurrentPositionLift::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentPositionTiltWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::CurrentPositionTilt::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeNumberOfActuationsLiftWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::NumberOfActuationsLift::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeNumberOfActuationsTiltWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::NumberOfActuationsTilt::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeConfigStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::ConfigStatus::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedCharValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentPositionLiftPercentageWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::CurrentPositionLiftPercentage::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedCharValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentPositionTiltPercentageWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::CurrentPositionTiltPercentage::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedCharValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeOperationalStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::OperationalStatus::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedCharValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTargetPositionLiftPercent100thsWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::TargetPositionLiftPercent100ths::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTargetPositionTiltPercent100thsWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::TargetPositionTiltPercent100ths::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeEndProductTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::EndProductType::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedCharValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentPositionLiftPercent100thsWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::CurrentPositionLiftPercent100ths::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentPositionTiltPercent100thsWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::CurrentPositionTiltPercent100ths::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeInstalledOpenLimitLiftWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::InstalledOpenLimitLift::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeInstalledClosedLimitLiftWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::InstalledClosedLimitLift::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeInstalledOpenLimitTiltWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::InstalledOpenLimitTilt::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeInstalledClosedLimitTiltWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::InstalledClosedLimitTilt::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSafetyStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::SafetyStatus::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedShortValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WindowCovering::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestBarrierControl () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::BarrierControlCluster * cppCluster; -@end - -@implementation MTRTestBarrierControl - -- (chip::Controller::BarrierControlCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeBarrierMovingStateWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BarrierControl::Attributes::BarrierMovingState::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBarrierSafetyStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BarrierControl::Attributes::BarrierSafetyStatus::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBarrierCapabilitiesWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BarrierControl::Attributes::BarrierCapabilities::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeBarrierPositionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BarrierControl::Attributes::BarrierPosition::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BarrierControl::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BarrierControl::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BarrierControl::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BarrierControl::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = BarrierControl::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestPumpConfigurationAndControl () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::PumpConfigurationAndControlCluster * cppCluster; -@end - -@implementation MTRTestPumpConfigurationAndControl - -- (chip::Controller::PumpConfigurationAndControlCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeMaxPressureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::MaxPressure::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.shortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMaxSpeedWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::MaxSpeed::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMaxFlowWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::MaxFlow::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMinConstPressureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::MinConstPressure::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.shortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMaxConstPressureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::MaxConstPressure::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.shortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMinCompPressureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::MinCompPressure::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.shortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMaxCompPressureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::MaxCompPressure::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.shortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMinConstSpeedWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::MinConstSpeed::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMaxConstSpeedWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::MaxConstSpeed::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMinConstFlowWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::MinConstFlow::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMaxConstFlowWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::MaxConstFlow::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMinConstTempWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::MinConstTemp::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.shortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMaxConstTempWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::MaxConstTemp::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.shortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePumpStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::PumpStatus::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedShortValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeEffectiveOperationModeWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::EffectiveOperationMode::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedCharValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeEffectiveControlModeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::EffectiveControlMode::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedCharValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCapacityWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::Capacity::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.shortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSpeedWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::Speed::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePowerWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::Power::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedIntValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PumpConfigurationAndControl::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestThermostat () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::ThermostatCluster * cppCluster; -@end - -@implementation MTRTestThermostat - -- (chip::Controller::ThermostatCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeLocalTemperatureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::LocalTemperature::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.shortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeOutdoorTemperatureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::OutdoorTemperature::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.shortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeOccupancyWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::Occupancy::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAbsMinHeatSetpointLimitWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::AbsMinHeatSetpointLimit::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAbsMaxHeatSetpointLimitWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::AbsMaxHeatSetpointLimit::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAbsMinCoolSetpointLimitWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::AbsMinCoolSetpointLimit::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAbsMaxCoolSetpointLimitWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::AbsMaxCoolSetpointLimit::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePICoolingDemandWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::PICoolingDemand::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePIHeatingDemandWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::PIHeatingDemand::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeThermostatRunningModeWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::ThermostatRunningMode::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeStartOfWeekWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::StartOfWeek::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeNumberOfWeeklyTransitionsWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::NumberOfWeeklyTransitions::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeNumberOfDailyTransitionsWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::NumberOfDailyTransitions::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeThermostatRunningStateWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::ThermostatRunningState::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSetpointChangeSourceWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::SetpointChangeSource::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSetpointChangeAmountWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::SetpointChangeAmount::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.shortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSetpointChangeSourceTimestampWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::SetpointChangeSourceTimestamp::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeOccupiedSetbackMinWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::OccupiedSetbackMin::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedCharValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeOccupiedSetbackMaxWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::OccupiedSetbackMax::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedCharValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeUnoccupiedSetbackMinWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::UnoccupiedSetbackMin::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedCharValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeUnoccupiedSetbackMaxWithValue:(NSNumber * _Nullable)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::UnoccupiedSetbackMax::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedCharValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeACCoilTemperatureWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::ACCoilTemperature::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.shortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Thermostat::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestFanControl () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::FanControlCluster * cppCluster; -@end - -@implementation MTRTestFanControl - -- (chip::Controller::FanControlCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributePercentCurrentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FanControl::Attributes::PercentCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSpeedMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FanControl::Attributes::SpeedMax::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSpeedCurrentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FanControl::Attributes::SpeedCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRockSupportWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FanControl::Attributes::RockSupport::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeWindSupportWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FanControl::Attributes::WindSupport::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FanControl::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FanControl::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FanControl::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FanControl::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FanControl::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestThermostatUserInterfaceConfiguration () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::ThermostatUserInterfaceConfigurationCluster * cppCluster; -@end - -@implementation MTRTestThermostatUserInterfaceConfiguration - -- (chip::Controller::ThermostatUserInterfaceConfigurationCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThermostatUserInterfaceConfiguration::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThermostatUserInterfaceConfiguration::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThermostatUserInterfaceConfiguration::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThermostatUserInterfaceConfiguration::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ThermostatUserInterfaceConfiguration::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestColorControl () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::ColorControlCluster * cppCluster; -@end - -@implementation MTRTestColorControl - -- (chip::Controller::ColorControlCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeCurrentHueWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::CurrentHue::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentSaturationWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::CurrentSaturation::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRemainingTimeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::RemainingTime::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentXWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::CurrentX::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentYWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::CurrentY::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDriftCompensationWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::DriftCompensation::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCompensationTextWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::CompensationText::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeColorTemperatureWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::ColorTemperature::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeColorModeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::ColorMode::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeNumberOfPrimariesWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::NumberOfPrimaries::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedCharValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePrimary1XWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::Primary1X::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePrimary1YWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::Primary1Y::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePrimary1IntensityWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::Primary1Intensity::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedCharValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePrimary2XWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::Primary2X::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePrimary2YWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::Primary2Y::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePrimary2IntensityWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::Primary2Intensity::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedCharValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePrimary3XWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::Primary3X::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePrimary3YWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::Primary3Y::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePrimary3IntensityWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::Primary3Intensity::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedCharValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePrimary4XWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::Primary4X::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePrimary4YWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::Primary4Y::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePrimary4IntensityWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::Primary4Intensity::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedCharValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePrimary5XWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::Primary5X::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePrimary5YWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::Primary5Y::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePrimary5IntensityWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::Primary5Intensity::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedCharValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePrimary6XWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::Primary6X::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePrimary6YWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::Primary6Y::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePrimary6IntensityWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::Primary6Intensity::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedCharValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeEnhancedCurrentHueWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::EnhancedCurrentHue::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeEnhancedColorModeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::EnhancedColorMode::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeColorLoopActiveWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::ColorLoopActive::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeColorLoopDirectionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::ColorLoopDirection::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeColorLoopTimeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::ColorLoopTime::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeColorLoopStartEnhancedHueWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::ColorLoopStartEnhancedHue::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeColorLoopStoredEnhancedHueWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::ColorLoopStoredEnhancedHue::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeColorCapabilitiesWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::ColorCapabilities::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeColorTempPhysicalMinMiredsWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::ColorTempPhysicalMinMireds::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeColorTempPhysicalMaxMiredsWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::ColorTempPhysicalMaxMireds::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCoupleColorTempToLevelMinMiredsWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::CoupleColorTempToLevelMinMireds::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ColorControl::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestIlluminanceMeasurement () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::IlluminanceMeasurementCluster * cppCluster; -@end - -@implementation MTRTestIlluminanceMeasurement - -- (chip::Controller::IlluminanceMeasurementCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = IlluminanceMeasurement::Attributes::MeasuredValue::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMinMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = IlluminanceMeasurement::Attributes::MinMeasuredValue::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMaxMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = IlluminanceMeasurement::Attributes::MaxMeasuredValue::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeToleranceWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = IlluminanceMeasurement::Attributes::Tolerance::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeLightSensorTypeWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = IlluminanceMeasurement::Attributes::LightSensorType::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedCharValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = IlluminanceMeasurement::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = IlluminanceMeasurement::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = IlluminanceMeasurement::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = IlluminanceMeasurement::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = IlluminanceMeasurement::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestTemperatureMeasurement () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::TemperatureMeasurementCluster * cppCluster; -@end - -@implementation MTRTestTemperatureMeasurement - -- (chip::Controller::TemperatureMeasurementCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TemperatureMeasurement::Attributes::MeasuredValue::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.shortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMinMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TemperatureMeasurement::Attributes::MinMeasuredValue::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.shortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMaxMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TemperatureMeasurement::Attributes::MaxMeasuredValue::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.shortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeToleranceWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TemperatureMeasurement::Attributes::Tolerance::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TemperatureMeasurement::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TemperatureMeasurement::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TemperatureMeasurement::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TemperatureMeasurement::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TemperatureMeasurement::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestPressureMeasurement () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::PressureMeasurementCluster * cppCluster; -@end - -@implementation MTRTestPressureMeasurement - -- (chip::Controller::PressureMeasurementCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PressureMeasurement::Attributes::MeasuredValue::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.shortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMinMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PressureMeasurement::Attributes::MinMeasuredValue::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.shortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMaxMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PressureMeasurement::Attributes::MaxMeasuredValue::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.shortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeToleranceWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PressureMeasurement::Attributes::Tolerance::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeScaledValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PressureMeasurement::Attributes::ScaledValue::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.shortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMinScaledValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PressureMeasurement::Attributes::MinScaledValue::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.shortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMaxScaledValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PressureMeasurement::Attributes::MaxScaledValue::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.shortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeScaledToleranceWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PressureMeasurement::Attributes::ScaledTolerance::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeScaleWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PressureMeasurement::Attributes::Scale::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.charValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PressureMeasurement::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PressureMeasurement::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PressureMeasurement::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PressureMeasurement::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = PressureMeasurement::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestFlowMeasurement () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::FlowMeasurementCluster * cppCluster; -@end - -@implementation MTRTestFlowMeasurement - -- (chip::Controller::FlowMeasurementCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FlowMeasurement::Attributes::MeasuredValue::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMinMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FlowMeasurement::Attributes::MinMeasuredValue::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMaxMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FlowMeasurement::Attributes::MaxMeasuredValue::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeToleranceWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FlowMeasurement::Attributes::Tolerance::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FlowMeasurement::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FlowMeasurement::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FlowMeasurement::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FlowMeasurement::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = FlowMeasurement::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestRelativeHumidityMeasurement () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::RelativeHumidityMeasurementCluster * cppCluster; -@end - -@implementation MTRTestRelativeHumidityMeasurement - -- (chip::Controller::RelativeHumidityMeasurementCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = RelativeHumidityMeasurement::Attributes::MeasuredValue::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMinMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = RelativeHumidityMeasurement::Attributes::MinMeasuredValue::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMaxMeasuredValueWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = RelativeHumidityMeasurement::Attributes::MaxMeasuredValue::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedShortValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeToleranceWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = RelativeHumidityMeasurement::Attributes::Tolerance::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = RelativeHumidityMeasurement::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = RelativeHumidityMeasurement::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = RelativeHumidityMeasurement::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = RelativeHumidityMeasurement::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = RelativeHumidityMeasurement::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestOccupancySensing () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::OccupancySensingCluster * cppCluster; -@end - -@implementation MTRTestOccupancySensing - -- (chip::Controller::OccupancySensingCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeOccupancyWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OccupancySensing::Attributes::Occupancy::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeOccupancySensorTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OccupancySensing::Attributes::OccupancySensorType::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeOccupancySensorTypeBitmapWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OccupancySensing::Attributes::OccupancySensorTypeBitmap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OccupancySensing::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OccupancySensing::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OccupancySensing::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OccupancySensing::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = OccupancySensing::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestWakeOnLan () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::WakeOnLanCluster * cppCluster; -@end - -@implementation MTRTestWakeOnLan - -- (chip::Controller::WakeOnLanCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeMACAddressWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WakeOnLan::Attributes::MACAddress::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WakeOnLan::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WakeOnLan::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WakeOnLan::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WakeOnLan::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = WakeOnLan::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestChannel () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::ChannelCluster * cppCluster; -@end - -@implementation MTRTestChannel - -- (chip::Controller::ChannelCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeChannelListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Channel::Attributes::ChannelList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[MTRChannelClusterChannelInfo class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (MTRChannelClusterChannelInfo *) value[i_0]; - listHolder_0->mList[i_0].majorNumber = element_0.majorNumber.unsignedShortValue; - listHolder_0->mList[i_0].minorNumber = element_0.minorNumber.unsignedShortValue; - if (element_0.name != nil) { - auto & definedValue_2 = listHolder_0->mList[i_0].name.Emplace(); - definedValue_2 = [self asCharSpan:element_0.name]; - } - if (element_0.callSign != nil) { - auto & definedValue_2 = listHolder_0->mList[i_0].callSign.Emplace(); - definedValue_2 = [self asCharSpan:element_0.callSign]; - } - if (element_0.affiliateCallSign != nil) { - auto & definedValue_2 = listHolder_0->mList[i_0].affiliateCallSign.Emplace(); - definedValue_2 = [self asCharSpan:element_0.affiliateCallSign]; - } - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeLineupWithValue:(MTRChannelClusterLineupInfo * _Nullable)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Channel::Attributes::Lineup::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0.operatorName = [self asCharSpan:value.operatorName]; - if (value.lineupName != nil) { - auto & definedValue_2 = nonNullValue_0.lineupName.Emplace(); - definedValue_2 = [self asCharSpan:value.lineupName]; - } - if (value.postalCode != nil) { - auto & definedValue_2 = nonNullValue_0.postalCode.Emplace(); - definedValue_2 = [self asCharSpan:value.postalCode]; - } - nonNullValue_0.lineupInfoType = static_cast>( - value.lineupInfoType.unsignedCharValue); - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentChannelWithValue:(MTRChannelClusterChannelInfo * _Nullable)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Channel::Attributes::CurrentChannel::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0.majorNumber = value.majorNumber.unsignedShortValue; - nonNullValue_0.minorNumber = value.minorNumber.unsignedShortValue; - if (value.name != nil) { - auto & definedValue_2 = nonNullValue_0.name.Emplace(); - definedValue_2 = [self asCharSpan:value.name]; - } - if (value.callSign != nil) { - auto & definedValue_2 = nonNullValue_0.callSign.Emplace(); - definedValue_2 = [self asCharSpan:value.callSign]; - } - if (value.affiliateCallSign != nil) { - auto & definedValue_2 = nonNullValue_0.affiliateCallSign.Emplace(); - definedValue_2 = [self asCharSpan:value.affiliateCallSign]; - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Channel::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Channel::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Channel::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Channel::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = Channel::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestTargetNavigator () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::TargetNavigatorCluster * cppCluster; -@end - -@implementation MTRTestTargetNavigator - -- (chip::Controller::TargetNavigatorCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeTargetListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TargetNavigator::Attributes::TargetList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[MTRTargetNavigatorClusterTargetInfo class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (MTRTargetNavigatorClusterTargetInfo *) value[i_0]; - listHolder_0->mList[i_0].identifier = element_0.identifier.unsignedCharValue; - listHolder_0->mList[i_0].name = [self asCharSpan:element_0.name]; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentTargetWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TargetNavigator::Attributes::CurrentTarget::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TargetNavigator::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TargetNavigator::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TargetNavigator::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TargetNavigator::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TargetNavigator::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestMediaPlayback () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::MediaPlaybackCluster * cppCluster; -@end - -@implementation MTRTestMediaPlayback - -- (chip::Controller::MediaPlaybackCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeCurrentStateWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = MediaPlayback::Attributes::CurrentState::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedCharValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeStartTimeWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = MediaPlayback::Attributes::StartTime::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedLongLongValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDurationWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = MediaPlayback::Attributes::Duration::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedLongLongValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSampledPositionWithValue:(MTRMediaPlaybackClusterPlaybackPosition * _Nullable)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = MediaPlayback::Attributes::SampledPosition::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0.updatedAt = value.updatedAt.unsignedLongLongValue; - if (value.position == nil) { - nonNullValue_0.position.SetNull(); - } else { - auto & nonNullValue_2 = nonNullValue_0.position.SetNonNull(); - nonNullValue_2 = value.position.unsignedLongLongValue; - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePlaybackSpeedWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = MediaPlayback::Attributes::PlaybackSpeed::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.floatValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSeekRangeEndWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = MediaPlayback::Attributes::SeekRangeEnd::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedLongLongValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeSeekRangeStartWithValue:(NSNumber * _Nullable)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = MediaPlayback::Attributes::SeekRangeStart::TypeInfo; - TypeInfo::Type cppValue; - if (value == nil) { - cppValue.SetNull(); - } else { - auto & nonNullValue_0 = cppValue.SetNonNull(); - nonNullValue_0 = value.unsignedLongLongValue; - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = MediaPlayback::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = MediaPlayback::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = MediaPlayback::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = MediaPlayback::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = MediaPlayback::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestMediaInput () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::MediaInputCluster * cppCluster; -@end - -@implementation MTRTestMediaInput - -- (chip::Controller::MediaInputCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeInputListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = MediaInput::Attributes::InputList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[MTRMediaInputClusterInputInfo class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (MTRMediaInputClusterInputInfo *) value[i_0]; - listHolder_0->mList[i_0].index = element_0.index.unsignedCharValue; - listHolder_0->mList[i_0].inputType - = static_castmList[i_0].inputType)>>( - element_0.inputType.unsignedCharValue); - listHolder_0->mList[i_0].name = [self asCharSpan:element_0.name]; - listHolder_0->mList[i_0].description = [self asCharSpan:element_0.descriptionString]; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentInputWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = MediaInput::Attributes::CurrentInput::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = MediaInput::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = MediaInput::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = MediaInput::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = MediaInput::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = MediaInput::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestLowPower () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::LowPowerCluster * cppCluster; -@end - -@implementation MTRTestLowPower - -- (chip::Controller::LowPowerCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LowPower::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LowPower::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LowPower::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LowPower::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = LowPower::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestKeypadInput () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::KeypadInputCluster * cppCluster; -@end - -@implementation MTRTestKeypadInput - -- (chip::Controller::KeypadInputCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = KeypadInput::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = KeypadInput::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = KeypadInput::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = KeypadInput::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = KeypadInput::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestContentLauncher () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::ContentLauncherCluster * cppCluster; -@end - -@implementation MTRTestContentLauncher - -- (chip::Controller::ContentLauncherCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeAcceptHeaderWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ContentLauncher::Attributes::AcceptHeader::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSString class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSString *) value[i_0]; - listHolder_0->mList[i_0] = [self asCharSpan:element_0]; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ContentLauncher::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ContentLauncher::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ContentLauncher::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ContentLauncher::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ContentLauncher::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestAudioOutput () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::AudioOutputCluster * cppCluster; -@end - -@implementation MTRTestAudioOutput - -- (chip::Controller::AudioOutputCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeOutputListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AudioOutput::Attributes::OutputList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[MTRAudioOutputClusterOutputInfo class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (MTRAudioOutputClusterOutputInfo *) value[i_0]; - listHolder_0->mList[i_0].index = element_0.index.unsignedCharValue; - listHolder_0->mList[i_0].outputType - = static_castmList[i_0].outputType)>>( - element_0.outputType.unsignedCharValue); - listHolder_0->mList[i_0].name = [self asCharSpan:element_0.name]; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentOutputWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AudioOutput::Attributes::CurrentOutput::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedCharValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AudioOutput::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AudioOutput::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AudioOutput::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AudioOutput::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AudioOutput::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestApplicationLauncher () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::ApplicationLauncherCluster * cppCluster; -@end - -@implementation MTRTestApplicationLauncher - -- (chip::Controller::ApplicationLauncherCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeCatalogListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ApplicationLauncher::Attributes::CatalogList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedShortValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ApplicationLauncher::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ApplicationLauncher::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ApplicationLauncher::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ApplicationLauncher::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ApplicationLauncher::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestApplicationBasic () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::ApplicationBasicCluster * cppCluster; -@end - -@implementation MTRTestApplicationBasic - -- (chip::Controller::ApplicationBasicCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeVendorNameWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ApplicationBasic::Attributes::VendorName::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeVendorIDWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ApplicationBasic::Attributes::VendorID::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeApplicationNameWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ApplicationBasic::Attributes::ApplicationName::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeProductIDWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ApplicationBasic::Attributes::ProductID::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeApplicationWithValue:(MTRApplicationBasicClusterApplicationBasicApplication * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ApplicationBasic::Attributes::Application::TypeInfo; - TypeInfo::Type cppValue; - cppValue.catalogVendorId = value.catalogVendorId.unsignedShortValue; - cppValue.applicationId = [self asCharSpan:value.applicationId]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeStatusWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ApplicationBasic::Attributes::Status::TypeInfo; - TypeInfo::Type cppValue; - cppValue = static_cast>(value.unsignedCharValue); - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeApplicationVersionWithValue:(NSString * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ApplicationBasic::Attributes::ApplicationVersion::TypeInfo; - TypeInfo::Type cppValue; - cppValue = [self asCharSpan:value]; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAllowedVendorListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ApplicationBasic::Attributes::AllowedVendorList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = static_castmList[i_0])>>( - element_0.unsignedShortValue); - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ApplicationBasic::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ApplicationBasic::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ApplicationBasic::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ApplicationBasic::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ApplicationBasic::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestAccountLogin () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::AccountLoginCluster * cppCluster; -@end - -@implementation MTRTestAccountLogin - -- (chip::Controller::AccountLoginCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AccountLogin::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AccountLogin::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AccountLogin::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AccountLogin::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = AccountLogin::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestElectricalMeasurement () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::ElectricalMeasurementCluster * cppCluster; -@end - -@implementation MTRTestElectricalMeasurement - -- (chip::Controller::ElectricalMeasurementCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeMeasurementTypeWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::MeasurementType::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDcVoltageWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::DcVoltage::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDcVoltageMinWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::DcVoltageMin::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDcVoltageMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::DcVoltageMax::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDcCurrentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::DcCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDcCurrentMinWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::DcCurrentMin::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDcCurrentMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::DcCurrentMax::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDcPowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::DcPower::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDcPowerMinWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::DcPowerMin::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDcPowerMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::DcPowerMax::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDcVoltageMultiplierWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::DcVoltageMultiplier::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDcVoltageDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::DcVoltageDivisor::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDcCurrentMultiplierWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::DcCurrentMultiplier::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDcCurrentDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::DcCurrentDivisor::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDcPowerMultiplierWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::DcPowerMultiplier::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeDcPowerDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::DcPowerDivisor::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcFrequencyWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AcFrequency::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcFrequencyMinWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AcFrequencyMin::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcFrequencyMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AcFrequencyMax::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeNeutralCurrentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::NeutralCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTotalActivePowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::TotalActivePower::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.intValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTotalReactivePowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::TotalReactivePower::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.intValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeTotalApparentPowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::TotalApparentPower::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMeasured1stHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::Measured1stHarmonicCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMeasured3rdHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::Measured3rdHarmonicCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMeasured5thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::Measured5thHarmonicCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMeasured7thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::Measured7thHarmonicCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMeasured9thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::Measured9thHarmonicCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMeasured11thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::Measured11thHarmonicCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMeasuredPhase1stHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::MeasuredPhase1stHarmonicCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMeasuredPhase3rdHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::MeasuredPhase3rdHarmonicCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMeasuredPhase5thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::MeasuredPhase5thHarmonicCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMeasuredPhase7thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::MeasuredPhase7thHarmonicCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMeasuredPhase9thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::MeasuredPhase9thHarmonicCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeMeasuredPhase11thHarmonicCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::MeasuredPhase11thHarmonicCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcFrequencyMultiplierWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AcFrequencyMultiplier::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcFrequencyDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AcFrequencyDivisor::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePowerMultiplierWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::PowerMultiplier::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePowerDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::PowerDivisor::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeHarmonicCurrentMultiplierWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::HarmonicCurrentMultiplier::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.charValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePhaseHarmonicCurrentMultiplierWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::PhaseHarmonicCurrentMultiplier::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.charValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeInstantaneousVoltageWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::InstantaneousVoltage::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeInstantaneousLineCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::InstantaneousLineCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeInstantaneousActiveCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::InstantaneousActiveCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeInstantaneousReactiveCurrentWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::InstantaneousReactiveCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeInstantaneousPowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::InstantaneousPower::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsVoltageWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltage::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsVoltageMinWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageMin::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsVoltageMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageMax::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsCurrentWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrent::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsCurrentMinWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentMin::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsCurrentMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentMax::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeActivePowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::ActivePower::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeActivePowerMinWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerMin::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeActivePowerMaxWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerMax::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeReactivePowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::ReactivePower::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeApparentPowerWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::ApparentPower::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePowerFactorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::PowerFactor::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.charValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcVoltageMultiplierWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AcVoltageMultiplier::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcVoltageDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AcVoltageDivisor::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcCurrentMultiplierWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AcCurrentMultiplier::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcCurrentDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AcCurrentDivisor::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcPowerMultiplierWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AcPowerMultiplier::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcPowerDivisorWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AcPowerDivisor::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeVoltageOverloadWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::VoltageOverload::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeCurrentOverloadWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::CurrentOverload::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcVoltageOverloadWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AcVoltageOverload::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcCurrentOverloadWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AcCurrentOverload::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcActivePowerOverloadWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AcActivePowerOverload::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcReactivePowerOverloadWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AcReactivePowerOverload::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAverageRmsOverVoltageWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsOverVoltage::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAverageRmsUnderVoltageWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsUnderVoltage::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsExtremeOverVoltageWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsExtremeOverVoltage::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsExtremeUnderVoltageWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsExtremeUnderVoltage::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsVoltageSagWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageSag::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsVoltageSwellWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageSwell::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeLineCurrentPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::LineCurrentPhaseB::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeActiveCurrentPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::ActiveCurrentPhaseB::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeReactiveCurrentPhaseBWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::ReactiveCurrentPhaseB::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsVoltagePhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltagePhaseB::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsVoltageMinPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageMinPhaseB::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsVoltageMaxPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageMaxPhaseB::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsCurrentPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentPhaseB::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsCurrentMinPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentMinPhaseB::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsCurrentMaxPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentMaxPhaseB::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeActivePowerPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerPhaseB::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeActivePowerMinPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerMinPhaseB::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeActivePowerMaxPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerMaxPhaseB::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeReactivePowerPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::ReactivePowerPhaseB::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeApparentPowerPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::ApparentPowerPhaseB::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePowerFactorPhaseBWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::PowerFactorPhaseB::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.charValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAverageRmsVoltageMeasurementPeriodPhaseBWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsVoltageMeasurementPeriodPhaseB::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAverageRmsOverVoltageCounterPhaseBWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsOverVoltageCounterPhaseB::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAverageRmsUnderVoltageCounterPhaseBWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsUnderVoltageCounterPhaseB::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsExtremeOverVoltagePeriodPhaseBWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsExtremeOverVoltagePeriodPhaseB::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsExtremeUnderVoltagePeriodPhaseBWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsExtremeUnderVoltagePeriodPhaseB::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsVoltageSagPeriodPhaseBWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageSagPeriodPhaseB::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsVoltageSwellPeriodPhaseBWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageSwellPeriodPhaseB::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeLineCurrentPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::LineCurrentPhaseC::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeActiveCurrentPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::ActiveCurrentPhaseC::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeReactiveCurrentPhaseCWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::ReactiveCurrentPhaseC::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsVoltagePhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltagePhaseC::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsVoltageMinPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageMinPhaseC::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsVoltageMaxPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageMaxPhaseC::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsCurrentPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentPhaseC::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsCurrentMinPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentMinPhaseC::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsCurrentMaxPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsCurrentMaxPhaseC::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeActivePowerPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerPhaseC::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeActivePowerMinPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerMinPhaseC::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeActivePowerMaxPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::ActivePowerMaxPhaseC::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeReactivePowerPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::ReactivePowerPhaseC::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.shortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeApparentPowerPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::ApparentPowerPhaseC::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributePowerFactorPhaseCWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::PowerFactorPhaseC::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.charValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAverageRmsVoltageMeasurementPeriodPhaseCWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsVoltageMeasurementPeriodPhaseC::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAverageRmsOverVoltageCounterPhaseCWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsOverVoltageCounterPhaseC::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAverageRmsUnderVoltageCounterPhaseCWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AverageRmsUnderVoltageCounterPhaseC::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsExtremeOverVoltagePeriodPhaseCWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsExtremeOverVoltagePeriodPhaseC::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsExtremeUnderVoltagePeriodPhaseCWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsExtremeUnderVoltagePeriodPhaseC::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsVoltageSagPeriodPhaseCWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageSagPeriodPhaseC::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeRmsVoltageSwellPeriodPhaseCWithValue:(NSNumber * _Nonnull)value - completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::RmsVoltageSwellPeriodPhaseC::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = ElectricalMeasurement::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end - -@interface MTRTestTestCluster () -// Must only touch cppCluster on the Matter queue. -@property (readonly) chip::Controller::TestClusterCluster * cppCluster; -@end - -@implementation MTRTestTestCluster - -- (chip::Controller::TestClusterCluster **)cppClusterSlot -{ - return &_cppCluster; -} - -- (void)writeAttributeGeneratedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TestCluster::Attributes::GeneratedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAcceptedCommandListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TestCluster::Attributes::AcceptedCommandList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeAttributeListWithValue:(NSArray * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TestCluster::Attributes::AttributeList::TypeInfo; - TypeInfo::Type cppValue; - { - using ListType_0 = std::remove_reference_t; - using ListMemberType_0 = ListMemberTypeGetter::Type; - if (value.count != 0) { - auto * listHolder_0 = new ListHolder(value.count); - if (listHolder_0 == nullptr || listHolder_0->mList == nullptr) { - return CHIP_ERROR_INVALID_ARGUMENT; - } - listFreer.add(listHolder_0); - for (size_t i_0 = 0; i_0 < value.count; ++i_0) { - if (![value[i_0] isKindOfClass:[NSNumber class]]) { - // Wrong kind of value. - return CHIP_ERROR_INVALID_ARGUMENT; - } - auto element_0 = (NSNumber *) value[i_0]; - listHolder_0->mList[i_0] = element_0.unsignedIntValue; - } - cppValue = ListType_0(listHolder_0->mList, value.count); - } else { - cppValue = ListType_0(); - } - } - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeFeatureMapWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TestCluster::Attributes::FeatureMap::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedIntValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -- (void)writeAttributeClusterRevisionWithValue:(NSNumber * _Nonnull)value completionHandler:(StatusCompletion)completionHandler -{ - new MTRDefaultSuccessCallbackBridge( - self.callbackQueue, - ^(id _Nullable ignored, NSError * _Nullable error) { - completionHandler(error); - }, - ^(Cancelable * success, Cancelable * failure) { - ListFreer listFreer; - using TypeInfo = TestCluster::Attributes::ClusterRevision::TypeInfo; - TypeInfo::Type cppValue; - cppValue = value.unsignedShortValue; - auto successFn = Callback::FromCancelable(success); - auto failureFn = Callback::FromCancelable(failure); - return self.cppCluster->WriteAttribute(cppValue, successFn->mContext, successFn->mCall, failureFn->mCall); - }); -} - -@end diff --git a/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h b/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h index a77d3e82bf7a87..216ae1760c50cd 100644 --- a/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h +++ b/zzz_generated/darwin-framework-tool/zap-generated/test/Commands.h @@ -471,8 +471,10 @@ class TestAccessControlCluster : public TestCommandBridge { CHIP_ERROR TestWriteEntries_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id aclArgument; @@ -583,8 +585,10 @@ class TestAccessControlCluster : public TestCommandBridge { CHIP_ERROR TestVerify_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); MTRReadParams * params = [[MTRReadParams alloc] init]; @@ -838,8 +842,10 @@ class TestAccessControlCluster : public TestCommandBridge { CHIP_ERROR TestWriteEntriesEmptyLists_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id aclArgument; @@ -881,8 +887,10 @@ class TestAccessControlCluster : public TestCommandBridge { CHIP_ERROR TestVerify_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); MTRReadParams * params = [[MTRReadParams alloc] init]; @@ -927,8 +935,10 @@ class TestAccessControlCluster : public TestCommandBridge { CHIP_ERROR TestWriteEntryInvalidPrivilege_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id aclArgument; @@ -963,8 +973,10 @@ class TestAccessControlCluster : public TestCommandBridge { CHIP_ERROR TestVerify_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); MTRReadParams * params = [[MTRReadParams alloc] init]; @@ -998,8 +1010,10 @@ class TestAccessControlCluster : public TestCommandBridge { CHIP_ERROR TestWriteEntryInvalidAuthMode_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id aclArgument; @@ -1034,8 +1048,10 @@ class TestAccessControlCluster : public TestCommandBridge { CHIP_ERROR TestVerify_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); MTRReadParams * params = [[MTRReadParams alloc] init]; @@ -1069,8 +1085,10 @@ class TestAccessControlCluster : public TestCommandBridge { CHIP_ERROR TestWriteEntryInvalidSubject_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id aclArgument; @@ -1109,8 +1127,10 @@ class TestAccessControlCluster : public TestCommandBridge { CHIP_ERROR TestVerify_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); MTRReadParams * params = [[MTRReadParams alloc] init]; @@ -1144,8 +1164,10 @@ class TestAccessControlCluster : public TestCommandBridge { CHIP_ERROR TestWriteEntryInvalidTarget_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id aclArgument; @@ -1188,8 +1210,10 @@ class TestAccessControlCluster : public TestCommandBridge { CHIP_ERROR TestVerify_12() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); MTRReadParams * params = [[MTRReadParams alloc] init]; @@ -1223,8 +1247,10 @@ class TestAccessControlCluster : public TestCommandBridge { CHIP_ERROR TestWriteEntryTooManySubjects_13() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id aclArgument; @@ -1282,8 +1308,10 @@ class TestAccessControlCluster : public TestCommandBridge { CHIP_ERROR TestVerify_14() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); MTRReadParams * params = [[MTRReadParams alloc] init]; @@ -1317,8 +1345,10 @@ class TestAccessControlCluster : public TestCommandBridge { CHIP_ERROR TestWriteEntryTooManyTargets_15() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id aclArgument; @@ -1456,8 +1486,10 @@ class TestAccessControlCluster : public TestCommandBridge { CHIP_ERROR TestVerify_16() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); MTRReadParams * params = [[MTRReadParams alloc] init]; @@ -1491,8 +1523,10 @@ class TestAccessControlCluster : public TestCommandBridge { CHIP_ERROR TestWriteTooManyEntries_17() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id aclArgument; @@ -1634,8 +1668,10 @@ class TestAccessControlCluster : public TestCommandBridge { CHIP_ERROR TestVerify_18() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); MTRReadParams * params = [[MTRReadParams alloc] init]; @@ -1889,8 +1925,10 @@ class TestAccessControlCluster : public TestCommandBridge { CHIP_ERROR TestRestoreAcl_19() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id aclArgument; @@ -1919,8 +1957,10 @@ class TestAccessControlCluster : public TestCommandBridge { CHIP_ERROR TestVerify_20() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); MTRReadParams * params = [[MTRReadParams alloc] init]; @@ -1954,8 +1994,10 @@ class TestAccessControlCluster : public TestCommandBridge { CHIP_ERROR TestValidateResourceMinimaSubjectsPerAccessControlEntry_21() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -1974,8 +2016,10 @@ class TestAccessControlCluster : public TestCommandBridge { CHIP_ERROR TestValidateResourceMinimaTargetsPerAccessControlEntry_22() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -1994,8 +2038,10 @@ class TestAccessControlCluster : public TestCommandBridge { CHIP_ERROR TestValidateResourceMinimaAccessControlEntriesPerFabric_23() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -2146,8 +2192,10 @@ class Test_TC_BOOL_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBooleanState * cluster = [[MTRTestBooleanState alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBooleanState * cluster = [[MTRBaseClusterBooleanState alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -2169,8 +2217,10 @@ class Test_TC_BOOL_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeConstraintsFeatureMap_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBooleanState * cluster = [[MTRTestBooleanState alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBooleanState * cluster = [[MTRBaseClusterBooleanState alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -2192,8 +2242,10 @@ class Test_TC_BOOL_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBooleanState * cluster = [[MTRTestBooleanState alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBooleanState * cluster = [[MTRBaseClusterBooleanState alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -2217,8 +2269,10 @@ class Test_TC_BOOL_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBooleanState * cluster = [[MTRTestBooleanState alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBooleanState * cluster = [[MTRBaseClusterBooleanState alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -2240,8 +2294,10 @@ class Test_TC_BOOL_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBooleanState * cluster = [[MTRTestBooleanState alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBooleanState * cluster = [[MTRBaseClusterBooleanState alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -2367,8 +2423,10 @@ class Test_TC_BOOL_2_1 : public TestCommandBridge { CHIP_ERROR TestReadMandatoryNonGlobalAttributeStateValue_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBooleanState * cluster = [[MTRTestBooleanState alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBooleanState * cluster = [[MTRBaseClusterBooleanState alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeStateValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -2515,8 +2573,10 @@ class Test_TC_ACT_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBridgedActions * cluster = [[MTRTestBridgedActions alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBridgedActions * cluster = [[MTRBaseClusterBridgedActions alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -2538,8 +2598,10 @@ class Test_TC_ACT_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBridgedActions * cluster = [[MTRTestBridgedActions alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBridgedActions * cluster = [[MTRBaseClusterBridgedActions alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -2559,8 +2621,10 @@ class Test_TC_ACT_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBridgedActions * cluster = [[MTRTestBridgedActions alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBridgedActions * cluster = [[MTRBaseClusterBridgedActions alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -2582,8 +2646,10 @@ class Test_TC_ACT_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBridgedActions * cluster = [[MTRTestBridgedActions alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBridgedActions * cluster = [[MTRBaseClusterBridgedActions alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -2750,8 +2816,10 @@ class Test_TC_CC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -2773,8 +2841,10 @@ class Test_TC_CC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeConstraintsFeatureMap_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -2794,8 +2864,10 @@ class Test_TC_CC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -2833,8 +2905,10 @@ class Test_TC_CC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -2851,8 +2925,10 @@ class Test_TC_CC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -3623,8 +3699,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestValidateConstraintsOfAttributeCurrentHue_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -3646,8 +3724,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestValidateConstraintsOfAttributeCurrentSaturation_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -3669,8 +3749,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentXAttributeFromDut_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -3691,8 +3773,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestValidateConstraintsOfAttributeCurrentX_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -3712,8 +3796,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentYAttributeFromDut_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -3734,8 +3820,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestValidateConstraintsOfAttributeCurrentY_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -3755,8 +3843,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsColorTemperatureMiredsAttributeFromDut_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -3777,8 +3867,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestValidateConstraintsOfAttributeColorTemperatureMireds_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -3798,8 +3890,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsColorModeAttributeFromDut_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -3820,8 +3914,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestValidateConstraintsOfAttributeColorMode_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -3841,8 +3937,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestValidateConstraintsOfAttributeOptions_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOptionsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -3864,8 +3962,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestValidateConstraintsOfAttributeEnhancedCurrentHue_12() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -3887,8 +3987,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestValidateConstraintsOfAttributeEnhancedColorMode_13() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedColorModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -3910,8 +4012,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestValidateConstraintsOfAttributeColorLoopActive_14() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorLoopActiveWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -3933,8 +4037,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestValidateConstraintsOfAttributeColorLoopDirection_15() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorLoopDirectionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -3956,8 +4062,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestValidateConstraintsOfAttributeColorLoopTime_16() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorLoopTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -3979,8 +4087,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestValidateConstraintsOfAttributeColorLoopStartEnhancedHue_17() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -4003,8 +4113,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestValidateConstraintsOfAttributeColorLoopStoredEnhancedHue_18() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -4028,8 +4140,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalGlobalAttributeFeatureMap_19() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4049,8 +4163,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsColorCapabilitiesAttributeFromDut_20() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorCapabilitiesWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4071,8 +4187,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestValidateConstraintsOfAttributeColorCapabilities_21() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorCapabilitiesWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4092,8 +4210,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsColorTempPhysicalMinMiredsAttributeFromDut_22() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -4115,8 +4235,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestValidateConstraintsOfAttributeColorTempPhysicalMinMireds_23() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -4137,8 +4259,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadColorTempPhysicalMaxMiredsAttributeFromDut_24() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -4160,8 +4284,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestValidateConstraintsOfAttributeColorTempPhysicalMaxMireds_25() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -4182,8 +4308,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeCoupleColorTempToLevelMinMireds_26() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCoupleColorTempToLevelMinMiredsWithCompletionHandler:^( @@ -4205,8 +4333,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeStartUpColorTemperatureMireds_27() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeStartUpColorTemperatureMiredsWithCompletionHandler:^( @@ -4227,8 +4357,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestValidateConstraintsOfAttributeRemainingTime_28() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRemainingTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4250,8 +4382,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeDriftCompensation_29() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeDriftCompensationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4271,8 +4405,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeCompensationText_30() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCompensationTextWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -4290,8 +4426,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributeNumberOfPrimaries_31() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNumberOfPrimariesWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4314,8 +4452,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributePrimary1X_32() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePrimary1XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4335,8 +4475,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributePrimary1Y_33() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePrimary1YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4356,8 +4498,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributePrimary1Intensity_34() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePrimary1IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4378,8 +4522,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributePrimary2X_35() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePrimary2XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4399,8 +4545,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributePrimary2Y_36() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePrimary2YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4420,8 +4568,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestValidateConstraintsOfAttributePrimary2Intensity_37() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePrimary2IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4442,8 +4592,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributePrimary3X_38() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePrimary3XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4463,8 +4615,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributePrimary3Y_39() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePrimary3YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4484,8 +4638,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributePrimary3Intensity_40() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePrimary3IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4506,8 +4662,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributePrimary4X_41() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePrimary4XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4527,8 +4685,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributePrimary4Y_42() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePrimary4YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4548,8 +4708,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributePrimary4Intensity_43() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePrimary4IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4570,8 +4732,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributePrimary5X_44() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePrimary5XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4591,8 +4755,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributePrimary5Y_45() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePrimary5YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4612,8 +4778,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributePrimary5Intensity_46() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePrimary5IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4634,8 +4802,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributePrimary6X_47() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePrimary6XWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4655,8 +4825,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributePrimary6Y_48() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePrimary6YWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4676,8 +4848,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributePrimary6Intensity_49() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePrimary6IntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4698,8 +4872,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeWhitePointX_50() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeWhitePointXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4719,8 +4895,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeWhitePointY_51() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeWhitePointYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4740,8 +4918,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeColorPointRX_52() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorPointRXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4761,8 +4941,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeColorPointRY_53() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorPointRYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4782,8 +4964,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeColorPointRIntensity_54() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorPointRIntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4804,8 +4988,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeColorPointGX_55() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorPointGXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4825,8 +5011,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeColorPointGY_56() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorPointGYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4846,8 +5034,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeColorPointGIntensity_57() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorPointGIntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4868,8 +5058,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeColorPointBX_58() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorPointBXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4889,8 +5081,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeColorPointBY_59() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorPointBYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -4910,8 +5104,10 @@ class Test_TC_CC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeColorPointBIntensity_60() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorPointBIntensityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -5327,8 +5523,8 @@ class Test_TC_CC_3_1 : public TestCommandBridge { CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -5344,8 +5540,8 @@ class Test_TC_CC_3_1 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -5366,8 +5562,10 @@ class Test_TC_CC_3_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentHueAttributeFromDut_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -5387,8 +5585,10 @@ class Test_TC_CC_3_1 : public TestCommandBridge { CHIP_ERROR TestMoveToHueShortestDistanceCommand_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterMoveToHueParams alloc] init]; @@ -5418,8 +5618,10 @@ class Test_TC_CC_3_1 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -5446,8 +5648,10 @@ class Test_TC_CC_3_1 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -5474,8 +5678,10 @@ class Test_TC_CC_3_1 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -5495,8 +5701,10 @@ class Test_TC_CC_3_1 : public TestCommandBridge { CHIP_ERROR TestMoveToHueLongestDistanceCommand_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterMoveToHueParams alloc] init]; @@ -5526,8 +5734,10 @@ class Test_TC_CC_3_1 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_13() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -5554,8 +5764,10 @@ class Test_TC_CC_3_1 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_15() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -5582,8 +5794,10 @@ class Test_TC_CC_3_1 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_17() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -5603,8 +5817,10 @@ class Test_TC_CC_3_1 : public TestCommandBridge { CHIP_ERROR TestMoveToHueUpCommand_18() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterMoveToHueParams alloc] init]; @@ -5634,8 +5850,10 @@ class Test_TC_CC_3_1 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_20() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -5662,8 +5880,10 @@ class Test_TC_CC_3_1 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_22() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -5690,8 +5910,10 @@ class Test_TC_CC_3_1 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_24() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -5711,8 +5933,10 @@ class Test_TC_CC_3_1 : public TestCommandBridge { CHIP_ERROR TestMoveToHueDownCommand_25() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterMoveToHueParams alloc] init]; @@ -5742,8 +5966,10 @@ class Test_TC_CC_3_1 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_27() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -5770,8 +5996,10 @@ class Test_TC_CC_3_1 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_29() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -5798,8 +6026,10 @@ class Test_TC_CC_3_1 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_31() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -5819,8 +6049,8 @@ class Test_TC_CC_3_1 : public TestCommandBridge { CHIP_ERROR TestTurnOffLightThatWeTurnedOn_32() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -5836,8 +6066,8 @@ class Test_TC_CC_3_1 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_33() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -6253,8 +6483,8 @@ class Test_TC_CC_3_2 : public TestCommandBridge { CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -6270,8 +6500,8 @@ class Test_TC_CC_3_2 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -6292,8 +6522,10 @@ class Test_TC_CC_3_2 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentHueAttributeFromDut_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -6313,8 +6545,10 @@ class Test_TC_CC_3_2 : public TestCommandBridge { CHIP_ERROR TestMoveHueUpCommand_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterMoveHueParams alloc] init]; @@ -6343,8 +6577,10 @@ class Test_TC_CC_3_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -6371,8 +6607,10 @@ class Test_TC_CC_3_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -6399,8 +6637,10 @@ class Test_TC_CC_3_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -6420,8 +6660,10 @@ class Test_TC_CC_3_2 : public TestCommandBridge { CHIP_ERROR TestMoveHueStopCommand_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterMoveHueParams alloc] init]; @@ -6450,8 +6692,10 @@ class Test_TC_CC_3_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_13() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -6478,8 +6722,10 @@ class Test_TC_CC_3_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_15() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -6506,8 +6752,10 @@ class Test_TC_CC_3_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_17() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -6527,8 +6775,10 @@ class Test_TC_CC_3_2 : public TestCommandBridge { CHIP_ERROR TestMoveHueDownCommand_18() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterMoveHueParams alloc] init]; @@ -6557,8 +6807,10 @@ class Test_TC_CC_3_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_20() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -6585,8 +6837,10 @@ class Test_TC_CC_3_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_22() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -6613,8 +6867,10 @@ class Test_TC_CC_3_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_24() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -6634,8 +6890,10 @@ class Test_TC_CC_3_2 : public TestCommandBridge { CHIP_ERROR TestMoveHueStopCommand_25() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterMoveHueParams alloc] init]; @@ -6664,8 +6922,10 @@ class Test_TC_CC_3_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_27() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -6692,8 +6952,10 @@ class Test_TC_CC_3_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_29() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -6720,8 +6982,10 @@ class Test_TC_CC_3_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_31() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -6741,8 +7005,8 @@ class Test_TC_CC_3_2 : public TestCommandBridge { CHIP_ERROR TestTurnOffLightThatWeTurnedOn_32() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -6758,8 +7022,8 @@ class Test_TC_CC_3_2 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_33() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -6961,8 +7225,8 @@ class Test_TC_CC_3_3 : public TestCommandBridge { CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -6978,8 +7242,8 @@ class Test_TC_CC_3_3 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -7000,8 +7264,10 @@ class Test_TC_CC_3_3 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentHueAttributeFromDut_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -7021,8 +7287,10 @@ class Test_TC_CC_3_3 : public TestCommandBridge { CHIP_ERROR TestStepHueUpCommand_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterStepHueParams alloc] init]; @@ -7052,8 +7320,10 @@ class Test_TC_CC_3_3 : public TestCommandBridge { CHIP_ERROR TestOverTransitionTimeReadCurrentHueAttributeFromDut_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -7073,8 +7343,10 @@ class Test_TC_CC_3_3 : public TestCommandBridge { CHIP_ERROR TestStepHueDownCommand_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterStepHueParams alloc] init]; @@ -7104,8 +7376,10 @@ class Test_TC_CC_3_3 : public TestCommandBridge { CHIP_ERROR TestOverTransitionTimeReadCurrentHueAttributeFromDut_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -7125,8 +7399,8 @@ class Test_TC_CC_3_3 : public TestCommandBridge { CHIP_ERROR TestTurnOffLightThatWeTurnedOn_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -7142,8 +7416,8 @@ class Test_TC_CC_3_3 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -7355,8 +7629,8 @@ class Test_TC_CC_4_1 : public TestCommandBridge { CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -7372,8 +7646,8 @@ class Test_TC_CC_4_1 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -7394,8 +7668,10 @@ class Test_TC_CC_4_1 : public TestCommandBridge { CHIP_ERROR TestCheckSaturationAttributeValueMatchedBeforeAnyChange_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -7415,8 +7691,10 @@ class Test_TC_CC_4_1 : public TestCommandBridge { CHIP_ERROR TestMoveToSaturationCommand_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterMoveToSaturationParams alloc] init]; @@ -7445,8 +7723,10 @@ class Test_TC_CC_4_1 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentSaturationAttributeValueMatchedTheValueSentByTheLastCommand_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -7473,8 +7753,10 @@ class Test_TC_CC_4_1 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentSaturationAttributeValueMatchedTheValueSentByTheLastCommand_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -7501,8 +7783,10 @@ class Test_TC_CC_4_1 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentSaturationAttributeValueMatchedTheValueSentByTheLastCommand_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -7522,8 +7806,8 @@ class Test_TC_CC_4_1 : public TestCommandBridge { CHIP_ERROR TestTurnOffLightThatWeTurnedOn_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -7539,8 +7823,8 @@ class Test_TC_CC_4_1 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_12() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -8093,8 +8377,8 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -8110,8 +8394,8 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -8132,8 +8416,10 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestCheckSaturationAttributeValueMatchedTheValueSentByTheLastCommand_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -8153,8 +8439,10 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestMoveSaturationUpCommand_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterMoveSaturationParams alloc] init]; @@ -8183,8 +8471,10 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentSaturationAttributeValueMatchedTheValueSentByTheLastCommand_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -8211,8 +8501,10 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentSaturationAttributeValueMatchedTheValueSentByTheLastCommand_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -8239,8 +8531,10 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentSaturationAttributeValueMatchedTheValueSentByTheLastCommand_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -8260,8 +8554,10 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestMoveSaturationDownCommand_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterMoveSaturationParams alloc] init]; @@ -8290,8 +8586,10 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentSaturationAttributeValueMatchedTheValueSentByTheLastCommand_13() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -8318,8 +8616,10 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentSaturationAttributeValueMatchedTheValueSentByTheLastCommand_15() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -8346,8 +8646,10 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentSaturationAttributeValueMatchedTheValueSentByTheLastCommand_17() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -8367,8 +8669,10 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestMoveSaturationUpCommand_18() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterMoveSaturationParams alloc] init]; @@ -8397,8 +8701,10 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentSaturationAttributeValueMatchedTheValueSentByTheLastCommand_20() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -8425,8 +8731,10 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentSaturationAttributeValueMatchedTheValueSentByTheLastCommand_22() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -8453,8 +8761,10 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentSaturationAttributeValueMatchedTheValueSentByTheLastCommand_24() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -8474,8 +8784,10 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestMoveSaturationStopCommand_25() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterMoveSaturationParams alloc] init]; @@ -8504,8 +8816,10 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentSaturationAttributeValueMatchedTheValueSentByTheLastCommand_27() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -8532,8 +8846,10 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentSaturationAttributeValueMatchedTheValueSentByTheLastCommand_29() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -8560,8 +8876,10 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentSaturationAttributeValueMatchedTheValueSentByTheLastCommand_31() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -8581,8 +8899,10 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestMoveSaturationDownCommand_32() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterMoveSaturationParams alloc] init]; @@ -8611,8 +8931,10 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentSaturationAttributeValueMatchedTheValueSentByTheLastCommand_34() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -8639,8 +8961,10 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentSaturationAttributeValueMatchedTheValueSentByTheLastCommand_36() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -8667,8 +8991,10 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentSaturationAttributeValueMatchedTheValueSentByTheLastCommand_38() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -8688,8 +9014,10 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestMoveSaturationStopCommand_39() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterMoveSaturationParams alloc] init]; @@ -8718,8 +9046,10 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentSaturationAttributeValueMatchedTheValueSentByTheLastCommand_41() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -8746,8 +9076,10 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentSaturationAttributeValueMatchedTheValueSentByTheLastCommand_43() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -8774,8 +9106,10 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentSaturationAttributeValueMatchedTheValueSentByTheLastCommand_45() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -8795,8 +9129,8 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestTurnOffLightThatWeTurnedOn_46() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -8812,8 +9146,8 @@ class Test_TC_CC_4_2 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_47() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -9015,8 +9349,8 @@ class Test_TC_CC_4_3 : public TestCommandBridge { CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -9032,8 +9366,8 @@ class Test_TC_CC_4_3 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -9054,8 +9388,10 @@ class Test_TC_CC_4_3 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentSaturationAttributeFromDut_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -9075,8 +9411,10 @@ class Test_TC_CC_4_3 : public TestCommandBridge { CHIP_ERROR TestStepSaturationUpCommand_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterStepSaturationParams alloc] init]; @@ -9106,8 +9444,10 @@ class Test_TC_CC_4_3 : public TestCommandBridge { CHIP_ERROR TestOverTransitionTimeReadCurrentSaturationAttributeFromDut_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -9127,8 +9467,10 @@ class Test_TC_CC_4_3 : public TestCommandBridge { CHIP_ERROR TestStepSaturationDownCommand_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterStepSaturationParams alloc] init]; @@ -9158,8 +9500,10 @@ class Test_TC_CC_4_3 : public TestCommandBridge { CHIP_ERROR TestOverTransitionTimeReadsCurrentSaturationAttributeFromDut_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -9179,8 +9523,8 @@ class Test_TC_CC_4_3 : public TestCommandBridge { CHIP_ERROR TestTurnOffLightThatWeTurnedOn_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -9196,8 +9540,8 @@ class Test_TC_CC_4_3 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -9394,8 +9738,8 @@ class Test_TC_CC_4_4 : public TestCommandBridge { CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -9411,8 +9755,8 @@ class Test_TC_CC_4_4 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -9433,8 +9777,10 @@ class Test_TC_CC_4_4 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedBeforeAnyChange_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -9454,8 +9800,10 @@ class Test_TC_CC_4_4 : public TestCommandBridge { CHIP_ERROR TestCheckSaturationAttributeValueMatchedBeforeAnyChange_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -9475,8 +9823,10 @@ class Test_TC_CC_4_4 : public TestCommandBridge { CHIP_ERROR TestMoveToCurrentHueAndSaturationCommand_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterMoveToHueAndSaturationParams alloc] init]; @@ -9506,8 +9856,10 @@ class Test_TC_CC_4_4 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -9527,8 +9879,10 @@ class Test_TC_CC_4_4 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentSaturationAttributeValueMatchedTheValueSentByTheLastCommand_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -9548,8 +9902,8 @@ class Test_TC_CC_4_4 : public TestCommandBridge { CHIP_ERROR TestTurnOffLightThatWeTurnedOn_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -9565,8 +9919,8 @@ class Test_TC_CC_4_4 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -9763,8 +10117,8 @@ class Test_TC_CC_5_1 : public TestCommandBridge { CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -9780,8 +10134,8 @@ class Test_TC_CC_5_1 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -9802,8 +10156,10 @@ class Test_TC_CC_5_1 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentXAttributeValueMatchedBeforeAnyChange_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -9823,8 +10179,10 @@ class Test_TC_CC_5_1 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentYAttributeValueMatchedBeforeAnyChange_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -9844,8 +10202,10 @@ class Test_TC_CC_5_1 : public TestCommandBridge { CHIP_ERROR TestMoveToColorCommand_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterMoveToColorParams alloc] init]; @@ -9875,8 +10235,10 @@ class Test_TC_CC_5_1 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentXAttributeValueMatchedTheValueSentByTheLastCommand_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -9896,8 +10258,10 @@ class Test_TC_CC_5_1 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentYAttributeValueMatchedTheValueSentByTheLastCommand_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -9917,8 +10281,8 @@ class Test_TC_CC_5_1 : public TestCommandBridge { CHIP_ERROR TestTurnOffLightThatWeTurnedOn_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -9934,8 +10298,8 @@ class Test_TC_CC_5_1 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -10167,8 +10531,8 @@ class Test_TC_CC_5_2 : public TestCommandBridge { CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -10184,8 +10548,8 @@ class Test_TC_CC_5_2 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -10206,8 +10570,10 @@ class Test_TC_CC_5_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentXAttributeValueMatchedBeforeAnyChange_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -10227,8 +10593,10 @@ class Test_TC_CC_5_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentYAttributeValueMatchedBeforeAnyChange_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -10248,8 +10616,10 @@ class Test_TC_CC_5_2 : public TestCommandBridge { CHIP_ERROR TestMoveColorCommand_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterMoveColorParams alloc] init]; @@ -10278,8 +10648,10 @@ class Test_TC_CC_5_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentXAttributeValueMatchedTheValueSentByTheLastCommand_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -10299,8 +10671,10 @@ class Test_TC_CC_5_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentYAttributeValueMatchedTheValueSentByTheLastCommand_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -10320,8 +10694,10 @@ class Test_TC_CC_5_2 : public TestCommandBridge { CHIP_ERROR TestStopMoveStepCommand_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterStopMoveStepParams alloc] init]; @@ -10341,8 +10717,10 @@ class Test_TC_CC_5_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentXAttributeValueMatchedTheValueSentByTheLastCommand_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -10362,8 +10740,10 @@ class Test_TC_CC_5_2 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentYAttributeValueMatchedTheValueSentByTheLastCommand_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -10383,8 +10763,8 @@ class Test_TC_CC_5_2 : public TestCommandBridge { CHIP_ERROR TestTurnOffLightThatWeTurnedOn_12() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -10400,8 +10780,8 @@ class Test_TC_CC_5_2 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_13() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -10598,8 +10978,8 @@ class Test_TC_CC_5_3 : public TestCommandBridge { CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -10615,8 +10995,8 @@ class Test_TC_CC_5_3 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -10637,8 +11017,10 @@ class Test_TC_CC_5_3 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentXAttributeValueMatchedBeforeAnyChange_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -10658,8 +11040,10 @@ class Test_TC_CC_5_3 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentYAttributeValueMatchedBeforeAnyChange_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -10679,8 +11063,10 @@ class Test_TC_CC_5_3 : public TestCommandBridge { CHIP_ERROR TestStepColorCommand_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterStepColorParams alloc] init]; @@ -10710,8 +11096,10 @@ class Test_TC_CC_5_3 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentXAttributeValueMatchedTheValueSentByTheLastCommand_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -10731,8 +11119,10 @@ class Test_TC_CC_5_3 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentYAttributeValueMatchedTheValueSentByTheLastCommand_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -10752,8 +11142,8 @@ class Test_TC_CC_5_3 : public TestCommandBridge { CHIP_ERROR TestTurnOffLightThatWeTurnedOn_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -10769,8 +11159,8 @@ class Test_TC_CC_5_3 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -10943,8 +11333,8 @@ class Test_TC_CC_6_1 : public TestCommandBridge { CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -10960,8 +11350,8 @@ class Test_TC_CC_6_1 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -10982,8 +11372,10 @@ class Test_TC_CC_6_1 : public TestCommandBridge { CHIP_ERROR TestReadCurrentColorTemprature_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -11003,8 +11395,10 @@ class Test_TC_CC_6_1 : public TestCommandBridge { CHIP_ERROR TestMoveToColorTemperatureCommand_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterMoveToColorTemperatureParams alloc] init]; @@ -11033,8 +11427,10 @@ class Test_TC_CC_6_1 : public TestCommandBridge { CHIP_ERROR TestReadCurrentColorTemprature_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -11054,8 +11450,8 @@ class Test_TC_CC_6_1 : public TestCommandBridge { CHIP_ERROR TestTurnOffLightThatWeTurnedOn_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -11071,8 +11467,8 @@ class Test_TC_CC_6_1 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -11498,8 +11894,8 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -11515,8 +11911,8 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -11537,8 +11933,10 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestReadCurrentColorTemprature_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -11558,8 +11956,10 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestMoveUpColorTemperatureCommand_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterMoveColorTemperatureParams alloc] init]; @@ -11590,8 +11990,10 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestReadCurrentColorTempratureAttributeFromDutSeveralTimes_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -11618,8 +12020,10 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestReadCurrentColorTempratureAttributeFromDutSeveralTimes_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -11646,8 +12050,10 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestReadCurrentColorTempratureAttributeFromDutSeveralTimes_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -11667,8 +12073,10 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestMoveDownColorTemperatureCommand_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterMoveColorTemperatureParams alloc] init]; @@ -11699,8 +12107,10 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestReadCurrentColorTempratureAttributeFromDutSeveralTimes_13() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -11727,8 +12137,10 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestReadCurrentColorTempratureAttributeFromDutSeveralTimes_15() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -11755,8 +12167,10 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestReadCurrentColorTempratureAttributeFromDutSeveralTimes_17() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -11776,8 +12190,10 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestMoveUpColorTemperatureCommand_18() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterMoveColorTemperatureParams alloc] init]; @@ -11801,8 +12217,10 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestStopColorTemperatureCommand_19() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterMoveColorTemperatureParams alloc] init]; @@ -11833,8 +12251,10 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestReadCurrentColorTempratureAttributeFromDutSeveralTimes_21() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -11861,8 +12281,10 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestReadCurrentColorTempratureAttributeFromDutSeveralTimes_23() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -11889,8 +12311,10 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestReadCurrentColorTempratureAttributeFromDutSeveralTimes_25() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -11910,8 +12334,10 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestMoveDownColorTemperatureCommand_26() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterMoveColorTemperatureParams alloc] init]; @@ -11935,8 +12361,10 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestStopColorTemperatureCommand_27() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterMoveColorTemperatureParams alloc] init]; @@ -11967,8 +12395,10 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestReadCurrentColorTempratureAttributeFromDutSeveralTimes_29() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -11995,8 +12425,10 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestReadCurrentColorTempratureAttributeFromDutSeveralTimes_31() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -12023,8 +12455,10 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestReadCurrentColorTempratureAttributeFromDutSeveralTimes_33() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -12044,8 +12478,8 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestTurnOffLightThatWeTurnedOn_34() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -12061,8 +12495,8 @@ class Test_TC_CC_6_2 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_35() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -12336,8 +12770,8 @@ class Test_TC_CC_6_3 : public TestCommandBridge { CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -12353,8 +12787,8 @@ class Test_TC_CC_6_3 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -12375,8 +12809,10 @@ class Test_TC_CC_6_3 : public TestCommandBridge { CHIP_ERROR TestReadCurrentColorTemprature_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -12396,8 +12832,10 @@ class Test_TC_CC_6_3 : public TestCommandBridge { CHIP_ERROR TestStepUpColorTemperatureCommand_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterStepColorTemperatureParams alloc] init]; @@ -12429,8 +12867,10 @@ class Test_TC_CC_6_3 : public TestCommandBridge { CHIP_ERROR TestReadCurrentColorTemprature_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -12457,8 +12897,10 @@ class Test_TC_CC_6_3 : public TestCommandBridge { CHIP_ERROR TestReadCurrentColorTemprature_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -12485,8 +12927,10 @@ class Test_TC_CC_6_3 : public TestCommandBridge { CHIP_ERROR TestReadCurrentColorTemprature_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -12506,8 +12950,10 @@ class Test_TC_CC_6_3 : public TestCommandBridge { CHIP_ERROR TestStepDownColorTemperatureCommand_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterStepColorTemperatureParams alloc] init]; @@ -12539,8 +12985,10 @@ class Test_TC_CC_6_3 : public TestCommandBridge { CHIP_ERROR TestReadCurrentColorTemprature_13() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -12567,8 +13015,10 @@ class Test_TC_CC_6_3 : public TestCommandBridge { CHIP_ERROR TestReadCurrentColorTemprature_15() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -12595,8 +13045,10 @@ class Test_TC_CC_6_3 : public TestCommandBridge { CHIP_ERROR TestReadCurrentColorTemprature_17() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -12616,8 +13068,8 @@ class Test_TC_CC_6_3 : public TestCommandBridge { CHIP_ERROR TestTurnOffLightThatWeTurnedOn_18() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -12633,8 +13085,8 @@ class Test_TC_CC_6_3 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_19() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -13062,8 +13514,8 @@ class Test_TC_CC_7_1 : public TestCommandBridge { CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -13079,8 +13531,8 @@ class Test_TC_CC_7_1 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -13101,8 +13553,10 @@ class Test_TC_CC_7_1 : public TestCommandBridge { CHIP_ERROR TestEnhancedMoveToHueCommand_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterEnhancedMoveToHueParams alloc] init]; @@ -13125,8 +13579,10 @@ class Test_TC_CC_7_1 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -13146,8 +13602,10 @@ class Test_TC_CC_7_1 : public TestCommandBridge { CHIP_ERROR TestEnhancedMoveToHueCommand_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterEnhancedMoveToHueParams alloc] init]; @@ -13177,8 +13635,10 @@ class Test_TC_CC_7_1 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -13205,8 +13665,10 @@ class Test_TC_CC_7_1 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -13233,8 +13695,10 @@ class Test_TC_CC_7_1 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -13254,8 +13718,10 @@ class Test_TC_CC_7_1 : public TestCommandBridge { CHIP_ERROR TestEnhancedMoveToHueCommand_12() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterEnhancedMoveToHueParams alloc] init]; @@ -13285,8 +13751,10 @@ class Test_TC_CC_7_1 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_14() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -13313,8 +13781,10 @@ class Test_TC_CC_7_1 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_16() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -13341,8 +13811,10 @@ class Test_TC_CC_7_1 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_18() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -13362,8 +13834,10 @@ class Test_TC_CC_7_1 : public TestCommandBridge { CHIP_ERROR TestEnhancedMoveToHueCommand_19() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterEnhancedMoveToHueParams alloc] init]; @@ -13393,8 +13867,10 @@ class Test_TC_CC_7_1 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_21() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -13421,8 +13897,10 @@ class Test_TC_CC_7_1 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_23() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -13449,8 +13927,10 @@ class Test_TC_CC_7_1 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_25() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -13470,8 +13950,10 @@ class Test_TC_CC_7_1 : public TestCommandBridge { CHIP_ERROR TestEnhancedMoveToHueCommand_26() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterEnhancedMoveToHueParams alloc] init]; @@ -13501,8 +13983,10 @@ class Test_TC_CC_7_1 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_28() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -13529,8 +14013,10 @@ class Test_TC_CC_7_1 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_30() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -13557,8 +14043,10 @@ class Test_TC_CC_7_1 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_32() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -13578,8 +14066,8 @@ class Test_TC_CC_7_1 : public TestCommandBridge { CHIP_ERROR TestTurnOffLightThatWeTurnedOn_33() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -13595,8 +14083,8 @@ class Test_TC_CC_7_1 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_34() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -13922,8 +14410,8 @@ class Test_TC_CC_7_2 : public TestCommandBridge { CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -13939,8 +14427,8 @@ class Test_TC_CC_7_2 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -13961,8 +14449,10 @@ class Test_TC_CC_7_2 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeFromDut_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -13982,8 +14472,10 @@ class Test_TC_CC_7_2 : public TestCommandBridge { CHIP_ERROR TestEnhancedMoveHueUpCommand_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterEnhancedMoveHueParams alloc] init]; @@ -14012,8 +14504,10 @@ class Test_TC_CC_7_2 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -14040,8 +14534,10 @@ class Test_TC_CC_7_2 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -14068,8 +14564,10 @@ class Test_TC_CC_7_2 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -14089,8 +14587,10 @@ class Test_TC_CC_7_2 : public TestCommandBridge { CHIP_ERROR TestEnhancedMoveHueStopCommand_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterEnhancedMoveHueParams alloc] init]; @@ -14112,8 +14612,10 @@ class Test_TC_CC_7_2 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_12() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -14133,8 +14635,10 @@ class Test_TC_CC_7_2 : public TestCommandBridge { CHIP_ERROR TestEnhancedMoveHueDownCommand_13() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterEnhancedMoveHueParams alloc] init]; @@ -14163,8 +14667,10 @@ class Test_TC_CC_7_2 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_15() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -14191,8 +14697,10 @@ class Test_TC_CC_7_2 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_17() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -14219,8 +14727,10 @@ class Test_TC_CC_7_2 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_19() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -14240,8 +14750,10 @@ class Test_TC_CC_7_2 : public TestCommandBridge { CHIP_ERROR TestEnhancedMoveHueStopCommand_20() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterEnhancedMoveHueParams alloc] init]; @@ -14263,8 +14775,10 @@ class Test_TC_CC_7_2 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_21() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -14284,8 +14798,8 @@ class Test_TC_CC_7_2 : public TestCommandBridge { CHIP_ERROR TestTurnOffLightThatWeTurnedOn_22() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -14301,8 +14815,8 @@ class Test_TC_CC_7_2 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_23() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -14504,8 +15018,8 @@ class Test_TC_CC_7_3 : public TestCommandBridge { CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -14521,8 +15035,8 @@ class Test_TC_CC_7_3 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -14543,8 +15057,10 @@ class Test_TC_CC_7_3 : public TestCommandBridge { CHIP_ERROR TestReadsEnhancedCurrentHueAttributeFromDut_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -14564,8 +15080,10 @@ class Test_TC_CC_7_3 : public TestCommandBridge { CHIP_ERROR TestEnhancedStepHueUpCommand_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterEnhancedStepHueParams alloc] init]; @@ -14595,8 +15113,10 @@ class Test_TC_CC_7_3 : public TestCommandBridge { CHIP_ERROR TestOverTransitionTimeReadEnhancedCurrentHueAttributeFromDut_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -14616,8 +15136,10 @@ class Test_TC_CC_7_3 : public TestCommandBridge { CHIP_ERROR TestEnhancedStepHueDownCommand_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterEnhancedStepHueParams alloc] init]; @@ -14647,8 +15169,10 @@ class Test_TC_CC_7_3 : public TestCommandBridge { CHIP_ERROR TestOverTransitionTimeReadEnhancedCurrentHueAttributeFromDut_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -14668,8 +15192,8 @@ class Test_TC_CC_7_3 : public TestCommandBridge { CHIP_ERROR TestTurnOffLightThatWeTurnedOn_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -14685,8 +15209,8 @@ class Test_TC_CC_7_3 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -14860,8 +15384,8 @@ class Test_TC_CC_7_4 : public TestCommandBridge { CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -14877,8 +15401,8 @@ class Test_TC_CC_7_4 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -14899,8 +15423,10 @@ class Test_TC_CC_7_4 : public TestCommandBridge { CHIP_ERROR TestReadsEnhancedCurrentHueAttributeFromDut_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -14920,8 +15446,10 @@ class Test_TC_CC_7_4 : public TestCommandBridge { CHIP_ERROR TestEnhancedMoveToHueAndSaturationCommand_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterEnhancedMoveToHueAndSaturationParams alloc] init]; @@ -14951,8 +15479,10 @@ class Test_TC_CC_7_4 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastCommand_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -14972,8 +15502,8 @@ class Test_TC_CC_7_4 : public TestCommandBridge { CHIP_ERROR TestTurnOffLightThatWeTurnedOn_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -14989,8 +15519,8 @@ class Test_TC_CC_7_4 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -15473,8 +16003,8 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestTurnOnLightForColorControlTests_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -15490,8 +16020,8 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -15512,8 +16042,10 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestMoveHueUpCommand_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterMoveHueParams alloc] init]; @@ -15535,8 +16067,10 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentHueAttributeFromDut_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -15556,8 +16090,10 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestStopMoveStepCommand_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterStopMoveStepParams alloc] init]; @@ -15577,8 +16113,10 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentHueAttributeFromDut_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -15605,8 +16143,10 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentHueAttributeValueMatchedTheValueSentByTheLastAttribute_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -15626,8 +16166,10 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestMoveSaturationUpCommand_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterMoveSaturationParams alloc] init]; @@ -15649,8 +16191,10 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestCheckSaturationAttributeValueMatchedTheValueSentByTheLastCommand_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -15670,8 +16214,10 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestStopMoveStepCommand_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterStopMoveStepParams alloc] init]; @@ -15691,8 +16237,10 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentSaturationAttributeFromDut_12() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -15719,8 +16267,10 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestCheckSaturationAttributeValueMatchedTheValueSentByTheLastAttribute_14() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentSaturationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -15740,8 +16290,10 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestMoveColorCommand_15() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterMoveColorParams alloc] init]; @@ -15763,8 +16315,10 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentXAttributeFromDut_16() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -15784,8 +16338,10 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentYAttributeFromDut_17() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -15805,8 +16361,10 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestStopMoveStepCommand_18() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterStopMoveStepParams alloc] init]; @@ -15826,8 +16384,10 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentXAttributeFromDut_19() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -15847,8 +16407,10 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentYAttributeFromDut_20() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -15875,8 +16437,10 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentXAttributeValueMatchedTheValueSentByTheLastAttribute_22() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentXWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -15896,8 +16460,10 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestCheckCurrentYAttributeValueMatchedTheValueSentByTheLastAttribute_23() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentYWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -15917,8 +16483,10 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestMoveUpColorTemperatureCommand_24() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterMoveColorTemperatureParams alloc] init]; @@ -15942,8 +16510,10 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentColorTempratureFromDut_25() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -15963,8 +16533,10 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestStopMoveStepCommand_26() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterStopMoveStepParams alloc] init]; @@ -15984,8 +16556,10 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentColorTempratureFromDut_27() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -16012,8 +16586,10 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentColorAttributeValueMatchedTheValueSentByTheLastAttribute_29() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeColorTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -16033,8 +16609,10 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestEnhancedMoveHueUpCommand_30() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterEnhancedMoveHueParams alloc] init]; @@ -16056,8 +16634,10 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestReadsEnhancedCurrentHueAttributeValueFromDut_31() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -16077,8 +16657,10 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestStopMoveStepCommand_32() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRColorControlClusterStopMoveStepParams alloc] init]; @@ -16098,8 +16680,10 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestReadsEnhancedCurrentHueAttributeValueFromDut_33() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -16126,8 +16710,10 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestCheckEnhancedCurrentHueAttributeValueMatchedTheValueSentByTheLastAttribute_35() { - MTRDevice * device = GetDevice("alpha"); - MTRTestColorControl * cluster = [[MTRTestColorControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterColorControl * cluster = [[MTRBaseClusterColorControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnhancedCurrentHueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -16147,8 +16733,8 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestTurnOffLightThatWeTurnedOn_36() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -16164,8 +16750,8 @@ class Test_TC_CC_8_1 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_37() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -16473,8 +17059,8 @@ class Test_TC_BINFO_2_1 : public TestCommandBridge { CHIP_ERROR TestQueryDataModelRevision_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeDataModelRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -16491,8 +17077,8 @@ class Test_TC_BINFO_2_1 : public TestCommandBridge { CHIP_ERROR TestQueryVendorName_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeVendorNameWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -16510,8 +17096,8 @@ class Test_TC_BINFO_2_1 : public TestCommandBridge { CHIP_ERROR TestQueryVendorID_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeVendorIDWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -16528,8 +17114,8 @@ class Test_TC_BINFO_2_1 : public TestCommandBridge { CHIP_ERROR TestQueryProductName_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeProductNameWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -16547,8 +17133,8 @@ class Test_TC_BINFO_2_1 : public TestCommandBridge { CHIP_ERROR TestQueryProductID_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeProductIDWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -16565,8 +17151,8 @@ class Test_TC_BINFO_2_1 : public TestCommandBridge { CHIP_ERROR TestQueryNodeLabel_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -16584,8 +17170,8 @@ class Test_TC_BINFO_2_1 : public TestCommandBridge { CHIP_ERROR TestQueryUserLocation_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLocationWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -16603,8 +17189,8 @@ class Test_TC_BINFO_2_1 : public TestCommandBridge { CHIP_ERROR TestQueryHardwareVersion_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeHardwareVersionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -16621,8 +17207,8 @@ class Test_TC_BINFO_2_1 : public TestCommandBridge { CHIP_ERROR TestQueryHardwareVersionString_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeHardwareVersionStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -16659,8 +17245,8 @@ class Test_TC_BINFO_2_1 : public TestCommandBridge { CHIP_ERROR TestQueryPartNumber_12() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePartNumberWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -16687,8 +17273,8 @@ class Test_TC_BINFO_2_1 : public TestCommandBridge { CHIP_ERROR TestQueryProductLabel_14() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeProductLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -16706,8 +17292,8 @@ class Test_TC_BINFO_2_1 : public TestCommandBridge { CHIP_ERROR TestQuerySerialNumber_15() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSerialNumberWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -16725,8 +17311,8 @@ class Test_TC_BINFO_2_1 : public TestCommandBridge { CHIP_ERROR TestQueryLocalConfigDisabled_16() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLocalConfigDisabledWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -16743,8 +17329,8 @@ class Test_TC_BINFO_2_1 : public TestCommandBridge { CHIP_ERROR TestQueryReachable_17() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeReachableWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -16761,8 +17347,8 @@ class Test_TC_BINFO_2_1 : public TestCommandBridge { CHIP_ERROR TestQueryUniqueID_18() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeUniqueIDWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -16912,8 +17498,10 @@ class Test_TC_DESC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDescriptor * cluster = [[MTRTestDescriptor alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDescriptor * cluster = [[MTRBaseClusterDescriptor alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -16935,8 +17523,10 @@ class Test_TC_DESC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeFeatureMap_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDescriptor * cluster = [[MTRTestDescriptor alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDescriptor * cluster = [[MTRBaseClusterDescriptor alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -16958,8 +17548,10 @@ class Test_TC_DESC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDescriptor * cluster = [[MTRTestDescriptor alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDescriptor * cluster = [[MTRBaseClusterDescriptor alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -16986,8 +17578,10 @@ class Test_TC_DESC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDescriptor * cluster = [[MTRTestDescriptor alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDescriptor * cluster = [[MTRBaseClusterDescriptor alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -17009,8 +17603,10 @@ class Test_TC_DESC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDescriptor * cluster = [[MTRTestDescriptor alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDescriptor * cluster = [[MTRBaseClusterDescriptor alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -17315,10 +17911,9 @@ class Test_TC_DGETH_2_1 : public TestCommandBridge { CHIP_ERROR TestReadPHYRateAttributeConstraints_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestEthernetNetworkDiagnostics * cluster = [[MTRTestEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterEthernetNetworkDiagnostics * cluster = + [[MTRBaseClusterEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePHYRateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -17341,10 +17936,9 @@ class Test_TC_DGETH_2_1 : public TestCommandBridge { CHIP_ERROR TestReadFullDuplexAttributeConstraints_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestEthernetNetworkDiagnostics * cluster = [[MTRTestEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterEthernetNetworkDiagnostics * cluster = + [[MTRBaseClusterEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFullDuplexWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -17365,10 +17959,9 @@ class Test_TC_DGETH_2_1 : public TestCommandBridge { CHIP_ERROR TestReadPacketRxCountAttributeConstraints_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestEthernetNetworkDiagnostics * cluster = [[MTRTestEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterEthernetNetworkDiagnostics * cluster = + [[MTRBaseClusterEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePacketRxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -17394,10 +17987,9 @@ class Test_TC_DGETH_2_1 : public TestCommandBridge { CHIP_ERROR TestReadPacketTxCountAttributeConstraints_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestEthernetNetworkDiagnostics * cluster = [[MTRTestEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterEthernetNetworkDiagnostics * cluster = + [[MTRBaseClusterEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePacketTxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -17423,10 +18015,9 @@ class Test_TC_DGETH_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTxErrCountAttributeConstraints_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestEthernetNetworkDiagnostics * cluster = [[MTRTestEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterEthernetNetworkDiagnostics * cluster = + [[MTRBaseClusterEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTxErrCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -17453,10 +18044,9 @@ class Test_TC_DGETH_2_1 : public TestCommandBridge { CHIP_ERROR TestReadCollisionCountAttributeConstraints_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestEthernetNetworkDiagnostics * cluster = [[MTRTestEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterEthernetNetworkDiagnostics * cluster = + [[MTRBaseClusterEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCollisionCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -17483,10 +18073,9 @@ class Test_TC_DGETH_2_1 : public TestCommandBridge { CHIP_ERROR TestReadOverrunCountAttributeConstraints_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestEthernetNetworkDiagnostics * cluster = [[MTRTestEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterEthernetNetworkDiagnostics * cluster = + [[MTRBaseClusterEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOverrunCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -17513,10 +18102,9 @@ class Test_TC_DGETH_2_1 : public TestCommandBridge { CHIP_ERROR TestReadCarrierDetectAttributeConstraints_13() { - MTRDevice * device = GetDevice("alpha"); - MTRTestEthernetNetworkDiagnostics * cluster = [[MTRTestEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterEthernetNetworkDiagnostics * cluster = + [[MTRBaseClusterEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCarrierDetectWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -17547,10 +18135,9 @@ class Test_TC_DGETH_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTimeSinceResetAttributeConstraints_15() { - MTRDevice * device = GetDevice("alpha"); - MTRTestEthernetNetworkDiagnostics * cluster = [[MTRTestEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterEthernetNetworkDiagnostics * cluster = + [[MTRBaseClusterEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTimeSinceResetWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -17726,10 +18313,9 @@ class Test_TC_DGETH_2_2 : public TestCommandBridge { CHIP_ERROR TestSendsResetCountsCommand_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestEthernetNetworkDiagnostics * cluster = [[MTRTestEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterEthernetNetworkDiagnostics * cluster = + [[MTRBaseClusterEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster resetCountsWithCompletionHandler:^(NSError * _Nullable err) { @@ -17745,10 +18331,9 @@ class Test_TC_DGETH_2_2 : public TestCommandBridge { CHIP_ERROR TestReadThePacketRxCountAttribute_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestEthernetNetworkDiagnostics * cluster = [[MTRTestEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterEthernetNetworkDiagnostics * cluster = + [[MTRBaseClusterEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePacketRxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -17769,10 +18354,9 @@ class Test_TC_DGETH_2_2 : public TestCommandBridge { CHIP_ERROR TestReadThePacketTxCountAttribute_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestEthernetNetworkDiagnostics * cluster = [[MTRTestEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterEthernetNetworkDiagnostics * cluster = + [[MTRBaseClusterEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePacketTxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -17793,10 +18377,9 @@ class Test_TC_DGETH_2_2 : public TestCommandBridge { CHIP_ERROR TestReadTheTxErrCountAttribute_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestEthernetNetworkDiagnostics * cluster = [[MTRTestEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterEthernetNetworkDiagnostics * cluster = + [[MTRBaseClusterEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTxErrCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -17817,10 +18400,9 @@ class Test_TC_DGETH_2_2 : public TestCommandBridge { CHIP_ERROR TestReadTheCollisionCountAttribute_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestEthernetNetworkDiagnostics * cluster = [[MTRTestEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterEthernetNetworkDiagnostics * cluster = + [[MTRBaseClusterEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCollisionCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -17841,10 +18423,9 @@ class Test_TC_DGETH_2_2 : public TestCommandBridge { CHIP_ERROR TestReadTheOverrunCountAttribute_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestEthernetNetworkDiagnostics * cluster = [[MTRTestEthernetNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterEthernetNetworkDiagnostics * cluster = + [[MTRBaseClusterEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOverrunCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -18012,8 +18593,10 @@ class Test_TC_FLW_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestFlowMeasurement * cluster = [[MTRTestFlowMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterFlowMeasurement * cluster = [[MTRBaseClusterFlowMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -18035,8 +18618,10 @@ class Test_TC_FLW_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeConstraintsFeatureMap_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestFlowMeasurement * cluster = [[MTRTestFlowMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterFlowMeasurement * cluster = [[MTRBaseClusterFlowMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -18058,8 +18643,10 @@ class Test_TC_FLW_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestFlowMeasurement * cluster = [[MTRTestFlowMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterFlowMeasurement * cluster = [[MTRBaseClusterFlowMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -18085,8 +18672,10 @@ class Test_TC_FLW_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestFlowMeasurement * cluster = [[MTRTestFlowMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterFlowMeasurement * cluster = [[MTRBaseClusterFlowMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -18117,8 +18706,10 @@ class Test_TC_FLW_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestFlowMeasurement * cluster = [[MTRTestFlowMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterFlowMeasurement * cluster = [[MTRBaseClusterFlowMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -18140,8 +18731,10 @@ class Test_TC_FLW_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestFlowMeasurement * cluster = [[MTRTestFlowMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterFlowMeasurement * cluster = [[MTRBaseClusterFlowMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -18300,8 +18893,10 @@ class Test_TC_FLW_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributeMeasuredValue_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestFlowMeasurement * cluster = [[MTRTestFlowMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterFlowMeasurement * cluster = [[MTRBaseClusterFlowMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -18322,8 +18917,10 @@ class Test_TC_FLW_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributeMinMeasuredValue_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestFlowMeasurement * cluster = [[MTRTestFlowMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterFlowMeasurement * cluster = [[MTRBaseClusterFlowMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -18344,8 +18941,10 @@ class Test_TC_FLW_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributeMaxMeasuredValue_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestFlowMeasurement * cluster = [[MTRTestFlowMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterFlowMeasurement * cluster = [[MTRBaseClusterFlowMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -18366,8 +18965,10 @@ class Test_TC_FLW_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeTolerance_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestFlowMeasurement * cluster = [[MTRTestFlowMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterFlowMeasurement * cluster = [[MTRBaseClusterFlowMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeToleranceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -18519,10 +19120,10 @@ class Test_TC_CGEN_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -18544,10 +19145,10 @@ class Test_TC_CGEN_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeFeatureMap_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -18569,10 +19170,10 @@ class Test_TC_CGEN_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -18600,10 +19201,10 @@ class Test_TC_CGEN_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -18628,10 +19229,10 @@ class Test_TC_CGEN_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -18842,10 +19443,10 @@ class Test_TC_CGEN_2_1 : public TestCommandBridge { CHIP_ERROR TestTh1ReadsTheBreadCrumbAttributeFromTheDut_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBreadcrumbWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -18862,10 +19463,10 @@ class Test_TC_CGEN_2_1 : public TestCommandBridge { CHIP_ERROR TestTh1WritesTheBreadCrumbAttributeAs1ToTheDut_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id breadcrumbArgument; @@ -18884,10 +19485,10 @@ class Test_TC_CGEN_2_1 : public TestCommandBridge { CHIP_ERROR TestTh1ReadsTheBreadCrumbAttributeFromTheDut_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBreadcrumbWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -18908,10 +19509,10 @@ class Test_TC_CGEN_2_1 : public TestCommandBridge { CHIP_ERROR TestTh1ReadsTheRegulatoryConfigAttributeFromTheDut_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRegulatoryConfigWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -18930,10 +19531,10 @@ class Test_TC_CGEN_2_1 : public TestCommandBridge { CHIP_ERROR TestTh1ReadsTheLocationCapabilityAttributeFromTheDut_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLocationCapabilityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -18953,10 +19554,10 @@ class Test_TC_CGEN_2_1 : public TestCommandBridge { CHIP_ERROR TestTh1ReadsBasicCommissioningInfoAttributeFromDutAndVerifyThatTheBasicCommissioningInfoAttributeHasTheFollowingFieldFailSafeExpiryLengthSecondsFieldValueIsWithinADurationRangeOf0To65535_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBasicCommissioningInfoWithCompletionHandler:^( @@ -18986,10 +19587,10 @@ class Test_TC_CGEN_2_1 : public TestCommandBridge { CHIP_ERROR TestTh1ReadsSupportsConcurrentConnectionAttributeFromTheDut_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -19126,10 +19727,10 @@ class Test_TC_DGGEN_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralDiagnostics * cluster = [[MTRTestGeneralDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralDiagnostics * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -19151,10 +19752,10 @@ class Test_TC_DGGEN_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeFeatureMap_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralDiagnostics * cluster = [[MTRTestGeneralDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralDiagnostics * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -19176,10 +19777,10 @@ class Test_TC_DGGEN_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralDiagnostics * cluster = [[MTRTestGeneralDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralDiagnostics * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -19204,10 +19805,10 @@ class Test_TC_DGGEN_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralDiagnostics * cluster = [[MTRTestGeneralDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralDiagnostics * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -19230,10 +19831,10 @@ class Test_TC_DGGEN_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralDiagnostics * cluster = [[MTRTestGeneralDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralDiagnostics * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -19509,10 +20110,10 @@ class Test_TC_DGGEN_2_1 : public TestCommandBridge { CHIP_ERROR TestThReadsNetworkInterfacesStructureAttributeFromDut_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralDiagnostics * cluster = [[MTRTestGeneralDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralDiagnostics * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNetworkInterfacesWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -19529,10 +20130,10 @@ class Test_TC_DGGEN_2_1 : public TestCommandBridge { CHIP_ERROR TestThReadsARebootCountAttributeValueFromDut_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralDiagnostics * cluster = [[MTRTestGeneralDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralDiagnostics * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRebootCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -19588,10 +20189,10 @@ class Test_TC_DGGEN_2_1 : public TestCommandBridge { CHIP_ERROR TestDutRebootsAndThReadsAUpTimeAttributeValueOfDutSinceSomeArbitraryStartTimeOfDutRebooting_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralDiagnostics * cluster = [[MTRTestGeneralDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralDiagnostics * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeUpTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -19610,10 +20211,10 @@ class Test_TC_DGGEN_2_1 : public TestCommandBridge { CHIP_ERROR TestThReadsATotalOperationalHoursAttributeValueFromDut_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralDiagnostics * cluster = [[MTRTestGeneralDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralDiagnostics * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTotalOperationalHoursWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -19653,10 +20254,10 @@ class Test_TC_DGGEN_2_1 : public TestCommandBridge { CHIP_ERROR TestThReadsBootReasonAttributeValueFromDut_13() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralDiagnostics * cluster = [[MTRTestGeneralDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralDiagnostics * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBootReasonsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -19834,8 +20435,8 @@ class Test_TC_I_1_1 : public TestCommandBridge { CHIP_ERROR TestThReadsTheClusterRevisionAttributeFromTheDut_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -19857,8 +20458,8 @@ class Test_TC_I_1_1 : public TestCommandBridge { CHIP_ERROR TestThReadsTheFeatureMapAttributeFromTheDut_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -19880,8 +20481,8 @@ class Test_TC_I_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -19906,8 +20507,8 @@ class Test_TC_I_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -19931,8 +20532,8 @@ class Test_TC_I_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -20061,8 +20662,8 @@ class Test_TC_I_2_1 : public TestCommandBridge { CHIP_ERROR TestThReadsTheIdentifyTimeAttributeFromTheDut_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeIdentifyTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -20079,8 +20680,8 @@ class Test_TC_I_2_1 : public TestCommandBridge { CHIP_ERROR TestThReadsTheIdentifyTypeAttributeFromTheDut_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeIdentifyTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -20302,8 +20903,8 @@ class Test_TC_I_2_2 : public TestCommandBridge { CHIP_ERROR TestThSendsIdentifyCommandToDutWithTheIdentifyTimeFieldSetTo0x003c60s_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRIdentifyClusterIdentifyParams alloc] init]; @@ -20322,8 +20923,8 @@ class Test_TC_I_2_2 : public TestCommandBridge { CHIP_ERROR TestThReadsImmediatelyIdentifyTimeAttributeFromDut1_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeIdentifyTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -20349,8 +20950,8 @@ class Test_TC_I_2_2 : public TestCommandBridge { CHIP_ERROR TestAfter10SecondsTheThReadsIdentifyTimeAttributeFromDut_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeIdentifyTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -20379,8 +20980,8 @@ class Test_TC_I_2_2 : public TestCommandBridge { CHIP_ERROR TestThSendsIdentifyCommandToDutWithTheIdentifyTimeFieldSetTo0x0000StopIdentifying_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRIdentifyClusterIdentifyParams alloc] init]; @@ -20402,8 +21003,8 @@ class Test_TC_I_2_2 : public TestCommandBridge { CHIP_ERROR TestThReadsImmediatelyIdentifyTimeAttributeFromDut2_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeIdentifyTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -20433,8 +21034,8 @@ class Test_TC_I_2_2 : public TestCommandBridge { CHIP_ERROR TestThWritesAValueOf0x000f15sToIdentifyTimeAttributeOfDut_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id identifyTimeArgument; @@ -20460,8 +21061,8 @@ class Test_TC_I_2_2 : public TestCommandBridge { CHIP_ERROR TestAfter5SecondsTheThReadsIdentifyTimeAttributeFromDut_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeIdentifyTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -20805,8 +21406,8 @@ class Test_TC_I_2_3 : public TestCommandBridge { CHIP_ERROR TestThSendsTriggerEffectCommandToDutWithTheEffectIdentifierFieldSetTo0x00BlinkAndTheEffectVariantFieldSetTo0x00Default_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRIdentifyClusterTriggerEffectParams alloc] init]; @@ -20838,8 +21439,8 @@ class Test_TC_I_2_3 : public TestCommandBridge { CHIP_ERROR TestThSendsTriggerEffectCommandToDutWithTheEffectIdentifierFieldSetTo0x01BreatheAndTheEffectVariantFieldSetTo0x00Default_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRIdentifyClusterTriggerEffectParams alloc] init]; @@ -20871,8 +21472,8 @@ class Test_TC_I_2_3 : public TestCommandBridge { CHIP_ERROR TestThSendsTriggerEffectCommandToDutWithTheEffectIdentifierFieldSetTo0x02OkayAndTheEffectVariantFieldSetTo0x00Default_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRIdentifyClusterTriggerEffectParams alloc] init]; @@ -20904,8 +21505,8 @@ class Test_TC_I_2_3 : public TestCommandBridge { CHIP_ERROR TestThSendsTriggerEffectCommandToDutWithTheEffectIdentifierFieldSetTo0x0bChannelChangeAndTheEffectVariantFieldSetTo0x00Default_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRIdentifyClusterTriggerEffectParams alloc] init]; @@ -20937,8 +21538,8 @@ class Test_TC_I_2_3 : public TestCommandBridge { CHIP_ERROR TestThSendsTriggerEffectCommandToDutWithTheEffectIdentifierFieldSetTo0x01BreatheAndTheEffectVariantFieldSetTo0x00Default_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRIdentifyClusterTriggerEffectParams alloc] init]; @@ -20970,8 +21571,8 @@ class Test_TC_I_2_3 : public TestCommandBridge { CHIP_ERROR TestThSendsTriggerEffectCommandToDutWithTheEffectIdentifierFieldSetTo0xfeFinishEffectAndTheEffectVariantFieldSetTo0x00Default_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRIdentifyClusterTriggerEffectParams alloc] init]; @@ -21003,8 +21604,8 @@ class Test_TC_I_2_3 : public TestCommandBridge { CHIP_ERROR TestThSendsTriggerEffectCommandToDutWithTheEffectIdentifierFieldSetTo0x01BreatheAndTheEffectVariantFieldSetTo0x00Default_13() { - MTRDevice * device = GetDevice("alpha"); - MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRIdentifyClusterTriggerEffectParams alloc] init]; @@ -21036,8 +21637,8 @@ class Test_TC_I_2_3 : public TestCommandBridge { CHIP_ERROR TestThSendsTriggerEffectCommandToDutWithTheEffectIdentifierFieldSetTo0xffStopEffectAndTheEffectVariantFieldSetTo0x00Default_15() { - MTRDevice * device = GetDevice("alpha"); - MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRIdentifyClusterTriggerEffectParams alloc] init]; @@ -21069,8 +21670,8 @@ class Test_TC_I_2_3 : public TestCommandBridge { CHIP_ERROR TestThSendsTriggerEffectCommandToDutWithTheEffectIdentifierFieldSetTo0x00BlinkAndTheEffectVariantFieldSetTo0x42Unknown_17() { - MTRDevice * device = GetDevice("alpha"); - MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRIdentifyClusterTriggerEffectParams alloc] init]; @@ -21102,8 +21703,8 @@ class Test_TC_I_2_3 : public TestCommandBridge { CHIP_ERROR TestThSendsTriggerEffectCommandToDutWithTheEffectIdentifierFieldSetTo0xffStopEffectAndTheEffectVariantFieldSetTo0x00Default_19() { - MTRDevice * device = GetDevice("alpha"); - MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRIdentifyClusterTriggerEffectParams alloc] init]; @@ -21266,10 +21867,9 @@ class Test_TC_ILL_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestIlluminanceMeasurement * cluster = [[MTRTestIlluminanceMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterIlluminanceMeasurement * cluster = + [[MTRBaseClusterIlluminanceMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -21291,10 +21891,9 @@ class Test_TC_ILL_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeConstraintsFeatureMap_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestIlluminanceMeasurement * cluster = [[MTRTestIlluminanceMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterIlluminanceMeasurement * cluster = + [[MTRBaseClusterIlluminanceMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -21316,10 +21915,9 @@ class Test_TC_ILL_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestIlluminanceMeasurement * cluster = [[MTRTestIlluminanceMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterIlluminanceMeasurement * cluster = + [[MTRBaseClusterIlluminanceMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -21345,10 +21943,9 @@ class Test_TC_ILL_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestIlluminanceMeasurement * cluster = [[MTRTestIlluminanceMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterIlluminanceMeasurement * cluster = + [[MTRBaseClusterIlluminanceMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -21370,10 +21967,9 @@ class Test_TC_ILL_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestIlluminanceMeasurement * cluster = [[MTRTestIlluminanceMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterIlluminanceMeasurement * cluster = + [[MTRBaseClusterIlluminanceMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -21543,10 +22139,9 @@ class Test_TC_ILL_2_1 : public TestCommandBridge { CHIP_ERROR TestThReadsMeasuredValueAttributeFromDut_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestIlluminanceMeasurement * cluster = [[MTRTestIlluminanceMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterIlluminanceMeasurement * cluster = + [[MTRBaseClusterIlluminanceMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -21569,10 +22164,9 @@ class Test_TC_ILL_2_1 : public TestCommandBridge { CHIP_ERROR TestThReadsMinMeasuredValueAttributeFromDut_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestIlluminanceMeasurement * cluster = [[MTRTestIlluminanceMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterIlluminanceMeasurement * cluster = + [[MTRBaseClusterIlluminanceMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -21595,10 +22189,9 @@ class Test_TC_ILL_2_1 : public TestCommandBridge { CHIP_ERROR TestThReadsMaxMeasuredValueAttributeFromDut_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestIlluminanceMeasurement * cluster = [[MTRTestIlluminanceMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterIlluminanceMeasurement * cluster = + [[MTRBaseClusterIlluminanceMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -21621,10 +22214,9 @@ class Test_TC_ILL_2_1 : public TestCommandBridge { CHIP_ERROR TestThReadsToleranceAttributeFromDut_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestIlluminanceMeasurement * cluster = [[MTRTestIlluminanceMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterIlluminanceMeasurement * cluster = + [[MTRBaseClusterIlluminanceMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeToleranceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -21644,10 +22236,9 @@ class Test_TC_ILL_2_1 : public TestCommandBridge { CHIP_ERROR TestThReadsLightSensorTypeAttributeFromDut_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestIlluminanceMeasurement * cluster = [[MTRTestIlluminanceMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterIlluminanceMeasurement * cluster = + [[MTRBaseClusterIlluminanceMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLightSensorTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -21806,8 +22397,10 @@ class Test_TC_LVL_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -21829,8 +22422,10 @@ class Test_TC_LVL_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeFeatureMap_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -21852,8 +22447,10 @@ class Test_TC_LVL_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -21874,8 +22471,10 @@ class Test_TC_LVL_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -21901,8 +22500,10 @@ class Test_TC_LVL_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -22251,8 +22852,10 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { CHIP_ERROR TestResetLevelTo254_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRLevelControlClusterMoveToLevelParams alloc] init]; @@ -22282,8 +22885,10 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheCurrentLevelAttribute_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22309,8 +22914,10 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheRemainingTimeAttribute_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRemainingTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22333,8 +22940,10 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheMinLevelAttribute_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22363,8 +22972,10 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheMinLevelAttribute_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22388,8 +22999,10 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheMaxLevelAttribute_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22418,8 +23031,10 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheMaxLevelAttribute_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22442,8 +23057,10 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { CHIP_ERROR TestStep4b4cReadsTheCurrentLevelAttribute_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22463,8 +23080,10 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { CHIP_ERROR TestStep4b4cReadsTheCurrentLevelAttribute_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22484,8 +23103,10 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheCurrentFrequencyAttribute_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentFrequencyWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22503,8 +23124,10 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheMinFrequencyAttribute_12() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinFrequencyWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22526,8 +23149,10 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheMaxFrequencyAttribute_13() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxFrequencyWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22548,8 +23173,10 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { CHIP_ERROR TestStep7b7cReadsTheCurrentFrequencyAttribute_14() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentFrequencyWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22569,8 +23196,10 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheOnOffTransitionTimeAttribute_15() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffTransitionTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22592,8 +23221,10 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheOnLevelAttribute_16() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22616,8 +23247,10 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheOnLevelAttribute_17() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22640,8 +23273,10 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheOnTransitionTimeAttribute_18() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnTransitionTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22662,8 +23297,10 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheOffTransitionTimeAttribute_19() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOffTransitionTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22684,8 +23321,10 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheDefaultMoveRateAttribute_20() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeDefaultMoveRateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22706,8 +23345,10 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheOptionsAttribute_21() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOptionsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -22729,8 +23370,10 @@ class Test_TC_LVL_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheStartUpCurrentLevelAttribute_22() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeStartUpCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -23044,8 +23687,10 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsTheOnOffTransitionTimeAttributeFromTheDut_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffTransitionTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -23067,8 +23712,10 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesTheOnOffTransitionTimeAttributeOnTheDut_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id onOffTransitionTimeArgument; @@ -23087,8 +23734,10 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsTheOnOffTransitionTimeAttributeFromTheDut_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffTransitionTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -23111,8 +23760,10 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsTheOnLevelAttributeFromTheDut_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -23136,8 +23787,10 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesTheOnLevelAttributeOnTheDut_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id onLevelArgument; @@ -23156,8 +23809,10 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsTheOnLevelAttributeFromTheDut_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -23185,8 +23840,10 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsTheOnTransitionTimeAttributeFromTheDut_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnTransitionTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -23210,8 +23867,10 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesTheOnTransitionTimeAttributeOnTheDut_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id onTransitionTimeArgument; @@ -23230,8 +23889,10 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsTheOnTransitionTimeAttributeFromTheDut_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnTransitionTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -23259,8 +23920,10 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsTheOffTransitionTimeAttributeFromTheDut_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOffTransitionTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -23284,8 +23947,10 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesTheOffTransitionTimeAttributeOnTheDut_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id offTransitionTimeArgument; @@ -23304,8 +23969,10 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsTheOffTransitionTimeAttributeFromTheDut_12() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOffTransitionTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -23332,8 +23999,10 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsTheDefaultMoveRateAttributeFromTheDut_13() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeDefaultMoveRateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -23359,8 +24028,10 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesTheDefaultMoveRateAttributeOnTheDut_14() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id defaultMoveRateArgument; @@ -23379,8 +24050,10 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsTheDefaultMoveRateAttributeFromTheDut_15() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeDefaultMoveRateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -23407,8 +24080,10 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsTheStartUpCurrentLevelAttributeFromTheDut_16() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeStartUpCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -23432,8 +24107,10 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesTheStartUpCurrentLevelAttributeOnTheDut_17() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id startUpCurrentLevelArgument; @@ -23452,8 +24129,10 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsTheStartUpCurrentLevelAttributeFromTheDut_18() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeStartUpCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -23480,8 +24159,10 @@ class Test_TC_LVL_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesBackDefaultValueOfOnOffTransitionTimeAttribute_19() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id onOffTransitionTimeArgument; @@ -23762,8 +24443,10 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheMinLevelAttribute_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -23780,8 +24463,10 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheMaxLevelAttribute_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -23798,8 +24483,10 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { CHIP_ERROR TestSendsAMoveToLevelCommand_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRLevelControlClusterMoveToLevelParams alloc] init]; @@ -23828,8 +24515,10 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -23850,8 +24539,10 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { CHIP_ERROR TestSendsAMoveToLevelCommand_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRLevelControlClusterMoveToLevelParams alloc] init]; @@ -23880,8 +24571,10 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -23902,8 +24595,10 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { CHIP_ERROR TestReadsOnOffTransitionTimeAttributeFromDut_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffTransitionTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -23920,8 +24615,10 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { CHIP_ERROR TestSendsAMoveToLevelCommand_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRLevelControlClusterMoveToLevelParams alloc] init]; @@ -23950,8 +24647,10 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_12() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -23972,8 +24671,10 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheOnOffTransitionTimeAttributeFromTheDut_13() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffTransitionTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -23990,8 +24691,10 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { CHIP_ERROR TestSendsAMoveToLevelCommand_14() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRLevelControlClusterMoveToLevelParams alloc] init]; @@ -24020,8 +24723,10 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_16() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -24042,8 +24747,10 @@ class Test_TC_LVL_3_1 : public TestCommandBridge { CHIP_ERROR TestResetLevelTo254_17() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRLevelControlClusterMoveToLevelParams alloc] init]; @@ -24334,8 +25041,10 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { CHIP_ERROR TestReadsMinlevelAttributeFromDut_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -24356,8 +25065,10 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { CHIP_ERROR TestSendsAMoveToLevelCommand_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRLevelControlClusterMoveToLevelParams alloc] init]; @@ -24380,8 +25091,10 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { CHIP_ERROR TestReadsMaxLevelAttributeFromDut_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -24402,8 +25115,10 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { CHIP_ERROR TestSendsAMoveUpCommand_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRLevelControlClusterMoveParams alloc] init]; @@ -24442,8 +25157,10 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -24464,8 +25181,10 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { CHIP_ERROR TestSendsAMoveWithOnOffCommand_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRLevelControlClusterMoveWithOnOffParams alloc] init]; @@ -24502,8 +25221,10 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -24528,8 +25249,10 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { CHIP_ERROR TestReadsDefaultMoveRateAttributeFromDut_12() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeDefaultMoveRateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -24553,8 +25276,10 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { CHIP_ERROR TestSendsAMoveUpCommandAtDefaultMoveRate_13() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRLevelControlClusterMoveParams alloc] init]; @@ -24592,8 +25317,10 @@ class Test_TC_LVL_4_1 : public TestCommandBridge { CHIP_ERROR TestResetLevelTo254_16() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRLevelControlClusterMoveToLevelParams alloc] init]; @@ -24816,8 +25543,10 @@ class Test_TC_LVL_5_1 : public TestCommandBridge { CHIP_ERROR TestReadsMinlevelAttributeFromDut_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -24838,8 +25567,10 @@ class Test_TC_LVL_5_1 : public TestCommandBridge { CHIP_ERROR TestSendsMoveToLevelWithOnOffCommandToDut_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRLevelControlClusterMoveToLevelWithOnOffParams alloc] init]; @@ -24860,8 +25591,10 @@ class Test_TC_LVL_5_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -24882,8 +25615,10 @@ class Test_TC_LVL_5_1 : public TestCommandBridge { CHIP_ERROR TestSendsStepUpCommandToDut_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRLevelControlClusterStepParams alloc] init]; @@ -24913,8 +25648,10 @@ class Test_TC_LVL_5_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -24936,8 +25673,10 @@ class Test_TC_LVL_5_1 : public TestCommandBridge { CHIP_ERROR TestSendsAStepWithOnOffCommand_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRLevelControlClusterStepWithOnOffParams alloc] init]; @@ -24965,8 +25704,10 @@ class Test_TC_LVL_5_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -24987,8 +25728,10 @@ class Test_TC_LVL_5_1 : public TestCommandBridge { CHIP_ERROR TestResetLevelTo254_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRLevelControlClusterMoveToLevelParams alloc] init]; @@ -25251,8 +25994,10 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { CHIP_ERROR TestReadsMinlevelAttributeFromDut_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -25273,8 +26018,10 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { CHIP_ERROR TestSendsMoveToLevelWithOnOffCommandToDut_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRLevelControlClusterMoveToLevelWithOnOffParams alloc] init]; @@ -25295,8 +26042,10 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -25318,8 +26067,10 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { CHIP_ERROR TestSendsAMoveUpCommandToDut_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRLevelControlClusterMoveParams alloc] init]; @@ -25348,8 +26099,10 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { CHIP_ERROR TestSendsStopCommandToDut_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRLevelControlClusterStopParams alloc] init]; @@ -25378,8 +26131,10 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -25399,8 +26154,10 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { CHIP_ERROR TestSendsAMoveUpCommandToDut_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRLevelControlClusterMoveParams alloc] init]; @@ -25429,8 +26186,10 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { CHIP_ERROR TestSendsStopCommandToDut_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRLevelControlClusterStopParams alloc] init]; @@ -25459,8 +26218,10 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentLevelAttributeFromDut_13() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -25480,8 +26241,10 @@ class Test_TC_LVL_6_1 : public TestCommandBridge { CHIP_ERROR TestResetLevelTo254_14() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLevelControl * cluster = [[MTRTestLevelControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLevelControl * cluster = [[MTRBaseClusterLevelControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRLevelControlClusterMoveToLevelParams alloc] init]; @@ -25642,8 +26405,8 @@ class Test_TC_MC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLowPower * cluster = [[MTRTestLowPower alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLowPower * cluster = [[MTRBaseClusterLowPower alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -25665,8 +26428,8 @@ class Test_TC_MC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalGlobalAttributeFeatureMap_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLowPower * cluster = [[MTRTestLowPower alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLowPower * cluster = [[MTRBaseClusterLowPower alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -25688,8 +26451,8 @@ class Test_TC_MC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLowPower * cluster = [[MTRTestLowPower alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLowPower * cluster = [[MTRBaseClusterLowPower alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -25716,8 +26479,8 @@ class Test_TC_MC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLowPower * cluster = [[MTRTestLowPower alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLowPower * cluster = [[MTRBaseClusterLowPower alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -25740,8 +26503,8 @@ class Test_TC_MC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLowPower * cluster = [[MTRTestLowPower alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLowPower * cluster = [[MTRBaseClusterLowPower alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -25908,8 +26671,10 @@ class Test_TC_MC_1_2 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestKeypadInput * cluster = [[MTRTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterKeypadInput * cluster = [[MTRBaseClusterKeypadInput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -25931,8 +26696,10 @@ class Test_TC_MC_1_2 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalGlobalAttributeFeatureMap_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestKeypadInput * cluster = [[MTRTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterKeypadInput * cluster = [[MTRBaseClusterKeypadInput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -25952,8 +26719,10 @@ class Test_TC_MC_1_2 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestKeypadInput * cluster = [[MTRTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterKeypadInput * cluster = [[MTRBaseClusterKeypadInput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -25980,8 +26749,10 @@ class Test_TC_MC_1_2 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestKeypadInput * cluster = [[MTRTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterKeypadInput * cluster = [[MTRBaseClusterKeypadInput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -26004,8 +26775,10 @@ class Test_TC_MC_1_2 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestKeypadInput * cluster = [[MTRTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterKeypadInput * cluster = [[MTRBaseClusterKeypadInput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -26177,10 +26950,10 @@ class Test_TC_MC_1_3 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestApplicationLauncher * cluster = [[MTRTestApplicationLauncher alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterApplicationLauncher * cluster = [[MTRBaseClusterApplicationLauncher alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -26202,10 +26975,10 @@ class Test_TC_MC_1_3 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalGlobalAttributeFeatureMap_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestApplicationLauncher * cluster = [[MTRTestApplicationLauncher alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterApplicationLauncher * cluster = [[MTRBaseClusterApplicationLauncher alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -26227,10 +27000,10 @@ class Test_TC_MC_1_3 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestApplicationLauncher * cluster = [[MTRTestApplicationLauncher alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterApplicationLauncher * cluster = [[MTRBaseClusterApplicationLauncher alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -26253,10 +27026,10 @@ class Test_TC_MC_1_3 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestApplicationLauncher * cluster = [[MTRTestApplicationLauncher alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterApplicationLauncher * cluster = [[MTRBaseClusterApplicationLauncher alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -26281,10 +27054,10 @@ class Test_TC_MC_1_3 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestApplicationLauncher * cluster = [[MTRTestApplicationLauncher alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterApplicationLauncher * cluster = [[MTRBaseClusterApplicationLauncher alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -26456,8 +27229,10 @@ class Test_TC_MC_1_4 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaInput * cluster = [[MTRTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaInput * cluster = [[MTRBaseClusterMediaInput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -26479,8 +27254,10 @@ class Test_TC_MC_1_4 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalGlobalAttributeFeatureMap_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaInput * cluster = [[MTRTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaInput * cluster = [[MTRBaseClusterMediaInput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -26502,8 +27279,10 @@ class Test_TC_MC_1_4 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaInput * cluster = [[MTRTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaInput * cluster = [[MTRBaseClusterMediaInput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -26526,8 +27305,10 @@ class Test_TC_MC_1_4 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaInput * cluster = [[MTRTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaInput * cluster = [[MTRBaseClusterMediaInput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -26553,8 +27334,10 @@ class Test_TC_MC_1_4 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaInput * cluster = [[MTRTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaInput * cluster = [[MTRBaseClusterMediaInput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -26717,8 +27500,8 @@ class Test_TC_MC_1_5 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWakeOnLan * cluster = [[MTRTestWakeOnLan alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWakeOnLan * cluster = [[MTRBaseClusterWakeOnLan alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -26740,8 +27523,8 @@ class Test_TC_MC_1_5 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalGlobalAttributeFeatureMap_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWakeOnLan * cluster = [[MTRTestWakeOnLan alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWakeOnLan * cluster = [[MTRBaseClusterWakeOnLan alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -26763,8 +27546,8 @@ class Test_TC_MC_1_5 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWakeOnLan * cluster = [[MTRTestWakeOnLan alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWakeOnLan * cluster = [[MTRBaseClusterWakeOnLan alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -26787,8 +27570,8 @@ class Test_TC_MC_1_5 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWakeOnLan * cluster = [[MTRTestWakeOnLan alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWakeOnLan * cluster = [[MTRBaseClusterWakeOnLan alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -26810,8 +27593,8 @@ class Test_TC_MC_1_5 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWakeOnLan * cluster = [[MTRTestWakeOnLan alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWakeOnLan * cluster = [[MTRBaseClusterWakeOnLan alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -26982,8 +27765,8 @@ class Test_TC_MC_1_6 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestChannel * cluster = [[MTRTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterChannel * cluster = [[MTRBaseClusterChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -27005,8 +27788,8 @@ class Test_TC_MC_1_6 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalGlobalAttributeFeatureMap_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestChannel * cluster = [[MTRTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterChannel * cluster = [[MTRBaseClusterChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -27026,8 +27809,8 @@ class Test_TC_MC_1_6 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestChannel * cluster = [[MTRTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterChannel * cluster = [[MTRBaseClusterChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -27050,8 +27833,8 @@ class Test_TC_MC_1_6 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestChannel * cluster = [[MTRTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterChannel * cluster = [[MTRBaseClusterChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -27076,8 +27859,8 @@ class Test_TC_MC_1_6 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestChannel * cluster = [[MTRTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterChannel * cluster = [[MTRBaseClusterChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -27239,8 +28022,10 @@ class Test_TC_MC_1_7 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -27262,8 +28047,10 @@ class Test_TC_MC_1_7 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalGlobalAttributeFeatureMap_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -27283,8 +28070,10 @@ class Test_TC_MC_1_7 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -27308,8 +28097,10 @@ class Test_TC_MC_1_7 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -27330,8 +28121,10 @@ class Test_TC_MC_1_7 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -27495,8 +28288,10 @@ class Test_TC_MC_1_8 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAudioOutput * cluster = [[MTRTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAudioOutput * cluster = [[MTRBaseClusterAudioOutput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -27518,8 +28313,10 @@ class Test_TC_MC_1_8 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalGlobalAttributeFeatureMap_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAudioOutput * cluster = [[MTRTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAudioOutput * cluster = [[MTRBaseClusterAudioOutput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -27541,8 +28338,10 @@ class Test_TC_MC_1_8 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAudioOutput * cluster = [[MTRTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAudioOutput * cluster = [[MTRBaseClusterAudioOutput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -27567,8 +28366,10 @@ class Test_TC_MC_1_8 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAudioOutput * cluster = [[MTRTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAudioOutput * cluster = [[MTRBaseClusterAudioOutput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -27587,8 +28388,10 @@ class Test_TC_MC_1_8 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAudioOutput * cluster = [[MTRTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAudioOutput * cluster = [[MTRBaseClusterAudioOutput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -27766,8 +28569,10 @@ class Test_TC_MC_1_9 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTargetNavigator * cluster = [[MTRTestTargetNavigator alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTargetNavigator * cluster = [[MTRBaseClusterTargetNavigator alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -27789,8 +28594,10 @@ class Test_TC_MC_1_9 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalGlobalAttributeFeatureMap_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTargetNavigator * cluster = [[MTRTestTargetNavigator alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTargetNavigator * cluster = [[MTRBaseClusterTargetNavigator alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -27812,8 +28619,10 @@ class Test_TC_MC_1_9 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTargetNavigator * cluster = [[MTRTestTargetNavigator alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTargetNavigator * cluster = [[MTRBaseClusterTargetNavigator alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -27842,8 +28651,10 @@ class Test_TC_MC_1_9 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTargetNavigator * cluster = [[MTRTestTargetNavigator alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTargetNavigator * cluster = [[MTRBaseClusterTargetNavigator alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -27871,8 +28682,10 @@ class Test_TC_MC_1_9 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTargetNavigator * cluster = [[MTRTestTargetNavigator alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTargetNavigator * cluster = [[MTRBaseClusterTargetNavigator alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -27895,8 +28708,10 @@ class Test_TC_MC_1_9 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTargetNavigator * cluster = [[MTRTestTargetNavigator alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTargetNavigator * cluster = [[MTRBaseClusterTargetNavigator alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -28064,8 +28879,10 @@ class Test_TC_MC_1_10 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestApplicationBasic * cluster = [[MTRTestApplicationBasic alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -28087,8 +28904,10 @@ class Test_TC_MC_1_10 : public TestCommandBridge { CHIP_ERROR TestReadFeatureMapAttributeFromTheDut_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestApplicationBasic * cluster = [[MTRTestApplicationBasic alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -28110,8 +28929,10 @@ class Test_TC_MC_1_10 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestApplicationBasic * cluster = [[MTRTestApplicationBasic alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -28139,8 +28960,10 @@ class Test_TC_MC_1_10 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestApplicationBasic * cluster = [[MTRTestApplicationBasic alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -28162,8 +28985,10 @@ class Test_TC_MC_1_10 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestApplicationBasic * cluster = [[MTRTestApplicationBasic alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -28334,8 +29159,10 @@ class Test_TC_MC_1_11 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestContentLauncher * cluster = [[MTRTestContentLauncher alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterContentLauncher * cluster = [[MTRBaseClusterContentLauncher alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -28357,8 +29184,10 @@ class Test_TC_MC_1_11 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalGlobalAttributeFeatureMap_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestContentLauncher * cluster = [[MTRTestContentLauncher alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterContentLauncher * cluster = [[MTRBaseClusterContentLauncher alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -28378,8 +29207,10 @@ class Test_TC_MC_1_11 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestContentLauncher * cluster = [[MTRTestContentLauncher alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterContentLauncher * cluster = [[MTRBaseClusterContentLauncher alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -28402,8 +29233,10 @@ class Test_TC_MC_1_11 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestContentLauncher * cluster = [[MTRTestContentLauncher alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterContentLauncher * cluster = [[MTRBaseClusterContentLauncher alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -28423,8 +29256,10 @@ class Test_TC_MC_1_11 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestContentLauncher * cluster = [[MTRTestContentLauncher alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterContentLauncher * cluster = [[MTRBaseClusterContentLauncher alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -28588,8 +29423,10 @@ class Test_TC_MC_1_12 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAccountLogin * cluster = [[MTRTestAccountLogin alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAccountLogin * cluster = [[MTRBaseClusterAccountLogin alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -28611,8 +29448,10 @@ class Test_TC_MC_1_12 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalGlobalAttributeFeatureMap_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAccountLogin * cluster = [[MTRTestAccountLogin alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAccountLogin * cluster = [[MTRBaseClusterAccountLogin alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -28634,8 +29473,10 @@ class Test_TC_MC_1_12 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAccountLogin * cluster = [[MTRTestAccountLogin alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAccountLogin * cluster = [[MTRBaseClusterAccountLogin alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -28662,8 +29503,10 @@ class Test_TC_MC_1_12 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAccountLogin * cluster = [[MTRTestAccountLogin alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAccountLogin * cluster = [[MTRBaseClusterAccountLogin alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -28688,8 +29531,10 @@ class Test_TC_MC_1_12 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAccountLogin * cluster = [[MTRTestAccountLogin alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAccountLogin * cluster = [[MTRBaseClusterAccountLogin alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -28816,8 +29661,8 @@ class Test_TC_MC_2_1 : public TestCommandBridge { CHIP_ERROR TestThSendsSleepCommandToDut_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLowPower * cluster = [[MTRTestLowPower alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLowPower * cluster = [[MTRBaseClusterLowPower alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster sleepWithCompletionHandler:^(NSError * _Nullable err) { @@ -28939,8 +29784,10 @@ class Test_TC_MC_3_2 : public TestCommandBridge { CHIP_ERROR TestThSendsCecSettingsKeys0x0AToDut_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestKeypadInput * cluster = [[MTRTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterKeypadInput * cluster = [[MTRBaseClusterKeypadInput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRKeypadInputClusterSendKeyParams alloc] init]; @@ -28959,8 +29806,10 @@ class Test_TC_MC_3_2 : public TestCommandBridge { CHIP_ERROR TestThSendsCecHomeKeys0x09ToDut_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestKeypadInput * cluster = [[MTRTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterKeypadInput * cluster = [[MTRBaseClusterKeypadInput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRKeypadInputClusterSendKeyParams alloc] init]; @@ -29162,8 +30011,10 @@ class Test_TC_MC_3_3 : public TestCommandBridge { CHIP_ERROR TestSendNumbers1_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestKeypadInput * cluster = [[MTRTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterKeypadInput * cluster = [[MTRBaseClusterKeypadInput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRKeypadInputClusterSendKeyParams alloc] init]; @@ -29182,8 +30033,10 @@ class Test_TC_MC_3_3 : public TestCommandBridge { CHIP_ERROR TestSendNumbers2_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestKeypadInput * cluster = [[MTRTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterKeypadInput * cluster = [[MTRBaseClusterKeypadInput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRKeypadInputClusterSendKeyParams alloc] init]; @@ -29202,8 +30055,10 @@ class Test_TC_MC_3_3 : public TestCommandBridge { CHIP_ERROR TestSendNumbers3_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestKeypadInput * cluster = [[MTRTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterKeypadInput * cluster = [[MTRBaseClusterKeypadInput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRKeypadInputClusterSendKeyParams alloc] init]; @@ -29222,8 +30077,10 @@ class Test_TC_MC_3_3 : public TestCommandBridge { CHIP_ERROR TestSendNumbers4_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestKeypadInput * cluster = [[MTRTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterKeypadInput * cluster = [[MTRBaseClusterKeypadInput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRKeypadInputClusterSendKeyParams alloc] init]; @@ -29242,8 +30099,10 @@ class Test_TC_MC_3_3 : public TestCommandBridge { CHIP_ERROR TestSendNumbers5_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestKeypadInput * cluster = [[MTRTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterKeypadInput * cluster = [[MTRBaseClusterKeypadInput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRKeypadInputClusterSendKeyParams alloc] init]; @@ -29262,8 +30121,10 @@ class Test_TC_MC_3_3 : public TestCommandBridge { CHIP_ERROR TestSendNumbers6_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestKeypadInput * cluster = [[MTRTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterKeypadInput * cluster = [[MTRBaseClusterKeypadInput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRKeypadInputClusterSendKeyParams alloc] init]; @@ -29282,8 +30143,10 @@ class Test_TC_MC_3_3 : public TestCommandBridge { CHIP_ERROR TestSendNumbers7_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestKeypadInput * cluster = [[MTRTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterKeypadInput * cluster = [[MTRBaseClusterKeypadInput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRKeypadInputClusterSendKeyParams alloc] init]; @@ -29302,8 +30165,10 @@ class Test_TC_MC_3_3 : public TestCommandBridge { CHIP_ERROR TestSendNumbers8_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestKeypadInput * cluster = [[MTRTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterKeypadInput * cluster = [[MTRBaseClusterKeypadInput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRKeypadInputClusterSendKeyParams alloc] init]; @@ -29322,8 +30187,10 @@ class Test_TC_MC_3_3 : public TestCommandBridge { CHIP_ERROR TestSendNumbers9_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestKeypadInput * cluster = [[MTRTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterKeypadInput * cluster = [[MTRBaseClusterKeypadInput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRKeypadInputClusterSendKeyParams alloc] init]; @@ -29789,8 +30656,10 @@ class Test_TC_MC_3_11 : public TestCommandBridge { CHIP_ERROR TestSelectInputCommand_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaInput * cluster = [[MTRTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaInput * cluster = [[MTRBaseClusterMediaInput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRMediaInputClusterSelectInputParams alloc] init]; @@ -29809,8 +30678,10 @@ class Test_TC_MC_3_11 : public TestCommandBridge { CHIP_ERROR TestReadCurrentInputList_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaInput * cluster = [[MTRTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaInput * cluster = [[MTRBaseClusterMediaInput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentInputWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -29948,8 +30819,10 @@ class Test_TC_MC_3_12 : public TestCommandBridge { CHIP_ERROR TestReadAttributeMediaInputList_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaInput * cluster = [[MTRTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaInput * cluster = [[MTRBaseClusterMediaInput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInputListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -29966,8 +30839,10 @@ class Test_TC_MC_3_12 : public TestCommandBridge { CHIP_ERROR TestHideInputStatusCommand_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaInput * cluster = [[MTRTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaInput * cluster = [[MTRBaseClusterMediaInput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster hideInputStatusWithCompletionHandler:^(NSError * _Nullable err) { @@ -29983,8 +30858,10 @@ class Test_TC_MC_3_12 : public TestCommandBridge { CHIP_ERROR TestShowInputStatusCommand_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaInput * cluster = [[MTRTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaInput * cluster = [[MTRBaseClusterMediaInput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster showInputStatusWithCompletionHandler:^(NSError * _Nullable err) { @@ -30128,8 +31005,10 @@ class Test_TC_MC_3_13 : public TestCommandBridge { CHIP_ERROR TestRenameInputCommand_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaInput * cluster = [[MTRTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaInput * cluster = [[MTRBaseClusterMediaInput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRMediaInputClusterRenameInputParams alloc] init]; @@ -30396,8 +31275,8 @@ class Test_TC_MC_5_2 : public TestCommandBridge { CHIP_ERROR TestReadsTheChannelListAttribute_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestChannel * cluster = [[MTRTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterChannel * cluster = [[MTRBaseClusterChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeChannelListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -30414,8 +31293,8 @@ class Test_TC_MC_5_2 : public TestCommandBridge { CHIP_ERROR TestThSendsAChangeChannelByNumberCommand_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestChannel * cluster = [[MTRTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterChannel * cluster = [[MTRBaseClusterChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRChannelClusterChangeChannelByNumberParams alloc] init]; @@ -30447,8 +31326,8 @@ class Test_TC_MC_5_2 : public TestCommandBridge { CHIP_ERROR TestReadsTheCurrentChannelAttribute_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestChannel * cluster = [[MTRTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterChannel * cluster = [[MTRBaseClusterChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentChannelWithCompletionHandler:^( @@ -30635,8 +31514,8 @@ class Test_TC_MC_5_3 : public TestCommandBridge { CHIP_ERROR TestReadsTheChannelListAttributeFromTheDut_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestChannel * cluster = [[MTRTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterChannel * cluster = [[MTRBaseClusterChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeChannelListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -30653,8 +31532,8 @@ class Test_TC_MC_5_3 : public TestCommandBridge { CHIP_ERROR TestReadsTheCurrentChannelAttributeFromTheDut_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestChannel * cluster = [[MTRTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterChannel * cluster = [[MTRBaseClusterChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentChannelWithCompletionHandler:^( @@ -30676,8 +31555,8 @@ class Test_TC_MC_5_3 : public TestCommandBridge { CHIP_ERROR TestSendsASkipChannelCommandToTheDut_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestChannel * cluster = [[MTRTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterChannel * cluster = [[MTRBaseClusterChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRChannelClusterSkipChannelParams alloc] init]; @@ -30706,8 +31585,8 @@ class Test_TC_MC_5_3 : public TestCommandBridge { CHIP_ERROR TestReadsTheCurrentChannelAttributeFromTheDut_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestChannel * cluster = [[MTRTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterChannel * cluster = [[MTRBaseClusterChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentChannelWithCompletionHandler:^( @@ -30935,8 +31814,10 @@ class Test_TC_MC_6_1 : public TestCommandBridge { CHIP_ERROR TestPreconditionMediaContentInAPausedStateAtTheBeginningOfTheContent_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster pauseWithCompletionHandler:^( @@ -30958,8 +31839,10 @@ class Test_TC_MC_6_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheCurrentStateAttribute_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -30980,8 +31863,10 @@ class Test_TC_MC_6_1 : public TestCommandBridge { CHIP_ERROR TestSendsAPlayCommand_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -31012,8 +31897,10 @@ class Test_TC_MC_6_1 : public TestCommandBridge { CHIP_ERROR TestReadsThePlaybackStateAttribute_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -31034,8 +31921,10 @@ class Test_TC_MC_6_1 : public TestCommandBridge { CHIP_ERROR TestSendsAPauseCommand_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster pauseWithCompletionHandler:^( @@ -31066,8 +31955,10 @@ class Test_TC_MC_6_1 : public TestCommandBridge { CHIP_ERROR TestReadsThePlaybackStateAttribute_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -31088,8 +31979,10 @@ class Test_TC_MC_6_1 : public TestCommandBridge { CHIP_ERROR TestSendsAStopCommand_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster stopPlaybackWithCompletionHandler:^( @@ -31120,8 +32013,10 @@ class Test_TC_MC_6_1 : public TestCommandBridge { CHIP_ERROR TestReadsThePlaybackStateAttribute_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -31414,8 +32309,10 @@ class Test_TC_MC_6_2 : public TestCommandBridge { CHIP_ERROR TestPreconditionMediaContentInAPausedStateAtTheBeginningOfTheContent_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster pauseWithCompletionHandler:^( @@ -31437,8 +32334,10 @@ class Test_TC_MC_6_2 : public TestCommandBridge { CHIP_ERROR TestReadsTheCurrentStateAttributeFromTheDut_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -31459,8 +32358,10 @@ class Test_TC_MC_6_2 : public TestCommandBridge { CHIP_ERROR TestSendsAPlayCommandToTheDut_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -31491,8 +32392,10 @@ class Test_TC_MC_6_2 : public TestCommandBridge { CHIP_ERROR TestReadsTheCurrentStateAttribute_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -31513,8 +32416,10 @@ class Test_TC_MC_6_2 : public TestCommandBridge { CHIP_ERROR TestSendsAStartOverCommandToTheDut_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster startOverWithCompletionHandler:^( @@ -31545,8 +32450,10 @@ class Test_TC_MC_6_2 : public TestCommandBridge { CHIP_ERROR TestSendsANextCommandToTheDut_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -31578,8 +32485,10 @@ class Test_TC_MC_6_2 : public TestCommandBridge { CHIP_ERROR TestSendsAPreviousCommandToTheDut_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster previousWithCompletionHandler:^( @@ -31611,8 +32520,10 @@ class Test_TC_MC_6_2 : public TestCommandBridge { CHIP_ERROR TestSendsASkipForwardCommandToTheDut_12() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRMediaPlaybackClusterSkipForwardParams alloc] init]; @@ -31647,8 +32558,10 @@ class Test_TC_MC_6_2 : public TestCommandBridge { CHIP_ERROR TestReadsTheSampledPositionAttributeFromTheDut_14() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSampledPositionWithCompletionHandler:^( @@ -31670,8 +32583,10 @@ class Test_TC_MC_6_2 : public TestCommandBridge { CHIP_ERROR TestSendsASkipBackwardCommandToTheDut_15() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRMediaPlaybackClusterSkipBackwardParams alloc] init]; @@ -31706,8 +32621,10 @@ class Test_TC_MC_6_2 : public TestCommandBridge { CHIP_ERROR TestReadsTheSampledPositionAttributeFromTheDut_17() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSampledPositionWithCompletionHandler:^( @@ -31917,8 +32834,10 @@ class Test_TC_MC_6_3 : public TestCommandBridge { CHIP_ERROR TestPreconditionMediaContentInAPausedStateAtTheBeginningOfTheContent_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster pauseWithCompletionHandler:^( @@ -31940,8 +32859,10 @@ class Test_TC_MC_6_3 : public TestCommandBridge { CHIP_ERROR TestSendsASeekCommand_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRMediaPlaybackClusterSeekParams alloc] init]; @@ -31975,8 +32896,10 @@ class Test_TC_MC_6_3 : public TestCommandBridge { CHIP_ERROR TestReadsTheSampledPositionAttribute_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSampledPositionWithCompletionHandler:^( @@ -32034,8 +32957,10 @@ class Test_TC_MC_6_3 : public TestCommandBridge { CHIP_ERROR TestSendsASeekCommandPositionValueBeyondTheFurthestValidPosition_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRMediaPlaybackClusterSeekParams alloc] init]; @@ -32332,8 +33257,10 @@ class Test_TC_MC_6_4 : public TestCommandBridge { CHIP_ERROR TestPreconditionMediaContentInAPausedStateAtTheBeginningOfTheContent_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster pauseWithCompletionHandler:^( @@ -32355,8 +33282,10 @@ class Test_TC_MC_6_4 : public TestCommandBridge { CHIP_ERROR TestReadsTheCurrentStateAttributeFromTheDut_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -32377,8 +33306,10 @@ class Test_TC_MC_6_4 : public TestCommandBridge { CHIP_ERROR TestReadsThePlaybackSpeedAttributeFromTheDut_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePlaybackSpeedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -32399,8 +33330,10 @@ class Test_TC_MC_6_4 : public TestCommandBridge { CHIP_ERROR TestSendsAFastForwardCommand_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster fastForwardWithCompletionHandler:^( @@ -32422,8 +33355,10 @@ class Test_TC_MC_6_4 : public TestCommandBridge { CHIP_ERROR TestReadsTheCurrentStateAttribute_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -32444,8 +33379,10 @@ class Test_TC_MC_6_4 : public TestCommandBridge { CHIP_ERROR TestReadsThePlaybackSpeedAttributeFromTheDut_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePlaybackSpeedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -32466,8 +33403,10 @@ class Test_TC_MC_6_4 : public TestCommandBridge { CHIP_ERROR TestSendsAFastForwardCommand_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster fastForwardWithCompletionHandler:^( @@ -32489,8 +33428,10 @@ class Test_TC_MC_6_4 : public TestCommandBridge { CHIP_ERROR TestReadsThePlaybackSpeedAttributeFromTheDut_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePlaybackSpeedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -32511,8 +33452,10 @@ class Test_TC_MC_6_4 : public TestCommandBridge { CHIP_ERROR TestSendsARewindCommandToTheDut_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster rewindWithCompletionHandler:^( @@ -32534,8 +33477,10 @@ class Test_TC_MC_6_4 : public TestCommandBridge { CHIP_ERROR TestReadsTheCurrentStateAttribute_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -32566,8 +33511,10 @@ class Test_TC_MC_6_4 : public TestCommandBridge { CHIP_ERROR TestSendsARewindCommandToTheDut_12() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster rewindWithCompletionHandler:^( @@ -32599,8 +33546,10 @@ class Test_TC_MC_6_4 : public TestCommandBridge { CHIP_ERROR TestSendsAPlayCommand_14() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -32622,8 +33571,10 @@ class Test_TC_MC_6_4 : public TestCommandBridge { CHIP_ERROR TestReadsThePlaybackSpeedAttributeFromTheDut_15() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePlaybackSpeedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -32779,8 +33730,10 @@ class Test_TC_MC_7_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheOutputListAttribute_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAudioOutput * cluster = [[MTRTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAudioOutput * cluster = [[MTRBaseClusterAudioOutput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOutputListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -32797,8 +33750,10 @@ class Test_TC_MC_7_1 : public TestCommandBridge { CHIP_ERROR TestSendsASelectAudioOutputCommand_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAudioOutput * cluster = [[MTRTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAudioOutput * cluster = [[MTRBaseClusterAudioOutput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRAudioOutputClusterSelectOutputParams alloc] init]; @@ -32817,8 +33772,10 @@ class Test_TC_MC_7_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheCurrentOutputAttribute_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAudioOutput * cluster = [[MTRTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAudioOutput * cluster = [[MTRBaseClusterAudioOutput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentOutputWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -32959,8 +33916,10 @@ class Test_TC_MC_7_2 : public TestCommandBridge { CHIP_ERROR TestReadsTheOutputListAttributeFromTheDut_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAudioOutput * cluster = [[MTRTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAudioOutput * cluster = [[MTRBaseClusterAudioOutput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOutputListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -32981,8 +33940,10 @@ class Test_TC_MC_7_2 : public TestCommandBridge { CHIP_ERROR TestSendsARenameOutputCommand_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAudioOutput * cluster = [[MTRTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAudioOutput * cluster = [[MTRBaseClusterAudioOutput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRAudioOutputClusterRenameOutputParams alloc] init]; @@ -33143,8 +34104,10 @@ class Test_TC_MC_8_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheCurrentTargetAttribute_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTargetNavigator * cluster = [[MTRTestTargetNavigator alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTargetNavigator * cluster = [[MTRBaseClusterTargetNavigator alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentTargetWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -33162,8 +34125,10 @@ class Test_TC_MC_8_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheTargetListAttribute_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTargetNavigator * cluster = [[MTRTestTargetNavigator alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTargetNavigator * cluster = [[MTRBaseClusterTargetNavigator alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTargetListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -33184,8 +34149,10 @@ class Test_TC_MC_8_1 : public TestCommandBridge { CHIP_ERROR TestSendsANavigateTargetCommand_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTargetNavigator * cluster = [[MTRTestTargetNavigator alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTargetNavigator * cluster = [[MTRBaseClusterTargetNavigator alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRTargetNavigatorClusterNavigateTargetParams alloc] init]; @@ -33206,8 +34173,10 @@ class Test_TC_MC_8_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheCurrentTargetAttribute_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTargetNavigator * cluster = [[MTRTestTargetNavigator alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTargetNavigator * cluster = [[MTRBaseClusterTargetNavigator alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentTargetWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -33400,8 +34369,10 @@ class Test_TC_MC_9_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheVendorNameAttribute_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestApplicationBasic * cluster = [[MTRTestApplicationBasic alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeVendorNameWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -33419,8 +34390,10 @@ class Test_TC_MC_9_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheVendorIDAttribute_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestApplicationBasic * cluster = [[MTRTestApplicationBasic alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeVendorIDWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -33437,8 +34410,10 @@ class Test_TC_MC_9_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheApplicationNameAttribute_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestApplicationBasic * cluster = [[MTRTestApplicationBasic alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeApplicationNameWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -33456,8 +34431,10 @@ class Test_TC_MC_9_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheProductIDAttribute_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestApplicationBasic * cluster = [[MTRTestApplicationBasic alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeProductIDWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -33474,8 +34451,10 @@ class Test_TC_MC_9_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheApplicationAttribute_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestApplicationBasic * cluster = [[MTRTestApplicationBasic alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeApplicationWithCompletionHandler:^( @@ -33493,8 +34472,10 @@ class Test_TC_MC_9_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheStatusAttribute_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestApplicationBasic * cluster = [[MTRTestApplicationBasic alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -33513,8 +34494,10 @@ class Test_TC_MC_9_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheApplicationVersionAttribute_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestApplicationBasic * cluster = [[MTRTestApplicationBasic alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeApplicationVersionWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -33532,8 +34515,10 @@ class Test_TC_MC_9_1 : public TestCommandBridge { CHIP_ERROR TestReadsTheAllowedVendorListAttribute_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestApplicationBasic * cluster = [[MTRTestApplicationBasic alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAllowedVendorListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -33656,8 +34641,10 @@ class Test_TC_MC_10_1 : public TestCommandBridge { CHIP_ERROR TestThReadsTheAcceptHeaderAttributeFromTheDut_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestContentLauncher * cluster = [[MTRTestContentLauncher alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterContentLauncher * cluster = [[MTRBaseClusterContentLauncher alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptHeaderWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -33674,8 +34661,10 @@ class Test_TC_MC_10_1 : public TestCommandBridge { CHIP_ERROR TestThReadsTheSupportedStreamingProtocolsAttributeFromTheDut_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestContentLauncher * cluster = [[MTRTestContentLauncher alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterContentLauncher * cluster = [[MTRBaseClusterContentLauncher alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -33825,8 +34814,10 @@ class Test_TC_MOD_1_1 : public TestCommandBridge { CHIP_ERROR TestThReadsTheClusterRevisionAttributeFromTheDut_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -33848,8 +34839,10 @@ class Test_TC_MOD_1_1 : public TestCommandBridge { CHIP_ERROR TestThReadsTheFeatureMapAttributeFromTheDut_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -33871,8 +34864,10 @@ class Test_TC_MOD_1_1 : public TestCommandBridge { CHIP_ERROR TestThReadsTheAttributeListAttributeFromTheDut_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -33899,8 +34894,10 @@ class Test_TC_MOD_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -33923,8 +34920,10 @@ class Test_TC_MOD_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -34126,10 +35125,9 @@ class Test_TC_MF_1_3 : public TestCommandBridge { CHIP_ERROR TestThCr1OpensACommissioningWindowOnDutCe_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAdministratorCommissioning * cluster = [[MTRTestAdministratorCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAdministratorCommissioning * cluster = + [[MTRBaseClusterAdministratorCommissioning alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRAdministratorCommissioningClusterOpenCommissioningWindowParams alloc] init]; @@ -34158,8 +35156,8 @@ class Test_TC_MF_1_3 : public TestCommandBridge { CHIP_ERROR TestThCr1WritesTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nodeLabelArgument; @@ -34180,8 +35178,8 @@ class Test_TC_MF_1_3 : public TestCommandBridge { CHIP_ERROR TestThCr1ReadsTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -34219,10 +35217,9 @@ class Test_TC_MF_1_3 : public TestCommandBridge { CHIP_ERROR TestQueryFabricsList_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOperationalCredentials * cluster = [[MTRTestOperationalCredentials alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); MTRReadParams * params = [[MTRReadParams alloc] init]; @@ -34249,10 +35246,9 @@ class Test_TC_MF_1_3 : public TestCommandBridge { CHIP_ERROR TestQueryFabricsList_7() { - MTRDevice * device = GetDevice("beta"); - MTRTestOperationalCredentials * cluster = [[MTRTestOperationalCredentials alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("beta"); + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); MTRReadParams * params = [[MTRReadParams alloc] init]; @@ -34281,8 +35277,8 @@ class Test_TC_MF_1_3 : public TestCommandBridge { CHIP_ERROR TestThCr1WritesTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nodeLabelArgument; @@ -34303,8 +35299,8 @@ class Test_TC_MF_1_3 : public TestCommandBridge { CHIP_ERROR TestThCr1ReadsTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -34327,8 +35323,8 @@ class Test_TC_MF_1_3 : public TestCommandBridge { CHIP_ERROR TestThCr2WritesTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_10() { - MTRDevice * device = GetDevice("beta"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("beta"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nodeLabelArgument; @@ -34349,8 +35345,8 @@ class Test_TC_MF_1_3 : public TestCommandBridge { CHIP_ERROR TestThCr2ReadsTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_11() { - MTRDevice * device = GetDevice("beta"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("beta"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -34544,10 +35540,9 @@ class Test_TC_MF_1_4 : public TestCommandBridge { CHIP_ERROR TestThCr1OpensACommissioningWindowOnDutCe_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAdministratorCommissioning * cluster = [[MTRTestAdministratorCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAdministratorCommissioning * cluster = + [[MTRBaseClusterAdministratorCommissioning alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRAdministratorCommissioningClusterOpenBasicCommissioningWindowParams alloc] init]; @@ -34566,8 +35561,8 @@ class Test_TC_MF_1_4 : public TestCommandBridge { CHIP_ERROR TestThCr1WritesTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nodeLabelArgument; @@ -34588,8 +35583,8 @@ class Test_TC_MF_1_4 : public TestCommandBridge { CHIP_ERROR TestThCr1ReadsTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -34622,10 +35617,9 @@ class Test_TC_MF_1_4 : public TestCommandBridge { CHIP_ERROR TestQueryFabricsList_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOperationalCredentials * cluster = [[MTRTestOperationalCredentials alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); MTRReadParams * params = [[MTRReadParams alloc] init]; @@ -34652,10 +35646,9 @@ class Test_TC_MF_1_4 : public TestCommandBridge { CHIP_ERROR TestQueryFabricsList_7() { - MTRDevice * device = GetDevice("beta"); - MTRTestOperationalCredentials * cluster = [[MTRTestOperationalCredentials alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("beta"); + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); MTRReadParams * params = [[MTRReadParams alloc] init]; @@ -34682,8 +35675,8 @@ class Test_TC_MF_1_4 : public TestCommandBridge { CHIP_ERROR TestThCr1WritesTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nodeLabelArgument; @@ -34704,8 +35697,8 @@ class Test_TC_MF_1_4 : public TestCommandBridge { CHIP_ERROR TestThCr1ReadsTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -34723,8 +35716,8 @@ class Test_TC_MF_1_4 : public TestCommandBridge { CHIP_ERROR TestThCr1WritesTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_10() { - MTRDevice * device = GetDevice("beta"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("beta"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nodeLabelArgument; @@ -34745,8 +35738,8 @@ class Test_TC_MF_1_4 : public TestCommandBridge { CHIP_ERROR TestThCr1ReadsTheBasicInformationClustersNodeLabelMandatoryAttributeOfDutCe_11() { - MTRDevice * device = GetDevice("beta"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("beta"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -34972,8 +35965,10 @@ class OTA_SuccessfulTransfer : public TestCommandBridge { CHIP_ERROR TestInstallAclForQueryImage_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAccessControl * cluster = [[MTRTestAccessControl alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAccessControl * cluster = [[MTRBaseClusterAccessControl alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id aclArgument; @@ -35043,10 +36038,9 @@ class OTA_SuccessfulTransfer : public TestCommandBridge { CHIP_ERROR TestSendAnAnnounceOtaProviderCommandToTheRequestor_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOtaSoftwareUpdateRequestor * cluster = [[MTRTestOtaSoftwareUpdateRequestor alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOtaSoftwareUpdateRequestor * cluster = + [[MTRBaseClusterOtaSoftwareUpdateRequestor alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTROtaSoftwareUpdateRequestorClusterAnnounceOtaProviderParams alloc] init]; @@ -35220,8 +36214,10 @@ class Test_TC_OCC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOccupancySensing * cluster = [[MTRTestOccupancySensing alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -35243,8 +36239,10 @@ class Test_TC_OCC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeConstraintsFeatureMap_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOccupancySensing * cluster = [[MTRTestOccupancySensing alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -35266,8 +36264,10 @@ class Test_TC_OCC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOccupancySensing * cluster = [[MTRTestOccupancySensing alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -35292,8 +36292,10 @@ class Test_TC_OCC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOccupancySensing * cluster = [[MTRTestOccupancySensing alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -35315,8 +36317,10 @@ class Test_TC_OCC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOccupancySensing * cluster = [[MTRTestOccupancySensing alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -35567,8 +36571,10 @@ class Test_TC_OCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsMandatoryAttributeConstrainsOccupancy_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOccupancySensing * cluster = [[MTRTestOccupancySensing alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOccupancyWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -35588,8 +36594,10 @@ class Test_TC_OCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsMandatoryAttributeConstrainsOccupancySensorType_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOccupancySensing * cluster = [[MTRTestOccupancySensing alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOccupancySensorTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -35609,8 +36617,10 @@ class Test_TC_OCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsMandatoryAttributeConstrainsOccupancySensorTypeBitmap_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOccupancySensing * cluster = [[MTRTestOccupancySensing alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -35631,8 +36641,10 @@ class Test_TC_OCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsOptionalAttributePIROccupiedToUnoccupiedDelay_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOccupancySensing * cluster = [[MTRTestOccupancySensing alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -35655,8 +36667,10 @@ class Test_TC_OCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsOptionalAttributeConstrainsPIRUnoccupiedToOccupiedDelay_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOccupancySensing * cluster = [[MTRTestOccupancySensing alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -35679,8 +36693,10 @@ class Test_TC_OCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsOptionalAttributeConstrainsPIRUnoccupiedToOccupiedThreshold_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOccupancySensing * cluster = [[MTRTestOccupancySensing alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePirUnoccupiedToOccupiedThresholdWithCompletionHandler:^( @@ -35706,8 +36722,10 @@ class Test_TC_OCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadOptionalAttributeUltrasonicOccupiedToUnoccupiedDelay_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOccupancySensing * cluster = [[MTRTestOccupancySensing alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeUltrasonicOccupiedToUnoccupiedDelayWithCompletionHandler:^( @@ -35730,8 +36748,10 @@ class Test_TC_OCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadAttributeUltrasonicUnoccupiedToOccupiedDelay_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOccupancySensing * cluster = [[MTRTestOccupancySensing alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeUltrasonicUnoccupiedToOccupiedDelayWithCompletionHandler:^( @@ -35754,8 +36774,10 @@ class Test_TC_OCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadAttributeUltrasonicUnoccupiedToOccupiedThreshold_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOccupancySensing * cluster = [[MTRTestOccupancySensing alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeUltrasonicUnoccupiedToOccupiedThresholdWithCompletionHandler:^( @@ -35783,8 +36805,10 @@ class Test_TC_OCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsOptionalAttributeConstrainsPhysicalContactOccupiedToUnoccupiedDelay_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOccupancySensing * cluster = [[MTRTestOccupancySensing alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePhysicalContactOccupiedToUnoccupiedDelayWithCompletionHandler:^( @@ -35807,8 +36831,10 @@ class Test_TC_OCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsOptionalAttributeConstrainsPhysicalContactUnoccupiedToOccupiedDelay_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOccupancySensing * cluster = [[MTRTestOccupancySensing alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePhysicalContactUnoccupiedToOccupiedDelayWithCompletionHandler:^( @@ -35831,8 +36857,10 @@ class Test_TC_OCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsOptionalAttributeConstrainsPhysicalContactUnoccupiedToOccupiedThreshold_12() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOccupancySensing * cluster = [[MTRTestOccupancySensing alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOccupancySensing * cluster = [[MTRBaseClusterOccupancySensing alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePhysicalContactUnoccupiedToOccupiedThresholdWithCompletionHandler:^( @@ -36000,8 +37028,8 @@ class Test_TC_OO_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -36023,8 +37051,8 @@ class Test_TC_OO_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalGlobalAttributeFeatureMap_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -36046,8 +37074,8 @@ class Test_TC_OO_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -36075,8 +37103,8 @@ class Test_TC_OO_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -36104,8 +37132,8 @@ class Test_TC_OO_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -36275,8 +37303,8 @@ class Test_TC_OO_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributeOnOff_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -36293,8 +37321,8 @@ class Test_TC_OO_2_1 : public TestCommandBridge { CHIP_ERROR TestReadLtAttributeGlobalSceneControl_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGlobalSceneControlWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -36311,8 +37339,8 @@ class Test_TC_OO_2_1 : public TestCommandBridge { CHIP_ERROR TestReadLtAttributeOnTime_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -36329,8 +37357,8 @@ class Test_TC_OO_2_1 : public TestCommandBridge { CHIP_ERROR TestReadLtAttributeOffWaitTime_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOffWaitTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -36347,8 +37375,8 @@ class Test_TC_OO_2_1 : public TestCommandBridge { CHIP_ERROR TestReadLtAttributeStartUpOnOff_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeStartUpOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -36687,8 +37715,8 @@ class Test_TC_OO_2_2 : public TestCommandBridge { CHIP_ERROR TestSendOffCommand_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -36704,8 +37732,8 @@ class Test_TC_OO_2_2 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -36726,8 +37754,8 @@ class Test_TC_OO_2_2 : public TestCommandBridge { CHIP_ERROR TestSendOnCommand_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -36743,8 +37771,8 @@ class Test_TC_OO_2_2 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -36765,8 +37793,8 @@ class Test_TC_OO_2_2 : public TestCommandBridge { CHIP_ERROR TestSendOnCommand_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -36782,8 +37810,8 @@ class Test_TC_OO_2_2 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -36804,8 +37832,8 @@ class Test_TC_OO_2_2 : public TestCommandBridge { CHIP_ERROR TestSendOffCommand_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -36821,8 +37849,8 @@ class Test_TC_OO_2_2 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -36843,8 +37871,8 @@ class Test_TC_OO_2_2 : public TestCommandBridge { CHIP_ERROR TestSendOffCommand_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -36860,8 +37888,8 @@ class Test_TC_OO_2_2 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -36882,8 +37910,8 @@ class Test_TC_OO_2_2 : public TestCommandBridge { CHIP_ERROR TestSendToggleCommand_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster toggleWithCompletionHandler:^(NSError * _Nullable err) { @@ -36906,8 +37934,8 @@ class Test_TC_OO_2_2 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterToggleCommand_13() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -36928,8 +37956,8 @@ class Test_TC_OO_2_2 : public TestCommandBridge { CHIP_ERROR TestSendToggleCommand_14() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster toggleWithCompletionHandler:^(NSError * _Nullable err) { @@ -36952,8 +37980,8 @@ class Test_TC_OO_2_2 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterToggleCommand_16() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -36983,8 +38011,8 @@ class Test_TC_OO_2_2 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsTrueAfterOnCommand_18() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -37014,8 +38042,8 @@ class Test_TC_OO_2_2 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_20() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -37036,8 +38064,8 @@ class Test_TC_OO_2_2 : public TestCommandBridge { CHIP_ERROR TestResetOffCommand_21() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -37053,8 +38081,8 @@ class Test_TC_OO_2_2 : public TestCommandBridge { CHIP_ERROR TestCheckOnOffAttributeValueIsFalseAfterOffCommand_22() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -37465,8 +38493,8 @@ class Test_TC_OO_2_4 : public TestCommandBridge { CHIP_ERROR TestThSendsOnCommandToDut_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -37482,8 +38510,8 @@ class Test_TC_OO_2_4 : public TestCommandBridge { CHIP_ERROR TestThWritesAValueOf0ToStartUpOnOffAttributeOfDut_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id startUpOnOffArgument; @@ -37525,8 +38553,8 @@ class Test_TC_OO_2_4 : public TestCommandBridge { CHIP_ERROR TestThReadsTheOnOffAttributeFromTheDut_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -37547,8 +38575,8 @@ class Test_TC_OO_2_4 : public TestCommandBridge { CHIP_ERROR TestThWritesAValueOf1ToStartUpOnOffAttributeOfDut_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id startUpOnOffArgument; @@ -37590,8 +38618,8 @@ class Test_TC_OO_2_4 : public TestCommandBridge { CHIP_ERROR TestThReadsTheOnOffAttributeFromTheDut_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -37612,8 +38640,8 @@ class Test_TC_OO_2_4 : public TestCommandBridge { CHIP_ERROR TestThWritesAValueOf2ToStartUpOnOffAttributeOfDut_12() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id startUpOnOffArgument; @@ -37655,8 +38683,8 @@ class Test_TC_OO_2_4 : public TestCommandBridge { CHIP_ERROR TestThReadsTheOnOffAttributeFromTheDut_16() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -37700,8 +38728,8 @@ class Test_TC_OO_2_4 : public TestCommandBridge { CHIP_ERROR TestThReadsTheOnOffAttributeFromTheDut_20() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -37722,8 +38750,8 @@ class Test_TC_OO_2_4 : public TestCommandBridge { CHIP_ERROR TestThWritesNullToStartUpOnOffAttributeOfDut_21() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id startUpOnOffArgument; @@ -37765,8 +38793,8 @@ class Test_TC_OO_2_4 : public TestCommandBridge { CHIP_ERROR TestThReadsTheOnOffAttributeFromTheDut_25() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -37787,8 +38815,8 @@ class Test_TC_OO_2_4 : public TestCommandBridge { CHIP_ERROR TestThSendsOffCommandToDut_26() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -37827,8 +38855,8 @@ class Test_TC_OO_2_4 : public TestCommandBridge { CHIP_ERROR TestThReadsTheOnOffAttributeFromTheDut_30() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnOffWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -37981,8 +39009,10 @@ class Test_TC_PS_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -38004,8 +39034,10 @@ class Test_TC_PS_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalGlobalAttributeFeatureMap_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -38027,8 +39059,10 @@ class Test_TC_PS_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -38057,8 +39091,10 @@ class Test_TC_PS_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -38080,8 +39116,10 @@ class Test_TC_PS_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -38543,8 +39581,10 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsStatusAttributeFromServerDut_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -38564,8 +39604,10 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsOrderAttributeFromServerDut_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOrderWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -38582,8 +39624,10 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsDescriptionAttributeFromServerDut_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeDescriptionWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -38600,8 +39644,10 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsWiredAssessedInputVoltageAttribueFromServerDut_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -38619,8 +39665,10 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsWiredAssessedInputFrequencyAttributeFromServerDut_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -38638,8 +39686,10 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsWiredCurrentTypeAttributeFromServerDut_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeWiredCurrentTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -38659,8 +39709,10 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsWiredAssessedCurrentAttributeFromServerDut_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeWiredAssessedCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -38677,8 +39729,10 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsWiredNominalVoltageFromServerDut_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeWiredNominalVoltageWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -38695,8 +39749,10 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsWiredMaximumCurrentFromServerDut_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeWiredMaximumCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -38713,8 +39769,10 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsWiredPresentFromServerDut_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeWiredPresentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -38731,8 +39789,10 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsActiveWiredFaultsFromServerDut_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeActiveWiredFaultsWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -38749,8 +39809,10 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsBatVoltageFromServerDut_12() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBatteryVoltageWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -38767,8 +39829,10 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsBatPercentRemainingFromServerDut_13() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBatteryPercentRemainingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -38785,8 +39849,10 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsBatTimeRemainingFromServerDut_14() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBatteryTimeRemainingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -38803,8 +39869,10 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsBatChargeLevelFromServerDut_15() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBatteryChargeLevelWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -38824,8 +39892,10 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsBatReplacementNeededFromServerDut_16() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBatteryReplacementNeededWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -38842,8 +39912,10 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsBatReplaceabilityFromServerDut_17() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBatteryReplaceabilityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -38863,8 +39935,10 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsBatPresentFromServerDut_18() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBatteryPresentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -38881,8 +39955,10 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsActiveBatFaultsFromServerDut_19() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeActiveBatteryFaultsWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -38899,8 +39975,10 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsBatReplacementDescriptionFromServerDut_20() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -38919,8 +39997,10 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsBatCommonDesignationFromServerDut_21() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBatteryCommonDesignationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -38940,8 +40020,10 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsBatANSIDesignationFromServerDut_22() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBatteryANSIDesignationWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -38959,8 +40041,10 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsBatIECDesignationFromServerDut_23() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBatteryIECDesignationWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -38978,8 +40062,10 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsBatApprovedChemistryFromServerDut_24() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBatteryApprovedChemistryWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -38999,8 +40085,10 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsBatCapacityFromServerDut_25() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBatteryCapacityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -39017,8 +40105,10 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsBatQuantityFromServerDut_26() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBatteryQuantityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -39035,8 +40125,10 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsBatChargeStateFromServerDut_27() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBatteryChargeStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -39056,8 +40148,10 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsBatTimeToFullChargeFromServerDut_28() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBatteryTimeToFullChargeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -39074,8 +40168,10 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsBatFunctionalWhileChargingFromServerDut_29() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBatteryFunctionalWhileChargingWithCompletionHandler:^( @@ -39093,8 +40189,10 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsBatChargingCurrentFromServerDut_30() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBatteryChargingCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -39111,8 +40209,10 @@ class Test_TC_PS_2_1 : public TestCommandBridge { CHIP_ERROR TestTestHarnessClientReadsActiveBatChargeFaultsFromServerDut_31() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPowerSource * cluster = [[MTRTestPowerSource alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPowerSource * cluster = [[MTRBaseClusterPowerSource alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeActiveBatteryChargeFaultsWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -39265,10 +40365,10 @@ class Test_TC_PRS_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPressureMeasurement * cluster = [[MTRTestPressureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPressureMeasurement * cluster = [[MTRBaseClusterPressureMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -39290,10 +40390,10 @@ class Test_TC_PRS_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeConstraintsFeatureMap_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPressureMeasurement * cluster = [[MTRTestPressureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPressureMeasurement * cluster = [[MTRBaseClusterPressureMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -39315,10 +40415,10 @@ class Test_TC_PRS_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalMandatoryAttributeConstraintsAttributeList_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPressureMeasurement * cluster = [[MTRTestPressureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPressureMeasurement * cluster = [[MTRBaseClusterPressureMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -39344,10 +40444,10 @@ class Test_TC_PRS_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPressureMeasurement * cluster = [[MTRTestPressureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPressureMeasurement * cluster = [[MTRBaseClusterPressureMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -39369,10 +40469,10 @@ class Test_TC_PRS_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPressureMeasurement * cluster = [[MTRTestPressureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPressureMeasurement * cluster = [[MTRBaseClusterPressureMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -39586,10 +40686,10 @@ class Test_TC_PRS_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributeConstraintsMeasuredValue_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPressureMeasurement * cluster = [[MTRTestPressureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPressureMeasurement * cluster = [[MTRBaseClusterPressureMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -39612,10 +40712,10 @@ class Test_TC_PRS_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributeConstraintsMinMeasuredValue_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPressureMeasurement * cluster = [[MTRTestPressureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPressureMeasurement * cluster = [[MTRBaseClusterPressureMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -39638,10 +40738,10 @@ class Test_TC_PRS_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributeConstraintsMaxMeasuredValue_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPressureMeasurement * cluster = [[MTRTestPressureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPressureMeasurement * cluster = [[MTRBaseClusterPressureMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -39664,10 +40764,10 @@ class Test_TC_PRS_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeTolerance_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPressureMeasurement * cluster = [[MTRTestPressureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPressureMeasurement * cluster = [[MTRBaseClusterPressureMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeToleranceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -39687,10 +40787,10 @@ class Test_TC_PRS_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeScaledValue_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPressureMeasurement * cluster = [[MTRTestPressureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPressureMeasurement * cluster = [[MTRBaseClusterPressureMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeScaledValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -39713,10 +40813,10 @@ class Test_TC_PRS_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeMinScaledValue_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPressureMeasurement * cluster = [[MTRTestPressureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPressureMeasurement * cluster = [[MTRBaseClusterPressureMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinScaledValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -39739,10 +40839,10 @@ class Test_TC_PRS_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeMaxScaledValue_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPressureMeasurement * cluster = [[MTRTestPressureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPressureMeasurement * cluster = [[MTRBaseClusterPressureMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxScaledValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -39765,10 +40865,10 @@ class Test_TC_PRS_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeScaledTolerance_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPressureMeasurement * cluster = [[MTRTestPressureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPressureMeasurement * cluster = [[MTRBaseClusterPressureMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeScaledToleranceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -39788,10 +40888,10 @@ class Test_TC_PRS_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeScale_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPressureMeasurement * cluster = [[MTRTestPressureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPressureMeasurement * cluster = [[MTRBaseClusterPressureMeasurement alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeScaleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -39941,10 +41041,9 @@ class Test_TC_PCC_1_1 : public TestCommandBridge { CHIP_ERROR TestThReadsTheClusterRevisionAttributeFromTheDut_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -39966,10 +41065,9 @@ class Test_TC_PCC_1_1 : public TestCommandBridge { CHIP_ERROR TestThReadsTheFeatureMapAttributeFromTheDut_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -39991,10 +41089,9 @@ class Test_TC_PCC_1_1 : public TestCommandBridge { CHIP_ERROR TestThReadsTheAttributeListAttributeFromTheDut_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -40024,10 +41121,9 @@ class Test_TC_PCC_1_1 : public TestCommandBridge { CHIP_ERROR TestThReadsTheAcceptedCommandListAttributeFromTheDut_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -40049,10 +41145,9 @@ class Test_TC_PCC_1_1 : public TestCommandBridge { CHIP_ERROR TestThReadsTheGeneratedCommandListAttributeFromTheDut_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -40420,10 +41515,9 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributeMaxPressure_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxPressureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -40446,10 +41540,9 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributeMaxSpeed_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxSpeedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -40472,10 +41565,9 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributeMaxFlow_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxFlowWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -40498,10 +41590,9 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeMinConstPressure_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinConstPressureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -40529,10 +41620,9 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeMaxConstPressure_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxConstPressureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -40560,10 +41650,9 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeMinCompPressure_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinCompPressureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -40591,10 +41680,9 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeMaxCompPressure_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxCompPressureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -40622,10 +41710,9 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeMinConstSpeed_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinConstSpeedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -40653,10 +41740,9 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeMaxConstSpeed_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxConstSpeedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -40684,10 +41770,9 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeMinConstFlow_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinConstFlowWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -40715,10 +41800,9 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeMaxConstFlow_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxConstFlowWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -40746,10 +41830,9 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeMinConstTemp_12() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinConstTempWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -40777,10 +41860,9 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeMaxConstTemp_13() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxConstTempWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -40808,10 +41890,9 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributePumpStatus_14() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePumpStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -40836,10 +41917,9 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadAttributeEffectiveOperationMode_15() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEffectiveOperationModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -40859,10 +41939,9 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadAttributeEffectiveControlMode_16() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEffectiveControlModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -40882,10 +41961,9 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadAttributeCapacity_17() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCapacityWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -40908,10 +41986,9 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeSpeed_18() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSpeedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -40939,10 +42016,9 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeLifetimeRunningHours_19() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLifetimeRunningHoursWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -40970,10 +42046,9 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributePower_20() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePowerWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -41001,10 +42076,9 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeLifetimeEnergyConsumed_21() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLifetimeEnergyConsumedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -41032,10 +42106,9 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadOptionalAttributeOperationMode_22() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOperationModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -41055,10 +42128,9 @@ class Test_TC_PCC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadOptionalAttributeControlMode_23() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeControlModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -41233,10 +42305,9 @@ class Test_TC_PCC_2_2 : public TestCommandBridge { CHIP_ERROR TestWrite1ToTheOperationModeAttributeToDutOperationMode_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id operationModeArgument; @@ -41255,10 +42326,9 @@ class Test_TC_PCC_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsTheAttributeEffectiveOperationMode_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEffectiveOperationModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -41279,10 +42349,9 @@ class Test_TC_PCC_2_2 : public TestCommandBridge { CHIP_ERROR TestWrite2ToTheOperationModeAttributeToDutOperationMode_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id operationModeArgument; @@ -41301,10 +42370,9 @@ class Test_TC_PCC_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsTheAttributeEffectiveOperationMode_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEffectiveOperationModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -41325,10 +42393,9 @@ class Test_TC_PCC_2_2 : public TestCommandBridge { CHIP_ERROR TestWrite3ToTheOperationModeAttributeToDutOperationMode_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id operationModeArgument; @@ -41347,10 +42414,9 @@ class Test_TC_PCC_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsTheAttributeEffectiveOperationMode_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEffectiveOperationModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -41609,10 +42675,9 @@ class Test_TC_PCC_2_3 : public TestCommandBridge { CHIP_ERROR TestWrite0ToTheOperationModeAttributeToDut_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id operationModeArgument; @@ -41631,10 +42696,9 @@ class Test_TC_PCC_2_3 : public TestCommandBridge { CHIP_ERROR TestReadsTheAttributeEffectiveOperationMode_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEffectiveOperationModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -41655,10 +42719,9 @@ class Test_TC_PCC_2_3 : public TestCommandBridge { CHIP_ERROR TestWrite0ToTheControlModeAttributeToDut_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id controlModeArgument; @@ -41677,10 +42740,9 @@ class Test_TC_PCC_2_3 : public TestCommandBridge { CHIP_ERROR TestReadsTheAttributeEffectiveControlMode_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEffectiveControlModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -41701,10 +42763,9 @@ class Test_TC_PCC_2_3 : public TestCommandBridge { CHIP_ERROR TestWrite1ToTheControlModeAttributeToDut_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id controlModeArgument; @@ -41723,10 +42784,9 @@ class Test_TC_PCC_2_3 : public TestCommandBridge { CHIP_ERROR TestReadsTheAttributeEffectiveControlMode_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEffectiveControlModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -41747,10 +42807,9 @@ class Test_TC_PCC_2_3 : public TestCommandBridge { CHIP_ERROR TestWrite2ToTheControlModeAttributeToDut_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id controlModeArgument; @@ -41769,10 +42828,9 @@ class Test_TC_PCC_2_3 : public TestCommandBridge { CHIP_ERROR TestReadsTheAttributeEffectiveControlMode_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEffectiveControlModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -41793,10 +42851,9 @@ class Test_TC_PCC_2_3 : public TestCommandBridge { CHIP_ERROR TestWrite3ToTheControlModeAttributeToDut_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id controlModeArgument; @@ -41815,10 +42872,9 @@ class Test_TC_PCC_2_3 : public TestCommandBridge { CHIP_ERROR TestReadsTheAttributeEffectiveControlMode_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEffectiveControlModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -41839,10 +42895,9 @@ class Test_TC_PCC_2_3 : public TestCommandBridge { CHIP_ERROR TestWrite5ToTheControlModeAttributeToDut_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id controlModeArgument; @@ -41861,10 +42916,9 @@ class Test_TC_PCC_2_3 : public TestCommandBridge { CHIP_ERROR TestReadsTheAttributeEffectiveControlMode_12() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEffectiveControlModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -41885,10 +42939,9 @@ class Test_TC_PCC_2_3 : public TestCommandBridge { CHIP_ERROR TestWrite7ToTheControlModeAttributeToDut_13() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id controlModeArgument; @@ -41907,10 +42960,9 @@ class Test_TC_PCC_2_3 : public TestCommandBridge { CHIP_ERROR TestReadsTheAttributeEffectiveControlMode_14() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEffectiveControlModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -42147,10 +43199,9 @@ class Test_TC_PCC_2_4 : public TestCommandBridge { CHIP_ERROR TestWrite1ToTheLifetimeRunningHoursAttributeToDut_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id lifetimeRunningHoursArgument; @@ -42169,10 +43220,9 @@ class Test_TC_PCC_2_4 : public TestCommandBridge { CHIP_ERROR TestReadsTheAttributeLifetimeRunningHours_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLifetimeRunningHoursWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -42194,10 +43244,9 @@ class Test_TC_PCC_2_4 : public TestCommandBridge { CHIP_ERROR TestWrite2ToTheLifetimeRunningHoursAttributeToDut_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id lifetimeRunningHoursArgument; @@ -42216,10 +43265,9 @@ class Test_TC_PCC_2_4 : public TestCommandBridge { CHIP_ERROR TestReadsTheAttributeLifetimeRunningHours_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLifetimeRunningHoursWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -42241,10 +43289,9 @@ class Test_TC_PCC_2_4 : public TestCommandBridge { CHIP_ERROR TestWrite3ToTheLifetimeRunningHoursAttributeToDut_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id lifetimeRunningHoursArgument; @@ -42263,10 +43310,9 @@ class Test_TC_PCC_2_4 : public TestCommandBridge { CHIP_ERROR TestReadsTheAttributeLifetimeRunningHours_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLifetimeRunningHoursWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -42288,10 +43334,9 @@ class Test_TC_PCC_2_4 : public TestCommandBridge { CHIP_ERROR TestWrite1ToTheLifetimeEnergyConsumedAttributeToDut_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id lifetimeEnergyConsumedArgument; @@ -42310,10 +43355,9 @@ class Test_TC_PCC_2_4 : public TestCommandBridge { CHIP_ERROR TestReadsTheAttributeLifetimeEnergyConsumed_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLifetimeEnergyConsumedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -42335,10 +43379,9 @@ class Test_TC_PCC_2_4 : public TestCommandBridge { CHIP_ERROR TestWrite2ToTheLifetimeEnergyConsumedAttributeToDut_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id lifetimeEnergyConsumedArgument; @@ -42357,10 +43400,9 @@ class Test_TC_PCC_2_4 : public TestCommandBridge { CHIP_ERROR TestReadsTheAttributeLifetimeEnergyConsumed_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLifetimeEnergyConsumedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -42382,10 +43424,9 @@ class Test_TC_PCC_2_4 : public TestCommandBridge { CHIP_ERROR TestWrite3ToTheLifetimeEnergyConsumedAttributeToDut_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id lifetimeEnergyConsumedArgument; @@ -42404,10 +43445,9 @@ class Test_TC_PCC_2_4 : public TestCommandBridge { CHIP_ERROR TestReadsTheAttributeLifetimeEnergyConsumed_12() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPumpConfigurationAndControl * cluster = [[MTRTestPumpConfigurationAndControl alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPumpConfigurationAndControl * cluster = + [[MTRBaseClusterPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLifetimeEnergyConsumedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -42561,10 +43601,9 @@ class Test_TC_PSCFG_1_1 : public TestCommandBridge { CHIP_ERROR TestThReadsTheClusterRevisionAttributeFromTheDut_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPowerSourceConfiguration * cluster = [[MTRTestPowerSourceConfiguration alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPowerSourceConfiguration * cluster = + [[MTRBaseClusterPowerSourceConfiguration alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -42586,10 +43625,9 @@ class Test_TC_PSCFG_1_1 : public TestCommandBridge { CHIP_ERROR TestThReadsTheFeatureMapAttributeFromTheDut_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPowerSourceConfiguration * cluster = [[MTRTestPowerSourceConfiguration alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPowerSourceConfiguration * cluster = + [[MTRBaseClusterPowerSourceConfiguration alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -42611,10 +43649,9 @@ class Test_TC_PSCFG_1_1 : public TestCommandBridge { CHIP_ERROR TestThReadsTheAttributeListAttributeFromTheDut_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPowerSourceConfiguration * cluster = [[MTRTestPowerSourceConfiguration alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPowerSourceConfiguration * cluster = + [[MTRBaseClusterPowerSourceConfiguration alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -42638,10 +43675,9 @@ class Test_TC_PSCFG_1_1 : public TestCommandBridge { CHIP_ERROR TestThReadsTheAcceptedCommandListAttributeFromTheDut_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPowerSourceConfiguration * cluster = [[MTRTestPowerSourceConfiguration alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPowerSourceConfiguration * cluster = + [[MTRBaseClusterPowerSourceConfiguration alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -42658,10 +43694,9 @@ class Test_TC_PSCFG_1_1 : public TestCommandBridge { CHIP_ERROR TestThReadsTheGeneratedCommandListAttributeFromTheDut_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestPowerSourceConfiguration * cluster = [[MTRTestPowerSourceConfiguration alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterPowerSourceConfiguration * cluster = + [[MTRBaseClusterPowerSourceConfiguration alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -42824,10 +43859,9 @@ class Test_TC_RH_1_1 : public TestCommandBridge { CHIP_ERROR TestReadClusterRevisionAttributeFromTheDut_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestRelativeHumidityMeasurement * cluster = [[MTRTestRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterRelativeHumidityMeasurement * cluster = + [[MTRBaseClusterRelativeHumidityMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -42849,10 +43883,9 @@ class Test_TC_RH_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestRelativeHumidityMeasurement * cluster = [[MTRTestRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterRelativeHumidityMeasurement * cluster = + [[MTRBaseClusterRelativeHumidityMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -42878,10 +43911,9 @@ class Test_TC_RH_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestRelativeHumidityMeasurement * cluster = [[MTRTestRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterRelativeHumidityMeasurement * cluster = + [[MTRBaseClusterRelativeHumidityMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -42903,10 +43935,9 @@ class Test_TC_RH_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestRelativeHumidityMeasurement * cluster = [[MTRTestRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterRelativeHumidityMeasurement * cluster = + [[MTRBaseClusterRelativeHumidityMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -42928,10 +43959,9 @@ class Test_TC_RH_1_1 : public TestCommandBridge { CHIP_ERROR TestReadFeatureMapAttributeFromTheDutAndVerifyThatTheDut_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestRelativeHumidityMeasurement * cluster = [[MTRTestRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterRelativeHumidityMeasurement * cluster = + [[MTRBaseClusterRelativeHumidityMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -43086,10 +44116,9 @@ class Test_TC_RH_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsConstraintsOfAttributeMeasuredValue_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestRelativeHumidityMeasurement * cluster = [[MTRTestRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterRelativeHumidityMeasurement * cluster = + [[MTRBaseClusterRelativeHumidityMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -43112,10 +44141,9 @@ class Test_TC_RH_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsConstraintsOfAttributeMinMeasuredValue_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestRelativeHumidityMeasurement * cluster = [[MTRTestRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterRelativeHumidityMeasurement * cluster = + [[MTRBaseClusterRelativeHumidityMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -43138,10 +44166,9 @@ class Test_TC_RH_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsConstraintsOfAttributeMaxMeasuredValue_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestRelativeHumidityMeasurement * cluster = [[MTRTestRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterRelativeHumidityMeasurement * cluster = + [[MTRBaseClusterRelativeHumidityMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -43164,10 +44191,9 @@ class Test_TC_RH_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsConstraintsOfAttributeTolerance_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestRelativeHumidityMeasurement * cluster = [[MTRTestRelativeHumidityMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterRelativeHumidityMeasurement * cluster = + [[MTRBaseClusterRelativeHumidityMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeToleranceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -43296,8 +44322,8 @@ class Test_TC_SWTCH_2_1 : public TestCommandBridge { CHIP_ERROR TestReadNumberOfPositionsAttribute_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestSwitch * cluster = [[MTRTestSwitch alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterSwitch * cluster = [[MTRBaseClusterSwitch alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNumberOfPositionsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -43321,8 +44347,8 @@ class Test_TC_SWTCH_2_1 : public TestCommandBridge { CHIP_ERROR TestReadCurrentPositionAttribute_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestSwitch * cluster = [[MTRTestSwitch alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterSwitch * cluster = [[MTRBaseClusterSwitch alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -43346,8 +44372,8 @@ class Test_TC_SWTCH_2_1 : public TestCommandBridge { CHIP_ERROR TestReadMultiPressMaxAttribute_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestSwitch * cluster = [[MTRTestSwitch alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterSwitch * cluster = [[MTRBaseClusterSwitch alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMultiPressMaxWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -43507,10 +44533,9 @@ class Test_TC_TM_1_1 : public TestCommandBridge { CHIP_ERROR TestReadClusterRevisionAttributeFromTheDut_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTemperatureMeasurement * cluster = [[MTRTestTemperatureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTemperatureMeasurement * cluster = + [[MTRBaseClusterTemperatureMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -43532,10 +44557,9 @@ class Test_TC_TM_1_1 : public TestCommandBridge { CHIP_ERROR TestReadFeatureMapAttributeFromTheDut_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTemperatureMeasurement * cluster = [[MTRTestTemperatureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTemperatureMeasurement * cluster = + [[MTRBaseClusterTemperatureMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -43557,10 +44581,9 @@ class Test_TC_TM_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTemperatureMeasurement * cluster = [[MTRTestTemperatureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTemperatureMeasurement * cluster = + [[MTRBaseClusterTemperatureMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -43586,10 +44609,9 @@ class Test_TC_TM_1_1 : public TestCommandBridge { CHIP_ERROR TestReadAcceptedCommandListAttributeFromTheDut_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTemperatureMeasurement * cluster = [[MTRTestTemperatureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTemperatureMeasurement * cluster = + [[MTRBaseClusterTemperatureMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -43606,10 +44628,9 @@ class Test_TC_TM_1_1 : public TestCommandBridge { CHIP_ERROR TestReadGeneratedCommandListAttributeFromTheDut_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTemperatureMeasurement * cluster = [[MTRTestTemperatureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTemperatureMeasurement * cluster = + [[MTRBaseClusterTemperatureMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -43768,10 +44789,9 @@ class Test_TC_TM_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributeMeasuredValue_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTemperatureMeasurement * cluster = [[MTRTestTemperatureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTemperatureMeasurement * cluster = + [[MTRBaseClusterTemperatureMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -43792,10 +44812,9 @@ class Test_TC_TM_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributeMinMeasuredValue_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTemperatureMeasurement * cluster = [[MTRTestTemperatureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTemperatureMeasurement * cluster = + [[MTRBaseClusterTemperatureMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -43818,10 +44837,9 @@ class Test_TC_TM_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributeMaxMeasuredValue_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTemperatureMeasurement * cluster = [[MTRTestTemperatureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTemperatureMeasurement * cluster = + [[MTRBaseClusterTemperatureMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxMeasuredValueWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -43844,10 +44862,9 @@ class Test_TC_TM_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeTolerance_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTemperatureMeasurement * cluster = [[MTRTestTemperatureMeasurement alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTemperatureMeasurement * cluster = + [[MTRBaseClusterTemperatureMeasurement alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeToleranceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -44006,8 +45023,10 @@ class Test_TC_TSTAT_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -44029,8 +45048,10 @@ class Test_TC_TSTAT_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalGlobalAttributeConstraintsFeatureMap_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -44050,8 +45071,10 @@ class Test_TC_TSTAT_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -44077,8 +45100,10 @@ class Test_TC_TSTAT_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -44097,8 +45122,10 @@ class Test_TC_TSTAT_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -44769,8 +45796,10 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutLocalTemperature_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLocalTemperatureWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -44791,8 +45820,10 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutAbsMinHeatSetpointLimit_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAbsMinHeatSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -44812,8 +45843,10 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutAbsMaxHeatSetpointLimit_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAbsMaxHeatSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -44833,8 +45866,10 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsConstraintsOfOptionalAttributesFromDutAbsMinCoolSetpointLimit_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAbsMinCoolSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -44859,8 +45894,10 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsConstraintsOfOptionalAttributesFromDutAbsMaxCoolSetpointLimit_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAbsMaxCoolSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -44905,8 +45942,10 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsConstraintsOfOptionalAttributesFromDutOccupiedCoolingSetpoint_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOccupiedCoolingSetpointWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -44931,8 +45970,10 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutOccupiedHeatingSetpoint_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOccupiedHeatingSetpointWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -44970,8 +46011,10 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutMinHeatSetpointLimit_12() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinHeatSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -44991,8 +46034,10 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutMaxHeatSetpointLimit_13() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxHeatSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -45012,8 +46057,10 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsConstraintsOfOptionalAttributesFromDutMinCoolSetpointLimit_14() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinCoolSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -45038,8 +46085,10 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsConstraintsOfOptionalAttributesFromDutMaxCoolSetpointLimit_15() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxCoolSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -45064,8 +46113,10 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutControlSequenceOfOperation_16() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -45086,8 +46137,10 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsConstraintsOfMandatoryAttributesFromDutSystemMode_17() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSystemModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -45145,8 +46198,10 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsConstraintsOfOptionalAttributesFromDutMinSetpointDeadBand_22() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinSetpointDeadBandWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -45200,8 +46255,10 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsConstraintsOfOptionalAttributesFromDutStartOfWeek_26() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeStartOfWeekWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -45226,8 +46283,10 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsConstraintsOfOptionalAttributesFromDutNumberOfWeeklyTransitions_27() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -45250,8 +46309,10 @@ class Test_TC_TSTAT_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsConstraintsOfOptionalAttributesFromDutNumberOfDailyTransitions_28() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNumberOfDailyTransitionsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -46478,8 +47539,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsOccupiedCoolingSetpointAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOccupiedCoolingSetpointWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -46510,8 +47573,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesAValueBackThatIsDifferentButValidForOccupiedCoolingSetpointAttribute_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id occupiedCoolingSetpointArgument; @@ -46537,8 +47602,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsItBackAgainToConfirmTheSuccessfulWriteOfOccupiedCoolingSetpointAttribute_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOccupiedCoolingSetpointWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -46564,8 +47631,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesOccupiedCoolingSetpointToValueBelowTheMinCoolSetpointLimit_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id occupiedCoolingSetpointArgument; @@ -46591,8 +47660,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesOccupiedCoolingSetpointToValueAboveTheMaxCoolSetpointLimit_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id occupiedCoolingSetpointArgument; @@ -46618,8 +47689,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesTheLimitOfMaxCoolSetpointLimitToOccupiedCoolingSetpointAttribute_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id occupiedCoolingSetpointArgument; @@ -46645,8 +47718,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsOccupiedHeatingSetpointAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOccupiedHeatingSetpointWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -46677,8 +47752,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesAValueBackThatIsDifferentButValidForOccupiedHeatingSetpointAttribute_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id occupiedHeatingSetpointArgument; @@ -46704,8 +47781,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsItBackAgainToConfirmTheSuccessfulWriteOfOccupiedHeatingSetpointAttribute_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOccupiedHeatingSetpointWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -46731,8 +47810,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesOccupiedHeatingSetpointToValueBelowTheMinHeatSetpointLimit_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id occupiedHeatingSetpointArgument; @@ -46758,8 +47839,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesOccupiedHeatingSetpointToValueAboveTheMaxHeatSetpointLimit_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id occupiedHeatingSetpointArgument; @@ -46785,8 +47868,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesTheLimitOfMinHeatSetpointLimitToOccupiedHeatingSetpointAttribute_12() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id occupiedHeatingSetpointArgument; @@ -46812,8 +47897,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsUnoccupiedCoolingSetpointAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_13() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeUnoccupiedCoolingSetpointWithCompletionHandler:^( @@ -46846,8 +47933,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesAValueBackThatIsDifferentButValidForUnoccupiedCoolingSetpointAttribute_14() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id unoccupiedCoolingSetpointArgument; @@ -46873,8 +47962,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsItBackAgainToConfirmTheSuccessfulWriteOfUnoccupiedCoolingSetpointAttribute_15() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -46901,8 +47992,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesUnoccupiedCoolingSetpointToValueBelowTheMinHeatSetpointLimit_16() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id unoccupiedCoolingSetpointArgument; @@ -46928,8 +48021,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesUnoccupiedCoolingSetpointToValueAboveTheMaxHeatSetpointLimit_17() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id unoccupiedCoolingSetpointArgument; @@ -46955,8 +48050,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesTheLimitOfMinCoolSetpointLimitToUnoccupiedCoolingSetpointAttribute_18() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id unoccupiedCoolingSetpointArgument; @@ -46982,8 +48079,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesTheLimitOfMaxCoolSetpointLimitToUnoccupiedCoolingSetpointAttribute_19() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id unoccupiedCoolingSetpointArgument; @@ -47009,8 +48108,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsUnoccupiedHeatingSetpointAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_20() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeUnoccupiedHeatingSetpointWithCompletionHandler:^( @@ -47043,8 +48144,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesAValueBackThatIsDifferentButValidForUnoccupiedHeatingSetpointAttribute_21() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id unoccupiedHeatingSetpointArgument; @@ -47070,8 +48173,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsItBackAgainToConfirmTheSuccessfulWriteOfUnoccupiedHeatingSetpointAttribute_22() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -47098,8 +48203,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesUnoccupiedHeatingSetpointToValueBelowTheMinHeatSetpointLimit_23() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id unoccupiedHeatingSetpointArgument; @@ -47125,8 +48232,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesUnoccupiedHeatingSetpointToValueAboveTheMaxHeatSetpointLimit_24() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id unoccupiedHeatingSetpointArgument; @@ -47152,8 +48261,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesTheLimitOfMinHeatSetpointLimitToUnoccupiedHeatingSetpointAttribute_25() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id unoccupiedHeatingSetpointArgument; @@ -47179,8 +48290,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesTheLimitOfMaxHeatSetpointLimitToUnoccupiedHeatingSetpointAttribute_26() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id unoccupiedHeatingSetpointArgument; @@ -47206,8 +48319,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsMinHeatSetpointLimitAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_27() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinHeatSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -47238,8 +48353,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesMinHeatSetpointLimitToValueBelowTheAbsMinHeatSetpointLimit_28() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id minHeatSetpointLimitArgument; @@ -47266,8 +48383,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesMinHeatSetpointLimitToValueAboveTheAbsMaxHeatSetpointLimit_29() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id minHeatSetpointLimitArgument; @@ -47294,8 +48413,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesTheLimitOfAbsMinHeatSetpointLimitToMinHeatSetpointLimitAttribute_30() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id minHeatSetpointLimitArgument; @@ -47321,8 +48442,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesAValueBackThatIsDifferentButValidForMaxHeatSetpointLimitAttribute_31() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id maxHeatSetpointLimitArgument; @@ -47348,8 +48471,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsItBackAgainToConfirmTheSuccessfulWriteOfMaxHeatSetpointLimitAttribute_32() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxHeatSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -47375,8 +48500,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesMaxHeatSetpointLimitToValueBelowTheAbsMinHeatSetpointLimit_33() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id maxHeatSetpointLimitArgument; @@ -47403,8 +48530,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesMaxHeatSetpointLimitToValueAboveTheAbsMaxHeatSetpointLimit_34() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id maxHeatSetpointLimitArgument; @@ -47431,8 +48560,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesTheLimitOfAbsMinHeatSetpointLimitToMaxHeatSetpointLimitAttribute_35() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id maxHeatSetpointLimitArgument; @@ -47458,8 +48589,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsMinCoolSetpointLimitAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_36() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinCoolSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -47490,8 +48623,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesAValueBackThatIsDifferentButValidForMinCoolSetpointLimitAttribute_37() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id minCoolSetpointLimitArgument; @@ -47517,8 +48652,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsItBackAgainToConfirmTheSuccessfulWriteOfMinCoolSetpointLimitAttribute_38() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinCoolSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -47544,8 +48681,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesMinCoolSetpointLimitToValueBelowTheAbsMinCoolSetpointLimit_39() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id minCoolSetpointLimitArgument; @@ -47572,8 +48711,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesMinCoolSetpointLimitToValueAboveTheMaxCoolSetpointLimit_40() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id minCoolSetpointLimitArgument; @@ -47599,8 +48740,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesTheLimitOfAbsMinCoolSetpointLimitToMinCoolSetpointLimitAttribute_41() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id minCoolSetpointLimitArgument; @@ -47626,8 +48769,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesTheLimitOfMaxCoolSetpointLimitToMinCoolSetpointLimitAttribute_42() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id minCoolSetpointLimitArgument; @@ -47653,8 +48798,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsMaxCoolSetpointLimitAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_43() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxCoolSetpointLimitWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -47685,8 +48832,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesMaxCoolSetpointLimitToValueBelowTheAbsMinCoolSetpointLimit_44() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id maxCoolSetpointLimitArgument; @@ -47713,8 +48862,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesMaxCoolSetpointLimitToValueAboveTheMaxCoolSetpointLimit_45() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id maxCoolSetpointLimitArgument; @@ -47740,8 +48891,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesTheLimitOfMaxCoolSetpointLimitToMaxCoolSetpointLimitAttribute_46() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id maxCoolSetpointLimitArgument; @@ -47767,8 +48920,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesSetsBackDefaultValueOfMinHeatSetpointLimit_47() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id minHeatSetpointLimitArgument; @@ -47792,8 +48947,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesSetsBackDefaultValueOfMinCoolSetpointLimit_48() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id minCoolSetpointLimitArgument; @@ -47817,8 +48974,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesSetsBackDefaultValueOfMaxCoolSetpointLimit_49() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id maxCoolSetpointLimitArgument; @@ -47842,8 +49001,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsMinSetpointDeadBandAttributeFromServerDutAndVerifiesThatTheValueIsWithinRange_50() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinSetpointDeadBandWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -47874,8 +49035,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesAValueBackThatIsDifferentButValidForMinSetpointDeadBandAttribute_51() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id minSetpointDeadBandArgument; @@ -47901,8 +49064,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsItBackAgainToConfirmTheSuccessfulWriteOfMinSetpointDeadBandAttribute_52() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMinSetpointDeadBandWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -47928,8 +49093,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesTheValueBelowMinSetpointDeadBand_53() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id minSetpointDeadBandArgument; @@ -47953,8 +49120,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesTheValueAboveMinSetpointDeadBand_54() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id minSetpointDeadBandArgument; @@ -47978,8 +49147,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesTheMinLimitOfMinSetpointDeadBand_55() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id minSetpointDeadBandArgument; @@ -48003,8 +49174,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesTheMaxLimitOfMinSetpointDeadBand_56() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id minSetpointDeadBandArgument; @@ -48028,8 +49201,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsControlSequenceOfOperationFromServerDutAndVerifiesThatTheValueIsValid_57() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -48055,8 +49230,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestWriteAttributeCommandForControlSequenceOfOperationWithANewValidValue_58() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id controlSequenceOfOperationArgument; @@ -48077,8 +49254,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadItBackAgainToConfirmTheSuccessfulWrite_59() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -48100,8 +49279,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestSendsSetpointRaiseCommand_60() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRThermostatClusterSetpointRaiseLowerParams alloc] init]; @@ -48121,8 +49302,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsBackOccupiedHeatingSetpointToConfirmTheSuccessOfTheWrite_61() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOccupiedHeatingSetpointWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -48148,8 +49331,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestSendsSetpointRaiseCommand_62() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRThermostatClusterSetpointRaiseLowerParams alloc] init]; @@ -48169,8 +49354,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsBackOccupiedHeatingSetpointToConfirmTheSuccessOfTheWrite_63() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOccupiedHeatingSetpointWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -48196,8 +49383,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestSetsOccupiedCoolingSetpointToDefaultValue_64() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id occupiedCoolingSetpointArgument; @@ -48221,8 +49410,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestSendsSetpointRaiseCommand_65() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRThermostatClusterSetpointRaiseLowerParams alloc] init]; @@ -48242,8 +49433,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsBackOccupiedCoolingSetpointToConfirmTheSuccessOfTheWrite_66() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOccupiedCoolingSetpointWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -48269,8 +49462,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestSetsOccupiedCoolingSetpointToDefaultValue_67() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id occupiedCoolingSetpointArgument; @@ -48294,8 +49489,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestSendsSetpointRaiseCommand_68() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRThermostatClusterSetpointRaiseLowerParams alloc] init]; @@ -48315,8 +49512,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsBackOccupiedCoolingSetpointToConfirmTheSuccessOfTheWrite_69() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOccupiedCoolingSetpointWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -48342,8 +49541,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestSetsOccupiedCoolingSetpointToDefaultValue_70() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id occupiedCoolingSetpointArgument; @@ -48367,8 +49568,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestSendsSetpointRaiseCommand_71() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRThermostatClusterSetpointRaiseLowerParams alloc] init]; @@ -48388,8 +49591,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsBackOccupiedCoolingSetpointToConfirmTheSuccessOfTheWrite_72() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOccupiedCoolingSetpointWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -48415,8 +49620,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsBackOccupiedHeatingSetpointToConfirmTheSuccessOfTheWrite_73() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOccupiedHeatingSetpointWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -48442,8 +49649,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestSetsOccupiedCoolingSetpointToDefaultValue_74() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id occupiedCoolingSetpointArgument; @@ -48467,8 +49676,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestSendsSetpointRaiseCommand_75() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRThermostatClusterSetpointRaiseLowerParams alloc] init]; @@ -48488,8 +49699,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsBackOccupiedCoolingSetpointToConfirmTheSuccessOfTheWrite_76() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOccupiedCoolingSetpointWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -48515,8 +49728,10 @@ class Test_TC_TSTAT_2_2 : public TestCommandBridge { CHIP_ERROR TestReadsBackOccupiedHeatingSetpointToConfirmTheSuccessOfTheWrite_77() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostat * cluster = [[MTRTestThermostat alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostat * cluster = [[MTRBaseClusterThermostat alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOccupiedHeatingSetpointWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -48674,9 +49889,9 @@ class Test_TC_TSUIC_1_1 : public TestCommandBridge { CHIP_ERROR TestThReadClusterRevisionAttributeFromTheDut_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostatUserInterfaceConfiguration * cluster = - [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -48698,9 +49913,9 @@ class Test_TC_TSUIC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadFeatureMapAttributeFromTheDut_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostatUserInterfaceConfiguration * cluster = - [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -48722,9 +49937,9 @@ class Test_TC_TSUIC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostatUserInterfaceConfiguration * cluster = - [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -48750,9 +49965,9 @@ class Test_TC_TSUIC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostatUserInterfaceConfiguration * cluster = - [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -48774,9 +49989,9 @@ class Test_TC_TSUIC_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostatUserInterfaceConfiguration * cluster = - [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -48924,9 +50139,9 @@ class Test_TC_TSUIC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributeTemperatureDisplayMode_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostatUserInterfaceConfiguration * cluster = - [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTemperatureDisplayModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -48946,9 +50161,9 @@ class Test_TC_TSUIC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributeKeypadLockout_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostatUserInterfaceConfiguration * cluster = - [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeKeypadLockoutWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -48968,9 +50183,9 @@ class Test_TC_TSUIC_2_1 : public TestCommandBridge { CHIP_ERROR TestReadTheOptionalAttributeScheduleProgrammingVisibility_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostatUserInterfaceConfiguration * cluster = - [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -49477,9 +50692,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesAValueOf0ToTemperatureDisplayModeAttributeOfDut_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostatUserInterfaceConfiguration * cluster = - [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id temperatureDisplayModeArgument; @@ -49508,9 +50723,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestThReadsTheTemperatureDisplayModeAttributeOfDut_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostatUserInterfaceConfiguration * cluster = - [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTemperatureDisplayModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -49526,9 +50741,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesAValueOf1ToTemperatureDisplayModeAttributeOfDut_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostatUserInterfaceConfiguration * cluster = - [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id temperatureDisplayModeArgument; @@ -49557,9 +50772,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestThReadsTheTemperatureDisplayModeAttributeOfDut_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostatUserInterfaceConfiguration * cluster = - [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTemperatureDisplayModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -49580,9 +50795,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesAValueOfGreaterThan1ToTemperatureDisplayModeAttributeOfDut_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostatUserInterfaceConfiguration * cluster = - [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id temperatureDisplayModeArgument; @@ -49603,9 +50818,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestThReadsTheTemperatureDisplayModeAttributeOfDut_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostatUserInterfaceConfiguration * cluster = - [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTemperatureDisplayModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -49626,9 +50841,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesAValueOf0ToKeypadLockoutAttributeOfDut_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostatUserInterfaceConfiguration * cluster = - [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id keypadLockoutArgument; @@ -49656,9 +50871,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestThReadsTheKeypadLockoutAttributeOfDut_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostatUserInterfaceConfiguration * cluster = - [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeKeypadLockoutWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -49679,9 +50894,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesAValueOf1ToKeypadLockoutAttributeOfDut_12() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostatUserInterfaceConfiguration * cluster = - [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id keypadLockoutArgument; @@ -49709,9 +50924,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestThReadsTheKeypadLockoutAttributeOfDut_14() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostatUserInterfaceConfiguration * cluster = - [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeKeypadLockoutWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -49732,9 +50947,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesAValueOf2ToKeypadLockoutAttributeOfDut_15() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostatUserInterfaceConfiguration * cluster = - [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id keypadLockoutArgument; @@ -49762,9 +50977,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestThReadsTheKeypadLockoutAttributeOfDut_17() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostatUserInterfaceConfiguration * cluster = - [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeKeypadLockoutWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -49785,9 +51000,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesAValueOf3ToKeypadLockoutAttributeOfDut_18() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostatUserInterfaceConfiguration * cluster = - [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id keypadLockoutArgument; @@ -49815,9 +51030,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestThReadsTheKeypadLockoutAttributeOfDut_20() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostatUserInterfaceConfiguration * cluster = - [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeKeypadLockoutWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -49838,9 +51053,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesAValueOf4ToKeypadLockoutAttributeOfDut_21() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostatUserInterfaceConfiguration * cluster = - [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id keypadLockoutArgument; @@ -49868,9 +51083,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestThReadsTheKeypadLockoutAttributeOfDut_23() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostatUserInterfaceConfiguration * cluster = - [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeKeypadLockoutWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -49891,9 +51106,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesAValueOf5ToKeypadLockoutAttributeOfDut_24() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostatUserInterfaceConfiguration * cluster = - [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id keypadLockoutArgument; @@ -49921,9 +51136,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestThReadsTheKeypadLockoutAttributeOfDut_26() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostatUserInterfaceConfiguration * cluster = - [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeKeypadLockoutWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -49944,9 +51159,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesAValueOfGreaterThan5ToKeypadLockoutAttributeOfDut_27() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostatUserInterfaceConfiguration * cluster = - [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id keypadLockoutArgument; @@ -49964,9 +51179,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestThReadsTheKeypadLockoutAttributeOfDut_28() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostatUserInterfaceConfiguration * cluster = - [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeKeypadLockoutWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -49987,9 +51202,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesAValueOf0ToScheduleProgrammingVisibilityAttributeOfDut_29() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostatUserInterfaceConfiguration * cluster = - [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id scheduleProgrammingVisibilityArgument; @@ -50019,9 +51234,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestThReadsTheScheduleProgrammingVisibilityAttributeOfDut_31() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostatUserInterfaceConfiguration * cluster = - [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -50043,9 +51258,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesAValueOf1ToScheduleProgrammingVisibilityAttributeOfDut_32() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostatUserInterfaceConfiguration * cluster = - [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id scheduleProgrammingVisibilityArgument; @@ -50075,9 +51290,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestThReadsTheScheduleProgrammingVisibilityAttributeOfDut_34() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostatUserInterfaceConfiguration * cluster = - [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -50099,9 +51314,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestWritesAValueOfGreaterThan1ToScheduleProgrammingVisibilityAttributeOfDut_35() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostatUserInterfaceConfiguration * cluster = - [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id scheduleProgrammingVisibilityArgument; @@ -50122,9 +51337,9 @@ class Test_TC_TSUIC_2_2 : public TestCommandBridge { CHIP_ERROR TestThReadsTheScheduleProgrammingVisibilityAttributeOfDut_36() { - MTRDevice * device = GetDevice("alpha"); - MTRTestThermostatUserInterfaceConfiguration * cluster = - [[MTRTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterThermostatUserInterfaceConfiguration * cluster = + [[MTRBaseClusterThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -50278,8 +51493,8 @@ class Test_TC_ULABEL_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeClusterRevision_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestUserLabel * cluster = [[MTRTestUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterUserLabel * cluster = [[MTRBaseClusterUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -50301,8 +51516,8 @@ class Test_TC_ULABEL_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeFeatureMap_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestUserLabel * cluster = [[MTRTestUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterUserLabel * cluster = [[MTRBaseClusterUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -50324,8 +51539,8 @@ class Test_TC_ULABEL_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAttributeList_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestUserLabel * cluster = [[MTRTestUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterUserLabel * cluster = [[MTRBaseClusterUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -50349,8 +51564,8 @@ class Test_TC_ULABEL_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeAcceptedCommandList_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestUserLabel * cluster = [[MTRTestUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterUserLabel * cluster = [[MTRBaseClusterUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -50372,8 +51587,8 @@ class Test_TC_ULABEL_1_1 : public TestCommandBridge { CHIP_ERROR TestReadTheGlobalAttributeGeneratedCommandList_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestUserLabel * cluster = [[MTRTestUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterUserLabel * cluster = [[MTRBaseClusterUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -50510,8 +51725,8 @@ class Test_TC_ULABEL_2_2 : public TestCommandBridge { CHIP_ERROR TestThWritesLabelListAttributeFromTheDut_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestUserLabel * cluster = [[MTRTestUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterUserLabel * cluster = [[MTRBaseClusterUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id labelListArgument; @@ -50549,8 +51764,8 @@ class Test_TC_ULABEL_2_2 : public TestCommandBridge { CHIP_ERROR TestThReadsLabelListAttributeFromTheDut_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestUserLabel * cluster = [[MTRTestUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterUserLabel * cluster = [[MTRBaseClusterUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLabelListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -50687,8 +51902,8 @@ class Test_TC_ULABEL_2_3 : public TestCommandBridge { CHIP_ERROR TestThWritesLabelListAttributeOfTheDut_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestUserLabel * cluster = [[MTRTestUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterUserLabel * cluster = [[MTRBaseClusterUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id labelListArgument; @@ -50713,8 +51928,8 @@ class Test_TC_ULABEL_2_3 : public TestCommandBridge { CHIP_ERROR TestThReadsLabelListAttributeOfTheDut_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestUserLabel * cluster = [[MTRTestUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterUserLabel * cluster = [[MTRBaseClusterUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id labelListArgument; @@ -50867,8 +52082,8 @@ class Test_TC_ULABEL_2_4 : public TestCommandBridge { CHIP_ERROR TestThWritesLabelListAttributeOfTheDut_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestUserLabel * cluster = [[MTRTestUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterUserLabel * cluster = [[MTRBaseClusterUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id labelListArgument; @@ -50898,8 +52113,8 @@ class Test_TC_ULABEL_2_4 : public TestCommandBridge { CHIP_ERROR TestThReadsLabelListAttributeOfTheDut_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestUserLabel * cluster = [[MTRTestUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterUserLabel * cluster = [[MTRBaseClusterUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLabelListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -50926,8 +52141,8 @@ class Test_TC_ULABEL_2_4 : public TestCommandBridge { CHIP_ERROR TestThWritesLabelListAttributeOfTheDut_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestUserLabel * cluster = [[MTRTestUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterUserLabel * cluster = [[MTRBaseClusterUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id labelListArgument; @@ -50949,8 +52164,8 @@ class Test_TC_ULABEL_2_4 : public TestCommandBridge { CHIP_ERROR TestThReadsLabelListAttributeOfTheDut_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestUserLabel * cluster = [[MTRTestUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterUserLabel * cluster = [[MTRBaseClusterUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLabelListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -51062,8 +52277,8 @@ class Test_TC_ULABEL_3_1 : public TestCommandBridge { CHIP_ERROR TestThReadsLabelListAttributeOfTheDut_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestUserLabel * cluster = [[MTRTestUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterUserLabel * cluster = [[MTRBaseClusterUserLabel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLabelListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -51307,10 +52522,10 @@ class Test_TC_DGWIFI_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsNetworkInterfaceStructureAttributeFromDut_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralDiagnostics * cluster = [[MTRTestGeneralDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralDiagnostics * cluster = [[MTRBaseClusterGeneralDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNetworkInterfacesWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -51327,10 +52542,9 @@ class Test_TC_DGWIFI_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsSecurityTypeAttributeConstraints_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWiFiNetworkDiagnostics * cluster = [[MTRTestWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSecurityTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -51351,10 +52565,9 @@ class Test_TC_DGWIFI_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsWiFiVersionAttributeConstraints_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWiFiNetworkDiagnostics * cluster = [[MTRTestWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeWiFiVersionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -51377,10 +52590,9 @@ class Test_TC_DGWIFI_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsChannelNumberAttributeConstraints_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWiFiNetworkDiagnostics * cluster = [[MTRTestWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeChannelNumberWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -51401,10 +52613,9 @@ class Test_TC_DGWIFI_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsRssiAttributeConstraints_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWiFiNetworkDiagnostics * cluster = [[MTRTestWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRssiWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -51427,10 +52638,9 @@ class Test_TC_DGWIFI_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsBeaconLostCountAttributeConstraints_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWiFiNetworkDiagnostics * cluster = [[MTRTestWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBeaconLostCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -51447,10 +52657,9 @@ class Test_TC_DGWIFI_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsBeaconRxCountAttributeConstraints_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWiFiNetworkDiagnostics * cluster = [[MTRTestWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBeaconRxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -51467,10 +52676,9 @@ class Test_TC_DGWIFI_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsPacketMulticastRxCountAttributeConstraints_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWiFiNetworkDiagnostics * cluster = [[MTRTestWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePacketMulticastRxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -51487,10 +52695,9 @@ class Test_TC_DGWIFI_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsPacketMulticastTxCountAttributeConstraints_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWiFiNetworkDiagnostics * cluster = [[MTRTestWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePacketMulticastTxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -51507,10 +52714,9 @@ class Test_TC_DGWIFI_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsPacketUnicastRxCountAttributeConstraints_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWiFiNetworkDiagnostics * cluster = [[MTRTestWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePacketUnicastRxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -51527,10 +52733,9 @@ class Test_TC_DGWIFI_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsPacketUnicastTxCountAttributeConstraints_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWiFiNetworkDiagnostics * cluster = [[MTRTestWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePacketUnicastTxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -51547,10 +52752,9 @@ class Test_TC_DGWIFI_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentMaxRateAttributeConstraints_12() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWiFiNetworkDiagnostics * cluster = [[MTRTestWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentMaxRateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -51567,10 +52771,9 @@ class Test_TC_DGWIFI_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsOverrunCountAttributeConstraints_13() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWiFiNetworkDiagnostics * cluster = [[MTRTestWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOverrunCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -51748,10 +52951,9 @@ class Test_TC_DGWIFI_2_3 : public TestCommandBridge { CHIP_ERROR TestThSendsResetCountsCommandToDut_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWiFiNetworkDiagnostics * cluster = [[MTRTestWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster resetCountsWithCompletionHandler:^(NSError * _Nullable err) { @@ -51767,10 +52969,9 @@ class Test_TC_DGWIFI_2_3 : public TestCommandBridge { CHIP_ERROR TestReadsBeaconLostCountAttributeFromDut_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWiFiNetworkDiagnostics * cluster = [[MTRTestWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBeaconLostCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -51791,10 +52992,9 @@ class Test_TC_DGWIFI_2_3 : public TestCommandBridge { CHIP_ERROR TestReadsBeaconRxCountAttributeFromDut_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWiFiNetworkDiagnostics * cluster = [[MTRTestWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBeaconRxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -51815,10 +53015,9 @@ class Test_TC_DGWIFI_2_3 : public TestCommandBridge { CHIP_ERROR TestReadsPacketMulticastRxCountAttributeFromDut_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWiFiNetworkDiagnostics * cluster = [[MTRTestWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePacketMulticastRxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -51839,10 +53038,9 @@ class Test_TC_DGWIFI_2_3 : public TestCommandBridge { CHIP_ERROR TestReadsPacketMulticastTxCountAttributeFromDut_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWiFiNetworkDiagnostics * cluster = [[MTRTestWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePacketMulticastTxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -51863,10 +53061,9 @@ class Test_TC_DGWIFI_2_3 : public TestCommandBridge { CHIP_ERROR TestReadsPacketUnicastRxCountAttributeFromDut_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWiFiNetworkDiagnostics * cluster = [[MTRTestWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePacketUnicastRxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -51887,10 +53084,9 @@ class Test_TC_DGWIFI_2_3 : public TestCommandBridge { CHIP_ERROR TestReadsPacketUnicastTxCountAttributeFromDut_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWiFiNetworkDiagnostics * cluster = [[MTRTestWiFiNetworkDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWiFiNetworkDiagnostics * cluster = + [[MTRBaseClusterWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePacketUnicastTxCountWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -52061,8 +53257,10 @@ class Test_TC_WNCV_1_1 : public TestCommandBridge { CHIP_ERROR TestThReadsFromTheDutThe0xFFFDClusterRevisionAttribute_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterRevisionWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -52087,8 +53285,10 @@ class Test_TC_WNCV_1_1 : public TestCommandBridge { CHIP_ERROR TestThReadsFromTheDutThe0xFFFCFeatureMapAttribute_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFeatureMapWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -52108,8 +53308,10 @@ class Test_TC_WNCV_1_1 : public TestCommandBridge { CHIP_ERROR TestThReadsFromTheDutThe0xFFFBAttributeListAttribute_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -52137,8 +53339,10 @@ class Test_TC_WNCV_1_1 : public TestCommandBridge { CHIP_ERROR TestThReadsFromTheDutThe0xFFF9AcceptedCommandListAttribute_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -52159,8 +53363,10 @@ class Test_TC_WNCV_1_1 : public TestCommandBridge { CHIP_ERROR TestThReadsFromTheDutThe0xFFF8GeneratedCommandListAttribute_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -52538,8 +53744,10 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test1aReadTheRoMandatoryAttributeDefaultType_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -52559,8 +53767,10 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test1bReadTheRoMandatoryAttributeDefaultConfigStatus_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeConfigStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -52580,8 +53790,10 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test1cReadTheRoMandatoryAttributeDefaultOperationalStatus_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOperationalStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -52601,8 +53813,10 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test1dReadTheRoMandatoryAttributeDefaultEndProductType_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEndProductTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -52622,8 +53836,10 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test1eReadTheRwMandatoryAttributeDefaultMode_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -52643,8 +53859,10 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test1fWriteAValueIntoTheRwMandatoryAttributeMode_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id modeArgument; @@ -52663,8 +53881,10 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test2aReadTheRoOptionalAttributeDefaultTargetPositionLiftPercent100ths_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTargetPositionLiftPercent100thsWithCompletionHandler:^( @@ -52690,8 +53910,10 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test2bReadTheRoOptionalAttributeDefaultTargetPositionTiltPercent100ths_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTargetPositionTiltPercent100thsWithCompletionHandler:^( @@ -52717,8 +53939,10 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test2cReadTheRoOptionalAttributeDefaultCurrentPositionLiftPercent100ths_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionLiftPercent100thsWithCompletionHandler:^( @@ -52744,8 +53968,10 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test2dReadTheRoOptionalAttributeDefaultCurrentPositionTiltPercent100ths_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionTiltPercent100thsWithCompletionHandler:^( @@ -52771,8 +53997,10 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test2eReadTheRoOptionalAttributeDefaultInstalledOpenLimitLift_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInstalledOpenLimitLiftWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -52792,8 +54020,10 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test2fReadTheRoOptionalAttributeDefaultInstalledClosedLimitLift_12() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInstalledClosedLimitLiftWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -52813,8 +54043,10 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test2gReadTheRoOptionalAttributeDefaultInstalledOpenLimitTilt_13() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInstalledOpenLimitTiltWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -52834,8 +54066,10 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test2hReadTheRoOptionalAttributeDefaultInstalledClosedLimitTilt_14() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInstalledClosedLimitTiltWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -52855,8 +54089,10 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test3aReadTheRoMandatoryAttributeDefaultSafetyStatus_15() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSafetyStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -52876,8 +54112,10 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test3bReadTheRoOptionalAttributeDefaultPhysicalClosedLimitLift_16() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePhysicalClosedLimitLiftWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -52897,8 +54135,10 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test3cReadTheRoOptionalAttributeDefaultPhysicalClosedLimitTilt_17() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePhysicalClosedLimitTiltWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -52918,8 +54158,10 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test3dReadTheRoOptionalAttributeDefaultCurrentPositionLift_18() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionLiftWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -52942,8 +54184,10 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test3eReadTheRoOptionalAttributeDefaultCurrentPositionTilt_19() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionTiltWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -52966,8 +54210,10 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test3fReadTheRoOptionalAttributeDefaultNumberOfActuationsLift_20() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNumberOfActuationsLiftWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -52987,8 +54233,10 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test3gReadTheRoOptionalAttributeDefaultNumberOfActuationsTilt_21() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNumberOfActuationsTiltWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -53008,8 +54256,10 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test3hReadTheRoOptionalAttributeDefaultCurrentPositionLiftPercentage_22() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -53035,8 +54285,10 @@ class Test_TC_WNCV_2_1 : public TestCommandBridge { CHIP_ERROR Test3ireadTheRoOptionalAttributeDefaultCurrentPositionTiltPercentage_23() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -53461,8 +54713,10 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { CHIP_ERROR Test1aThSetTheModeAttributeBit0OfTheDut_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id modeArgument; @@ -53481,8 +54735,10 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { CHIP_ERROR Test1bThReadsConfigStatusAttributeFromDut_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeConfigStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -53501,8 +54757,10 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { CHIP_ERROR Test1cThClearTheModeAttributeBit0OfTheDut_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id modeArgument; @@ -53521,8 +54779,10 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { CHIP_ERROR Test1dThReadsConfigStatusAttributeFromDut_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeConfigStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -53541,8 +54801,10 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { CHIP_ERROR Test2aThSetTheModeAttributeBit1OfTheDut_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id modeArgument; @@ -53562,8 +54824,10 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { CHIP_ERROR Test2bThReadsConfigStatusAttributeFromDut_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeConfigStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -53585,8 +54849,10 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { CHIP_ERROR Test2cIfConfigStatusBit00ThSendDownOrCloseCommandToTheDut_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster downOrCloseWithCompletionHandler:^(NSError * _Nullable err) { @@ -53601,8 +54867,10 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { CHIP_ERROR Test2dThClearTheModeAttributeBit1OfTheDut_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id modeArgument; @@ -53621,8 +54889,10 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { CHIP_ERROR Test2eThReadsConfigStatusAttributeFromDut_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeConfigStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -53641,8 +54911,10 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { CHIP_ERROR Test2fThReadsTheModeAttributeFromTheDut_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -53661,8 +54933,10 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { CHIP_ERROR Test2gThSendDownOrCloseCommandToTheDut_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster downOrCloseWithCompletionHandler:^(NSError * _Nullable err) { @@ -53678,8 +54952,10 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { CHIP_ERROR Test3aThSetTheModeAttributeBit2OfTheDut_12() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id modeArgument; @@ -53698,8 +54974,10 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { CHIP_ERROR Test3bThSendDownOrCloseCommandToTheDut_13() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster downOrCloseWithCompletionHandler:^(NSError * _Nullable err) { @@ -53715,8 +54993,10 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { CHIP_ERROR Test3cThReadsConfigStatusAttributeFromDut_14() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeConfigStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -53738,8 +55018,10 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { CHIP_ERROR Test3dThClearTheModeAttributeBit2OfTheDut_15() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id modeArgument; @@ -53758,8 +55040,10 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { CHIP_ERROR Test3eThSendDownOrCloseCommandToTheDut_16() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster downOrCloseWithCompletionHandler:^(NSError * _Nullable err) { @@ -53775,8 +55059,10 @@ class Test_TC_WNCV_2_3 : public TestCommandBridge { CHIP_ERROR Test3fThReadsConfigStatusAttributeFromDut_17() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeConfigStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -53994,8 +55280,10 @@ class Test_TC_WNCV_2_5 : public TestCommandBridge { CHIP_ERROR TestThReadsEndProductTypeAttributeFromDut_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEndProductTypeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -54358,8 +55646,10 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { CHIP_ERROR Test1aThSendsDownOrCloseCommandToPrepositionTheDutInTheOppositeDirection_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster downOrCloseWithCompletionHandler:^(NSError * _Nullable err) { @@ -54382,8 +55672,10 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { CHIP_ERROR Test1cIfPaLfThReadsCurrentPositionLiftPercent100thsAttributeFromDut_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionLiftPercent100thsWithCompletionHandler:^( @@ -54409,8 +55701,10 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { CHIP_ERROR Test1dIfPaLfThReadsCurrentPositionLiftPercentageOptionalAttributeFromDut_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -54436,8 +55730,10 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { CHIP_ERROR Test1eIfPaTlThReadsCurrentPositionTiltPercent100thsAttributeFromDut_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionTiltPercent100thsWithCompletionHandler:^( @@ -54463,8 +55759,10 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { CHIP_ERROR Test1fIfPaTlThReadsCurrentPositionTiltPercentageOptionalAttributeFromDut_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -54492,8 +55790,10 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { CHIP_ERROR TestReport2SubscribeToDutReportsOnOperationalStatusAttribute_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); test_Test_TC_WNCV_3_1_OperationalStatus_Reported = ^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -54511,8 +55811,10 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { CHIP_ERROR Test2SubscribeToDutReportsOnOperationalStatusAttribute_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); uint16_t minIntervalArgument = 4U; @@ -54542,8 +55844,10 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { CHIP_ERROR Test2aThSendsUpOrOpenCommandToDut_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster upOrOpenWithCompletionHandler:^(NSError * _Nullable err) { @@ -54566,8 +55870,10 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { CHIP_ERROR Test2cIfPaLfThReadsTargetPositionLiftPercent100thsAttributeFromDut_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTargetPositionLiftPercent100thsWithCompletionHandler:^( @@ -54590,8 +55896,10 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { CHIP_ERROR Test2dIfPaTlThReadsTargetPositionTiltPercent100thsAttributeFromDut_12() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTargetPositionTiltPercent100thsWithCompletionHandler:^( @@ -54621,8 +55929,10 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { CHIP_ERROR Test3a1VerifyDutReportsOperationalStatusAttributeToThAfterAUpOrOpen_14() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); test_Test_TC_WNCV_3_1_OperationalStatus_Reported = ^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -54649,8 +55959,10 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { CHIP_ERROR Test3bIfPaLfThReadsCurrentPositionLiftPercent100thsAttributeFromDut_16() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionLiftPercent100thsWithCompletionHandler:^( @@ -54676,8 +55988,10 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { CHIP_ERROR Test3cIfPaLfThReadsCurrentPositionLiftPercentageOptionalAttributeFromDut_17() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -54703,8 +56017,10 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { CHIP_ERROR Test3dIfPaTlThReadsCurrentPositionTiltPercent100thsAttributeFromDut_18() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionTiltPercent100thsWithCompletionHandler:^( @@ -54730,8 +56046,10 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { CHIP_ERROR Test3eIfPaLfThReadsCurrentPositionTiltPercentageOptionalAttributeFromDut_19() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -54757,8 +56075,10 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { CHIP_ERROR Test4aThSendsAStopMotionCommandToDut_20() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster stopMotionWithCompletionHandler:^(NSError * _Nullable err) { @@ -54781,8 +56101,10 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { CHIP_ERROR Test4cVerifyDutUpdateOperationalStatusAttributeToThAfterAStopMotion_22() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOperationalStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -54810,8 +56132,10 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { CHIP_ERROR Test5bIfPaLfThReadsTargetPositionLiftPercent100thsAttributeFromDut_24() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTargetPositionLiftPercent100thsWithCompletionHandler:^( @@ -54837,8 +56161,10 @@ class Test_TC_WNCV_3_1 : public TestCommandBridge { CHIP_ERROR Test5cIfPaTlThReadsTargetPositionTiltPercent100thsAttributeFromDut_25() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTargetPositionTiltPercent100thsWithCompletionHandler:^( @@ -55207,8 +56533,10 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { CHIP_ERROR Test1aThSendsUpOrOpenCommandToPrepositionTheDutInTheOppositeDirection_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster upOrOpenWithCompletionHandler:^(NSError * _Nullable err) { @@ -55231,8 +56559,10 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { CHIP_ERROR Test1cIfPaLfThReadsCurrentPositionLiftPercent100thsAttributeFromDut_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionLiftPercent100thsWithCompletionHandler:^( @@ -55258,8 +56588,10 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { CHIP_ERROR Test1dIfPaLfThReadsCurrentPositionLiftPercentageOptionalAttributeFromDut_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -55285,8 +56617,10 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { CHIP_ERROR Test1eIfPaTlThReadsCurrentPositionTiltPercent100thsAttributeFromDut_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionTiltPercent100thsWithCompletionHandler:^( @@ -55312,8 +56646,10 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { CHIP_ERROR Test1fIfPaTlThReadsCurrentPositionTiltPercentageOptionalAttributeFromDut_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -55341,8 +56677,10 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { CHIP_ERROR TestReport2SubscribeToDutReportsOnOperationalStatusAttribute_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); test_Test_TC_WNCV_3_2_OperationalStatus_Reported = ^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -55360,8 +56698,10 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { CHIP_ERROR Test2SubscribeToDutReportsOnOperationalStatusAttribute_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); uint16_t minIntervalArgument = 4U; @@ -55391,8 +56731,10 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { CHIP_ERROR Test2aThSendsDownOrCloseCommandToDut_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster downOrCloseWithCompletionHandler:^(NSError * _Nullable err) { @@ -55415,8 +56757,10 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { CHIP_ERROR Test2cIfPaLfThReadsTargetPositionLiftPercent100thsAttributeFromDut_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTargetPositionLiftPercent100thsWithCompletionHandler:^( @@ -55439,8 +56783,10 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { CHIP_ERROR Test2dIfPaTlThReadsTargetPositionTiltPercent100thsAttributeFromDut_12() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTargetPositionTiltPercent100thsWithCompletionHandler:^( @@ -55470,8 +56816,10 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { CHIP_ERROR Test3aVerifyDutReportsOperationalStatusAttributeToThAfterADownOrClose_14() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); test_Test_TC_WNCV_3_2_OperationalStatus_Reported = ^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -55498,8 +56846,10 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { CHIP_ERROR Test3bIfPaLfThReadsCurrentPositionLiftPercent100thsAttributeFromDut_16() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionLiftPercent100thsWithCompletionHandler:^( @@ -55525,8 +56875,10 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { CHIP_ERROR Test3cIfPaLfThReadsCurrentPositionLiftPercentageOptionalAttributeFromDut_17() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -55552,8 +56904,10 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { CHIP_ERROR Test3dIfPaTlThReadsCurrentPositionTiltPercent100thsAttributeFromDut_18() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionTiltPercent100thsWithCompletionHandler:^( @@ -55579,8 +56933,10 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { CHIP_ERROR Test3eIfPaLfThReadsCurrentPositionTiltPercentageOptionalAttributeFromDut_19() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -55606,8 +56962,10 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { CHIP_ERROR Test4aThSendsAStopMotionCommandToDut_20() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster stopMotionWithCompletionHandler:^(NSError * _Nullable err) { @@ -55630,8 +56988,10 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { CHIP_ERROR Test4cVerifyDutUpdateOperationalStatusAttributeToThAfterAStopMotion_22() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOperationalStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -55659,8 +57019,10 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { CHIP_ERROR Test5bIfPaLfThReadsTargetPositionLiftPercent100thsAttributeFromDut_24() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTargetPositionLiftPercent100thsWithCompletionHandler:^( @@ -55686,8 +57048,10 @@ class Test_TC_WNCV_3_2 : public TestCommandBridge { CHIP_ERROR Test5cIfPaTlThReadsTargetPositionTiltPercent100thsAttributeFromDut_25() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTargetPositionTiltPercent100thsWithCompletionHandler:^( @@ -55948,8 +57312,10 @@ class Test_TC_WNCV_3_3 : public TestCommandBridge { CHIP_ERROR Test1aThSendsDownOrCloseCommandToPrepositionTheDutInTheOppositeDirection_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster downOrCloseWithCompletionHandler:^(NSError * _Nullable err) { @@ -55972,8 +57338,10 @@ class Test_TC_WNCV_3_3 : public TestCommandBridge { CHIP_ERROR Test1cThSendsUpOrOpenCommandToPrepositionTheDutInTheOppositeDirection_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster upOrOpenWithCompletionHandler:^(NSError * _Nullable err) { @@ -55998,8 +57366,10 @@ class Test_TC_WNCV_3_3 : public TestCommandBridge { CHIP_ERROR TestReport2SubscribeToDutReportsOnOperationalStatusAttribute_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); test_Test_TC_WNCV_3_3_OperationalStatus_Reported = ^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -56017,8 +57387,10 @@ class Test_TC_WNCV_3_3 : public TestCommandBridge { CHIP_ERROR Test2SubscribeToDutReportsOnOperationalStatusAttribute_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); uint16_t minIntervalArgument = 4U; @@ -56048,8 +57420,10 @@ class Test_TC_WNCV_3_3 : public TestCommandBridge { CHIP_ERROR Test2aThSendsAStopMotionCommandToDut_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster stopMotionWithCompletionHandler:^(NSError * _Nullable err) { @@ -56072,8 +57446,10 @@ class Test_TC_WNCV_3_3 : public TestCommandBridge { CHIP_ERROR Test2cVerifyDutReportsOperationalStatusAttributeToThAfterAStopMotion_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); test_Test_TC_WNCV_3_3_OperationalStatus_Reported = ^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -56101,8 +57477,10 @@ class Test_TC_WNCV_3_3 : public TestCommandBridge { CHIP_ERROR Test2eThReadsOperationalStatusAttributeFromDut_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOperationalStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -56124,8 +57502,10 @@ class Test_TC_WNCV_3_3 : public TestCommandBridge { CHIP_ERROR Test3aIfPaLfThReadsCurrentPositionLiftPercent100thsAttributeFromDut_12() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionLiftPercent100thsWithCompletionHandler:^( @@ -56154,8 +57534,10 @@ class Test_TC_WNCV_3_3 : public TestCommandBridge { CHIP_ERROR Test3bIfPaLfThReadsTargetPositionLiftPercent100thsAttribute3cItMustBeEqualWithCurrentPositionLiftPercent100thsFromDut_13() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTargetPositionLiftPercent100thsWithCompletionHandler:^( @@ -56185,8 +57567,10 @@ class Test_TC_WNCV_3_3 : public TestCommandBridge { CHIP_ERROR Test4aIfPaTlThReadsCurrentPositionTiltPercent100thsAttributeFromDut_14() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionTiltPercent100thsWithCompletionHandler:^( @@ -56215,8 +57599,10 @@ class Test_TC_WNCV_3_3 : public TestCommandBridge { CHIP_ERROR Test4bIfPaTlThReadsTargetPositionTiltPercent100thsAttribute4cItMustBeEqualWithCurrentPositionTiltPercent100thsFromDut_15() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTargetPositionTiltPercent100thsWithCompletionHandler:^( @@ -56431,8 +57817,10 @@ class Test_TC_WNCV_3_4 : public TestCommandBridge { CHIP_ERROR Test1aThSendsDownOrCloseCommandToPrepositionTheDutInTheOppositeDirection_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster downOrCloseWithCompletionHandler:^(NSError * _Nullable err) { @@ -56455,8 +57843,10 @@ class Test_TC_WNCV_3_4 : public TestCommandBridge { CHIP_ERROR Test2aThSendsUpOrOpenCommandToDut_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster upOrOpenWithCompletionHandler:^(NSError * _Nullable err) { @@ -56479,8 +57869,10 @@ class Test_TC_WNCV_3_4 : public TestCommandBridge { CHIP_ERROR Test2cThReadsOperationalStatusAttributeFromDut_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOperationalStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -56501,8 +57893,10 @@ class Test_TC_WNCV_3_4 : public TestCommandBridge { CHIP_ERROR Test3aIfPaLfThReadsCurrentPositionLiftPercent100thsAttributeFromDut_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionLiftPercent100thsWithCompletionHandler:^( @@ -56525,8 +57919,10 @@ class Test_TC_WNCV_3_4 : public TestCommandBridge { CHIP_ERROR Test3bIfPaLfThReadsCurrentPositionLiftPercentageOptionalAttributeFromDut_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -56549,8 +57945,10 @@ class Test_TC_WNCV_3_4 : public TestCommandBridge { CHIP_ERROR Test3cIfPaTlThReadsCurrentPositionTiltPercent100thsAttributeFromDut_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionTiltPercent100thsWithCompletionHandler:^( @@ -56573,8 +57971,10 @@ class Test_TC_WNCV_3_4 : public TestCommandBridge { CHIP_ERROR Test3dIfPaTlThReadsCurrentPositionTiltPercentageOptionalAttributeFromDut_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -56783,8 +58183,10 @@ class Test_TC_WNCV_3_5 : public TestCommandBridge { CHIP_ERROR Test1aThSendsUpOrOpenCommandToPrepositionTheDutInTheOppositeDirection_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster upOrOpenWithCompletionHandler:^(NSError * _Nullable err) { @@ -56807,8 +58209,10 @@ class Test_TC_WNCV_3_5 : public TestCommandBridge { CHIP_ERROR Test2aThSendsDownOrCloseCommandToDut_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster downOrCloseWithCompletionHandler:^(NSError * _Nullable err) { @@ -56831,8 +58235,10 @@ class Test_TC_WNCV_3_5 : public TestCommandBridge { CHIP_ERROR Test2cThReadsOperationalStatusAttributeFromDut_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOperationalStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -56853,8 +58259,10 @@ class Test_TC_WNCV_3_5 : public TestCommandBridge { CHIP_ERROR Test3aIfPaLfThReadsCurrentPositionLiftPercent100thsAttributeFromDut_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionLiftPercent100thsWithCompletionHandler:^( @@ -56877,8 +58285,10 @@ class Test_TC_WNCV_3_5 : public TestCommandBridge { CHIP_ERROR Test3bIfPaLfThReadsCurrentPositionLiftPercentageOptionalAttributeFromDut_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -56901,8 +58311,10 @@ class Test_TC_WNCV_3_5 : public TestCommandBridge { CHIP_ERROR Test3cIfPaTlThReadsCurrentPositionTiltPercent100thsAttributeFromDut_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionTiltPercent100thsWithCompletionHandler:^( @@ -56925,8 +58337,10 @@ class Test_TC_WNCV_3_5 : public TestCommandBridge { CHIP_ERROR Test3dIfPaTlThReadsCurrentPositionTiltPercentageOptionalAttributeFromDut_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -57210,8 +58624,10 @@ class Test_TC_WNCV_4_1 : public TestCommandBridge { CHIP_ERROR Test1aThSendsDownOrCloseCommandToPrepositionTheDutInTheOppositeDirection_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster downOrCloseWithCompletionHandler:^(NSError * _Nullable err) { @@ -57234,8 +58650,10 @@ class Test_TC_WNCV_4_1 : public TestCommandBridge { CHIP_ERROR Test1cIfPaLfThReadsCurrentPositionLiftPercent100thsAttributeFromDut_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionLiftPercent100thsWithCompletionHandler:^( @@ -57256,8 +58674,10 @@ class Test_TC_WNCV_4_1 : public TestCommandBridge { CHIP_ERROR Test2aThSendsGoToLiftPercentageCommandWith25PercentToDut_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRWindowCoveringClusterGoToLiftPercentageParams alloc] init]; @@ -57283,8 +58703,10 @@ class Test_TC_WNCV_4_1 : public TestCommandBridge { CHIP_ERROR Test2cIfPaLfThReadsTargetPositionLiftPercent100thsAttributeFromDut_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTargetPositionLiftPercent100thsWithCompletionHandler:^( @@ -57314,8 +58736,10 @@ class Test_TC_WNCV_4_1 : public TestCommandBridge { CHIP_ERROR Test3bThReadsOperationalStatusAttributeFromDut_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOperationalStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -57336,8 +58760,10 @@ class Test_TC_WNCV_4_1 : public TestCommandBridge { CHIP_ERROR Test3cIfPaLfThReadsCurrentPositionLiftPercent100thsAttributeFromDut_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionLiftPercent100thsWithCompletionHandler:^( @@ -57360,8 +58786,10 @@ class Test_TC_WNCV_4_1 : public TestCommandBridge { CHIP_ERROR Test3dIfPaLfThReadsCurrentPositionLiftPercentageOptionalAttributeFromDut_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -57384,8 +58812,10 @@ class Test_TC_WNCV_4_1 : public TestCommandBridge { CHIP_ERROR Test4aThSendsGoToLiftPercentageCommandWith7520PercentToDut_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRWindowCoveringClusterGoToLiftPercentageParams alloc] init]; @@ -57411,8 +58841,10 @@ class Test_TC_WNCV_4_1 : public TestCommandBridge { CHIP_ERROR Test4cIfPaLfThReadsTargetPositionLiftPercent100thsAttributeFromDut_13() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTargetPositionLiftPercent100thsWithCompletionHandler:^( @@ -57442,8 +58874,10 @@ class Test_TC_WNCV_4_1 : public TestCommandBridge { CHIP_ERROR Test5bThReadsOperationalStatusAttributeFromDut_15() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOperationalStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -57464,8 +58898,10 @@ class Test_TC_WNCV_4_1 : public TestCommandBridge { CHIP_ERROR Test5cIfPaLfThReadsCurrentPositionLiftPercent100thsAttributeFromDut_16() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionLiftPercent100thsWithCompletionHandler:^( @@ -57488,8 +58924,10 @@ class Test_TC_WNCV_4_1 : public TestCommandBridge { CHIP_ERROR Test5dIfPaLfThReadsCurrentPositionLiftPercentageOptionalAttributeFromDut_17() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -57773,8 +59211,10 @@ class Test_TC_WNCV_4_2 : public TestCommandBridge { CHIP_ERROR Test1aThSendsDownOrCloseCommandToPrepositionTheDutInTheOppositeDirection_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster downOrCloseWithCompletionHandler:^(NSError * _Nullable err) { @@ -57797,8 +59237,10 @@ class Test_TC_WNCV_4_2 : public TestCommandBridge { CHIP_ERROR Test1cIfPaTlThReadsCurrentPositionTiltPercent100thsAttributeFromDut_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionTiltPercent100thsWithCompletionHandler:^( @@ -57819,8 +59261,10 @@ class Test_TC_WNCV_4_2 : public TestCommandBridge { CHIP_ERROR Test2aThSendsGoToTiltPercentageCommandWith30PercentToDut_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRWindowCoveringClusterGoToTiltPercentageParams alloc] init]; @@ -57846,8 +59290,10 @@ class Test_TC_WNCV_4_2 : public TestCommandBridge { CHIP_ERROR Test2cIfPaTlThReadsTargetPositionTiltPercent100thsAttributeFromDut_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTargetPositionTiltPercent100thsWithCompletionHandler:^( @@ -57877,8 +59323,10 @@ class Test_TC_WNCV_4_2 : public TestCommandBridge { CHIP_ERROR Test3bThReadsOperationalStatusAttributeFromDut_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOperationalStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -57899,8 +59347,10 @@ class Test_TC_WNCV_4_2 : public TestCommandBridge { CHIP_ERROR Test3cIfPaTlThReadsCurrentPositionTiltPercent100thsAttributeFromDut_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionTiltPercent100thsWithCompletionHandler:^( @@ -57923,8 +59373,10 @@ class Test_TC_WNCV_4_2 : public TestCommandBridge { CHIP_ERROR Test3dIfPaTlThReadsCurrentPositionTiltPercentageOptionalAttributeFromDut_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -57947,8 +59399,10 @@ class Test_TC_WNCV_4_2 : public TestCommandBridge { CHIP_ERROR Test4aThSendsGoToTiltPercentageCommandWith6020PercentToDut_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRWindowCoveringClusterGoToTiltPercentageParams alloc] init]; @@ -57974,8 +59428,10 @@ class Test_TC_WNCV_4_2 : public TestCommandBridge { CHIP_ERROR Test4cIfPaTlThReadsTargetPositionTiltPercent100thsAttributeFromDut_13() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTargetPositionTiltPercent100thsWithCompletionHandler:^( @@ -58005,8 +59461,10 @@ class Test_TC_WNCV_4_2 : public TestCommandBridge { CHIP_ERROR Test5bThReadsOperationalStatusAttributeFromDut_15() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOperationalStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -58027,8 +59485,10 @@ class Test_TC_WNCV_4_2 : public TestCommandBridge { CHIP_ERROR Test5cIfPaTlThReadsCurrentPositionTiltPercent100thsAttributeFromDut_16() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionTiltPercent100thsWithCompletionHandler:^( @@ -58051,8 +59511,10 @@ class Test_TC_WNCV_4_2 : public TestCommandBridge { CHIP_ERROR Test5dIfPaTlThReadsCurrentPositionTiltPercentageOptionalAttributeFromDut_17() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -58218,8 +59680,10 @@ class Test_TC_WNCV_4_3 : public TestCommandBridge { CHIP_ERROR Test1aIfPaLfLfThReadsCurrentPositionLiftPercent100thsFromDut_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionLiftPercent100thsWithCompletionHandler:^( @@ -58248,8 +59712,10 @@ class Test_TC_WNCV_4_3 : public TestCommandBridge { CHIP_ERROR Test1b1cIfPaLfLfThReadsCurrentPositionLiftPercentageFromDutAssertCurrentPositionLiftPercent100ths100EqualsCurrentPositionLiftPercentage_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -58282,8 +59748,10 @@ class Test_TC_WNCV_4_3 : public TestCommandBridge { CHIP_ERROR Test2bThSendsGoToLiftPercentageCommandWithBadParamToDut_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRWindowCoveringClusterGoToLiftPercentageParams alloc] init]; @@ -58301,8 +59769,10 @@ class Test_TC_WNCV_4_3 : public TestCommandBridge { CHIP_ERROR Test3aThSendsGoToLiftPercentageCommandWith10001ToDut_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRWindowCoveringClusterGoToLiftPercentageParams alloc] init]; @@ -58320,8 +59790,10 @@ class Test_TC_WNCV_4_3 : public TestCommandBridge { CHIP_ERROR Test4aThSendsGoToLiftPercentageCommandWith0xFFFFToDut_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRWindowCoveringClusterGoToLiftPercentageParams alloc] init]; @@ -58482,8 +59954,10 @@ class Test_TC_WNCV_4_4 : public TestCommandBridge { CHIP_ERROR Test1aIfPaTlTlThReadsCurrentPositionTiltPercent100thsFromDut_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionTiltPercent100thsWithCompletionHandler:^( @@ -58512,8 +59986,10 @@ class Test_TC_WNCV_4_4 : public TestCommandBridge { CHIP_ERROR Test1b1cIfPaLfLfThReadsCurrentPositionTiltPercentageFromDutAssertCurrentPositionTiltPercent100ths100EqualsCurrentPositionTiltPercentage_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -58546,8 +60022,10 @@ class Test_TC_WNCV_4_4 : public TestCommandBridge { CHIP_ERROR Test2bThSendsGoToTiltPercentageCommandWithBadParamToDut_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRWindowCoveringClusterGoToTiltPercentageParams alloc] init]; @@ -58565,8 +60043,10 @@ class Test_TC_WNCV_4_4 : public TestCommandBridge { CHIP_ERROR Test3aThSendsGoToTiltPercentageCommandWith10001ToDut_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRWindowCoveringClusterGoToTiltPercentageParams alloc] init]; @@ -58584,8 +60064,10 @@ class Test_TC_WNCV_4_4 : public TestCommandBridge { CHIP_ERROR Test4aThSendsGoToTiltPercentageCommandWith0xFFFFToDut_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRWindowCoveringClusterGoToTiltPercentageParams alloc] init]; @@ -58841,8 +60323,10 @@ class Test_TC_WNCV_4_5 : public TestCommandBridge { CHIP_ERROR Test0bThSendsUpOrOpenCommandToPrepositionTheDut_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster upOrOpenWithCompletionHandler:^(NSError * _Nullable err) { @@ -58858,8 +60342,10 @@ class Test_TC_WNCV_4_5 : public TestCommandBridge { CHIP_ERROR Test1aIfPaLfLfThSendsGoToLiftPercentageCommandWith90ToDut_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRWindowCoveringClusterGoToLiftPercentageParams alloc] init]; @@ -58885,8 +60371,10 @@ class Test_TC_WNCV_4_5 : public TestCommandBridge { CHIP_ERROR Test1cThSendsStopMotionCommandToDut_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster stopMotionWithCompletionHandler:^(NSError * _Nullable err) { @@ -58909,8 +60397,10 @@ class Test_TC_WNCV_4_5 : public TestCommandBridge { CHIP_ERROR Test2aIfPaTlTlThSendsGoToTiltPercentageCommandWith90ToDut_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRWindowCoveringClusterGoToTiltPercentageParams alloc] init]; @@ -58936,8 +60426,10 @@ class Test_TC_WNCV_4_5 : public TestCommandBridge { CHIP_ERROR Test2cThSendsStopMotionCommandToDut_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster stopMotionWithCompletionHandler:^(NSError * _Nullable err) { @@ -58961,8 +60453,10 @@ class Test_TC_WNCV_4_5 : public TestCommandBridge { CHIP_ERROR Test3aThReadsCurrentPositionLiftPercent100thsFromDut_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionLiftPercent100thsWithCompletionHandler:^( @@ -58987,8 +60481,10 @@ class Test_TC_WNCV_4_5 : public TestCommandBridge { CHIP_ERROR Test3bThReadsCurrentPositionTiltPercent100thsFromDut_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionTiltPercent100thsWithCompletionHandler:^( @@ -59035,8 +60531,10 @@ class Test_TC_WNCV_4_5 : public TestCommandBridge { CHIP_ERROR Test3eThReadsCurrentPositionLiftPercent100thsFromDut_15() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionLiftPercent100thsWithCompletionHandler:^( @@ -59064,8 +60562,10 @@ class Test_TC_WNCV_4_5 : public TestCommandBridge { CHIP_ERROR Test3fThReadsCurrentPositionTiltPercent100thsFromDut_16() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWindowCovering * cluster = [[MTRTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWindowCovering * cluster = [[MTRBaseClusterWindowCovering alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentPositionTiltPercent100thsWithCompletionHandler:^( @@ -59198,8 +60698,10 @@ class TV_TargetNavigatorCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeTargetNavigatorList_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTargetNavigator * cluster = [[MTRTestTargetNavigator alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTargetNavigator * cluster = [[MTRBaseClusterTargetNavigator alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeTargetListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -59226,8 +60728,10 @@ class TV_TargetNavigatorCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeCurrentNavigatorTarget_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTargetNavigator * cluster = [[MTRTestTargetNavigator alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTargetNavigator * cluster = [[MTRBaseClusterTargetNavigator alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentTargetWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -59248,8 +60752,10 @@ class TV_TargetNavigatorCluster : public TestCommandBridge { CHIP_ERROR TestNavigateTargetRequestCommand_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTargetNavigator * cluster = [[MTRTestTargetNavigator alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTargetNavigator * cluster = [[MTRBaseClusterTargetNavigator alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRTargetNavigatorClusterNavigateTargetParams alloc] init]; @@ -59399,8 +60905,10 @@ class TV_AudioOutputCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeAudioOutputList_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAudioOutput * cluster = [[MTRTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAudioOutput * cluster = [[MTRBaseClusterAudioOutput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOutputListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -59430,8 +60938,10 @@ class TV_AudioOutputCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeCurrentAudioOutput_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAudioOutput * cluster = [[MTRTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAudioOutput * cluster = [[MTRBaseClusterAudioOutput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentOutputWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -59452,8 +60962,10 @@ class TV_AudioOutputCluster : public TestCommandBridge { CHIP_ERROR TestSelectOutputCommand_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAudioOutput * cluster = [[MTRTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAudioOutput * cluster = [[MTRBaseClusterAudioOutput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRAudioOutputClusterSelectOutputParams alloc] init]; @@ -59472,8 +60984,10 @@ class TV_AudioOutputCluster : public TestCommandBridge { CHIP_ERROR TestRenameOutputCommand_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAudioOutput * cluster = [[MTRTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAudioOutput * cluster = [[MTRBaseClusterAudioOutput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRAudioOutputClusterRenameOutputParams alloc] init]; @@ -59493,8 +61007,10 @@ class TV_AudioOutputCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeAudioOutputList_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAudioOutput * cluster = [[MTRTestAudioOutput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAudioOutput * cluster = [[MTRBaseClusterAudioOutput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOutputListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -59643,10 +61159,10 @@ class TV_ApplicationLauncherCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeApplicationLauncherList_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestApplicationLauncher * cluster = [[MTRTestApplicationLauncher alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterApplicationLauncher * cluster = [[MTRBaseClusterApplicationLauncher alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCatalogListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -59669,10 +61185,10 @@ class TV_ApplicationLauncherCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeApplicationLauncherApp_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestApplicationLauncher * cluster = [[MTRTestApplicationLauncher alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterApplicationLauncher * cluster = [[MTRBaseClusterApplicationLauncher alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentAppWithCompletionHandler:^( @@ -59694,10 +61210,10 @@ class TV_ApplicationLauncherCluster : public TestCommandBridge { CHIP_ERROR TestLaunchAppCommand_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestApplicationLauncher * cluster = [[MTRTestApplicationLauncher alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterApplicationLauncher * cluster = [[MTRBaseClusterApplicationLauncher alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRApplicationLauncherClusterLaunchAppParams alloc] init]; @@ -59731,10 +61247,10 @@ class TV_ApplicationLauncherCluster : public TestCommandBridge { CHIP_ERROR TestStopAppCommand_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestApplicationLauncher * cluster = [[MTRTestApplicationLauncher alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterApplicationLauncher * cluster = [[MTRBaseClusterApplicationLauncher alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRApplicationLauncherClusterStopAppParams alloc] init]; @@ -59767,10 +61283,10 @@ class TV_ApplicationLauncherCluster : public TestCommandBridge { CHIP_ERROR TestHideAppCommand_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestApplicationLauncher * cluster = [[MTRTestApplicationLauncher alloc] initWithDevice:device - endpoint:1 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterApplicationLauncher * cluster = [[MTRBaseClusterApplicationLauncher alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRApplicationLauncherClusterHideAppParams alloc] init]; @@ -59894,8 +61410,10 @@ class TV_KeypadInputCluster : public TestCommandBridge { CHIP_ERROR TestSendKeyCommand_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestKeypadInput * cluster = [[MTRTestKeypadInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterKeypadInput * cluster = [[MTRBaseClusterKeypadInput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRKeypadInputClusterSendKeyParams alloc] init]; @@ -60024,8 +61542,10 @@ class TV_AccountLoginCluster : public TestCommandBridge { CHIP_ERROR TestGetSetupPinCommand_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAccountLogin * cluster = [[MTRTestAccountLogin alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAccountLogin * cluster = [[MTRBaseClusterAccountLogin alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRAccountLoginClusterGetSetupPINParams alloc] init]; @@ -60050,8 +61570,10 @@ class TV_AccountLoginCluster : public TestCommandBridge { CHIP_ERROR TestLoginCommand_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAccountLogin * cluster = [[MTRTestAccountLogin alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAccountLogin * cluster = [[MTRBaseClusterAccountLogin alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRAccountLoginClusterLoginParams alloc] init]; @@ -60071,8 +61593,10 @@ class TV_AccountLoginCluster : public TestCommandBridge { CHIP_ERROR TestLogoutCommand_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAccountLogin * cluster = [[MTRTestAccountLogin alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAccountLogin * cluster = [[MTRBaseClusterAccountLogin alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster logoutWithCompletionHandler:^(NSError * _Nullable err) { @@ -60179,8 +61703,8 @@ class TV_WakeOnLanCluster : public TestCommandBridge { CHIP_ERROR TestReadMacAddress_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestWakeOnLan * cluster = [[MTRTestWakeOnLan alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterWakeOnLan * cluster = [[MTRBaseClusterWakeOnLan alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMACAddressWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -60341,8 +61865,10 @@ class TV_ApplicationBasicCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeVendorName_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestApplicationBasic * cluster = [[MTRTestApplicationBasic alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeVendorNameWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -60363,8 +61889,10 @@ class TV_ApplicationBasicCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeVendorId_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestApplicationBasic * cluster = [[MTRTestApplicationBasic alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeVendorIDWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -60385,8 +61913,10 @@ class TV_ApplicationBasicCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeApplicationName_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestApplicationBasic * cluster = [[MTRTestApplicationBasic alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeApplicationNameWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -60407,8 +61937,10 @@ class TV_ApplicationBasicCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeProductId_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestApplicationBasic * cluster = [[MTRTestApplicationBasic alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeProductIDWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -60429,8 +61961,10 @@ class TV_ApplicationBasicCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeApplicationStatus_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestApplicationBasic * cluster = [[MTRTestApplicationBasic alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeStatusWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -60451,8 +61985,10 @@ class TV_ApplicationBasicCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeApplicationStatus_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestApplicationBasic * cluster = [[MTRTestApplicationBasic alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeApplicationWithCompletionHandler:^( @@ -60477,8 +62013,10 @@ class TV_ApplicationBasicCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeApplicationVersion_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestApplicationBasic * cluster = [[MTRTestApplicationBasic alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeApplicationVersionWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -60499,8 +62037,10 @@ class TV_ApplicationBasicCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeApplicationAllowedVendorList_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestApplicationBasic * cluster = [[MTRTestApplicationBasic alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterApplicationBasic * cluster = [[MTRBaseClusterApplicationBasic alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAllowedVendorListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -60754,8 +62294,10 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributePlaybackState_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -60776,8 +62318,10 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeStartTime_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeStartTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -60799,8 +62343,10 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeDuration_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeDurationWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -60822,8 +62368,10 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributePosition_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSampledPositionWithCompletionHandler:^( @@ -60848,8 +62396,10 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributePlaybackSpeed_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePlaybackSpeedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -60870,8 +62420,10 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeSeekRangeEnd_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSeekRangeEndWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -60893,8 +62445,10 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeSeekRangeStart_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSeekRangeStartWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -60916,8 +62470,10 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIP_ERROR TestMediaPlaybackPlayCommand_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -60944,8 +62500,10 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIP_ERROR TestMediaPlaybackPauseCommand_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster pauseWithCompletionHandler:^( @@ -60972,8 +62530,10 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIP_ERROR TestMediaPlaybackStopCommand_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster stopPlaybackWithCompletionHandler:^( @@ -61000,8 +62560,10 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIP_ERROR TestMediaPlaybackStartOverCommand_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster startOverWithCompletionHandler:^( @@ -61028,8 +62590,10 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIP_ERROR TestMediaPlaybackPreviousCommand_12() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster previousWithCompletionHandler:^( @@ -61056,8 +62620,10 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIP_ERROR TestMediaPlaybackNextCommand_13() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -61084,8 +62650,10 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIP_ERROR TestMediaPlaybackRewindCommand_14() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster rewindWithCompletionHandler:^( @@ -61112,8 +62680,10 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIP_ERROR TestMediaPlaybackFastForwardCommand_15() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster fastForwardWithCompletionHandler:^( @@ -61140,8 +62710,10 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIP_ERROR TestMediaPlaybackSkipForwardCommand_16() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRMediaPlaybackClusterSkipForwardParams alloc] init]; @@ -61171,8 +62743,10 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributePositionAfterSkipForward_17() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSampledPositionWithCompletionHandler:^( @@ -61197,8 +62771,10 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIP_ERROR TestMediaPlaybackSkipBackwardCommand_18() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRMediaPlaybackClusterSkipBackwardParams alloc] init]; @@ -61228,8 +62804,10 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributePositionAfterSkipBackward_19() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSampledPositionWithCompletionHandler:^( @@ -61254,8 +62832,10 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIP_ERROR TestMediaPlaybackSeekCommand_20() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRMediaPlaybackClusterSeekParams alloc] init]; @@ -61284,8 +62864,10 @@ class TV_MediaPlaybackCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributePositionAfterSeek_21() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaPlayback * cluster = [[MTRTestMediaPlayback alloc] initWithDevice:device endpoint:3 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaPlayback * cluster = [[MTRBaseClusterMediaPlayback alloc] initWithDevice:device + endpoint:3 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSampledPositionWithCompletionHandler:^( @@ -61436,8 +63018,8 @@ class TV_ChannelCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeChannelList_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestChannel * cluster = [[MTRTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterChannel * cluster = [[MTRBaseClusterChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeChannelListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -61487,8 +63069,8 @@ class TV_ChannelCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeChannelLineup_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestChannel * cluster = [[MTRTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterChannel * cluster = [[MTRBaseClusterChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -61517,8 +63099,8 @@ class TV_ChannelCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeCurrentChannel_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestChannel * cluster = [[MTRTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterChannel * cluster = [[MTRBaseClusterChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentChannelWithCompletionHandler:^( @@ -61546,8 +63128,8 @@ class TV_ChannelCluster : public TestCommandBridge { CHIP_ERROR TestChangeChannelCommand_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestChannel * cluster = [[MTRTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterChannel * cluster = [[MTRBaseClusterChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRChannelClusterChangeChannelParams alloc] init]; @@ -61577,8 +63159,8 @@ class TV_ChannelCluster : public TestCommandBridge { CHIP_ERROR TestChangeChannelByNumberCommand_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestChannel * cluster = [[MTRTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterChannel * cluster = [[MTRBaseClusterChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRChannelClusterChangeChannelByNumberParams alloc] init]; @@ -61598,8 +63180,8 @@ class TV_ChannelCluster : public TestCommandBridge { CHIP_ERROR TestSkipChannelCommand_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestChannel * cluster = [[MTRTestChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterChannel * cluster = [[MTRBaseClusterChannel alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRChannelClusterSkipChannelParams alloc] init]; @@ -61709,8 +63291,8 @@ class TV_LowPowerCluster : public TestCommandBridge { CHIP_ERROR TestSleepInputStatusCommand_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestLowPower * cluster = [[MTRTestLowPower alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterLowPower * cluster = [[MTRBaseClusterLowPower alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster sleepWithCompletionHandler:^(NSError * _Nullable err) { @@ -61838,8 +63420,10 @@ class TV_ContentLauncherCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeAcceptHeaderList_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestContentLauncher * cluster = [[MTRTestContentLauncher alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterContentLauncher * cluster = [[MTRBaseClusterContentLauncher alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptHeaderWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -61862,8 +63446,10 @@ class TV_ContentLauncherCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeSupportedStreamingProtocols_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestContentLauncher * cluster = [[MTRTestContentLauncher alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterContentLauncher * cluster = [[MTRBaseClusterContentLauncher alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -61885,8 +63471,10 @@ class TV_ContentLauncherCluster : public TestCommandBridge { CHIP_ERROR TestLaunchContentCommand_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestContentLauncher * cluster = [[MTRTestContentLauncher alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterContentLauncher * cluster = [[MTRBaseClusterContentLauncher alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRContentLauncherClusterLaunchContentParams alloc] init]; @@ -61935,8 +63523,10 @@ class TV_ContentLauncherCluster : public TestCommandBridge { CHIP_ERROR TestLaunchUrlCommand_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestContentLauncher * cluster = [[MTRTestContentLauncher alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterContentLauncher * cluster = [[MTRBaseClusterContentLauncher alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRContentLauncherClusterLaunchURLParams alloc] init]; @@ -62266,8 +63856,10 @@ class TV_MediaInputCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeMediaInputList_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaInput * cluster = [[MTRTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaInput * cluster = [[MTRBaseClusterMediaInput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInputListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -62298,8 +63890,10 @@ class TV_MediaInputCluster : public TestCommandBridge { CHIP_ERROR TestReadCurrentMediaInput_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaInput * cluster = [[MTRTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaInput * cluster = [[MTRBaseClusterMediaInput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentInputWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -62320,8 +63914,10 @@ class TV_MediaInputCluster : public TestCommandBridge { CHIP_ERROR TestSelectInputCommand_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaInput * cluster = [[MTRTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaInput * cluster = [[MTRBaseClusterMediaInput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRMediaInputClusterSelectInputParams alloc] init]; @@ -62340,8 +63936,10 @@ class TV_MediaInputCluster : public TestCommandBridge { CHIP_ERROR TestHideInputStatusCommand_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaInput * cluster = [[MTRTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaInput * cluster = [[MTRBaseClusterMediaInput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster hideInputStatusWithCompletionHandler:^(NSError * _Nullable err) { @@ -62357,8 +63955,10 @@ class TV_MediaInputCluster : public TestCommandBridge { CHIP_ERROR TestShowInputStatusCommand_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaInput * cluster = [[MTRTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaInput * cluster = [[MTRBaseClusterMediaInput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster showInputStatusWithCompletionHandler:^(NSError * _Nullable err) { @@ -62374,8 +63974,10 @@ class TV_MediaInputCluster : public TestCommandBridge { CHIP_ERROR TestRenameInputCommand_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaInput * cluster = [[MTRTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaInput * cluster = [[MTRBaseClusterMediaInput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRMediaInputClusterRenameInputParams alloc] init]; @@ -62395,8 +63997,10 @@ class TV_MediaInputCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeMediaInputList_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestMediaInput * cluster = [[MTRTestMediaInput alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterMediaInput * cluster = [[MTRBaseClusterMediaInput alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInputListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -66033,8 +67637,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendTestCommand_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster testWithCompletionHandler:^(NSError * _Nullable err) { @@ -66050,8 +67656,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendTestNotHandledCommand_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster testNotHandledWithCompletionHandler:^(NSError * _Nullable err) { @@ -66066,8 +67674,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendTestSpecificCommand_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster testSpecificWithCompletionHandler:^( @@ -66089,8 +67699,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendTestAddArgumentsCommand_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRTestClusterClusterTestAddArgumentsParams alloc] init]; @@ -66116,8 +67728,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendFailingTestAddArgumentsCommand_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRTestClusterClusterTestAddArgumentsParams alloc] init]; @@ -66137,8 +67751,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeBooleanDefaultValue_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBooleanWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66159,8 +67775,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeBooleanTrue_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id booleanArgument; @@ -66179,8 +67797,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeBooleanTrue_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBooleanWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66201,8 +67821,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeBooleanFalse_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id booleanArgument; @@ -66221,8 +67843,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeBooleanFalse_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBooleanWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66243,8 +67867,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap8DefaultValue_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66265,8 +67891,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeBitmap8MaxValue_12() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id bitmap8Argument; @@ -66285,8 +67913,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap8MaxValue_13() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66307,8 +67937,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeBitmap8MinValue_14() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id bitmap8Argument; @@ -66327,8 +67959,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap8MinValue_15() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66349,8 +67983,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap16DefaultValue_16() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66371,8 +68007,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeBitmap16MaxValue_17() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id bitmap16Argument; @@ -66391,8 +68029,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap16MaxValue_18() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66413,8 +68053,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeBitmap16MinValue_19() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id bitmap16Argument; @@ -66433,8 +68075,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap16MinValue_20() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66455,8 +68099,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap32DefaultValue_21() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap32WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66477,8 +68123,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeBitmap32MaxValue_22() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id bitmap32Argument; @@ -66497,8 +68145,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap32MaxValue_23() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap32WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66519,8 +68169,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeBitmap32MinValue_24() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id bitmap32Argument; @@ -66539,8 +68191,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap32MinValue_25() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap32WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66561,8 +68215,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap64DefaultValue_26() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap64WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66583,8 +68239,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeBitmap64MaxValue_27() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id bitmap64Argument; @@ -66603,8 +68261,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap64MaxValue_28() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap64WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66625,8 +68285,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeBitmap64MinValue_29() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id bitmap64Argument; @@ -66645,8 +68307,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap64MinValue_30() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap64WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66667,8 +68331,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt8uDefaultValue_31() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66689,8 +68355,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt8uMaxValue_32() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int8uArgument; @@ -66709,8 +68377,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt8uMaxValue_33() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66731,8 +68401,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt8uMinValue_34() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int8uArgument; @@ -66751,8 +68423,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt8uMinValue_35() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66773,8 +68447,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt16uDefaultValue_36() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66795,8 +68471,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt16uMaxValue_37() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int16uArgument; @@ -66815,8 +68493,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt16uMaxValue_38() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66837,8 +68517,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt16uMinValue_39() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int16uArgument; @@ -66857,8 +68539,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt16uMinValue_40() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66879,8 +68563,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt32uDefaultValue_41() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66901,8 +68587,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt32uMaxValue_42() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int32uArgument; @@ -66921,8 +68609,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt32uMaxValue_43() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66943,8 +68633,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt32uMinValue_44() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int32uArgument; @@ -66963,8 +68655,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt32uMinValue_45() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -66985,8 +68679,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt64uDefaultValue_46() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -67007,8 +68703,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt64uMaxValue_47() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int64uArgument; @@ -67027,8 +68725,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt64uMaxValue_48() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -67049,8 +68749,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt64uMinValue_49() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int64uArgument; @@ -67069,8 +68771,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt64uMinValue_50() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -67091,8 +68795,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt8sDefaultValue_51() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -67113,8 +68819,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt8sMaxValue_52() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int8sArgument; @@ -67133,8 +68841,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt8sMaxValue_53() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -67155,8 +68865,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt8sMinValue_54() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int8sArgument; @@ -67175,8 +68887,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt8sMinValue_55() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -67197,8 +68911,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt8sDefaultValue_56() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int8sArgument; @@ -67217,8 +68933,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt8sDefaultValue_57() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -67239,8 +68957,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt16sDefaultValue_58() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -67261,8 +68981,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt16sMaxValue_59() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int16sArgument; @@ -67281,8 +69003,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt16sMaxValue_60() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -67303,8 +69027,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt16sMinValue_61() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int16sArgument; @@ -67323,8 +69049,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt16sMinValue_62() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -67345,8 +69073,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt16sDefaultValue_63() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int16sArgument; @@ -67365,8 +69095,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt16sDefaultValue_64() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -67387,8 +69119,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt32sDefaultValue_65() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -67409,8 +69143,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt32sMaxValue_66() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int32sArgument; @@ -67429,8 +69165,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt32sMaxValue_67() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -67451,8 +69189,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt32sMinValue_68() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int32sArgument; @@ -67471,8 +69211,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt32sMinValue_69() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -67493,8 +69235,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt32sDefaultValue_70() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int32sArgument; @@ -67513,8 +69257,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt32sDefaultValue_71() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -67535,8 +69281,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt64sDefaultValue_72() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -67557,8 +69305,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt64sMaxValue_73() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int64sArgument; @@ -67577,8 +69327,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt64sMaxValue_74() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -67599,8 +69351,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt64sMinValue_75() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int64sArgument; @@ -67619,8 +69373,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt64sMinValue_76() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -67641,8 +69397,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt64sDefaultValue_77() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int64sArgument; @@ -67661,8 +69419,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt64sDefaultValue_78() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -67683,8 +69443,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeSingleDefaultValue_79() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFloatSingleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -67705,8 +69467,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeSingleMediumValue_80() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id floatSingleArgument; @@ -67725,8 +69489,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeSingleMediumValue_81() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFloatSingleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -67747,8 +69513,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeSingleLargeValue_82() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id floatSingleArgument; @@ -67767,8 +69535,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeSingleLargeValue_83() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFloatSingleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -67789,8 +69559,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeSingleSmallValue_84() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id floatSingleArgument; @@ -67809,8 +69581,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeSingleSmallValue_85() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFloatSingleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -67831,8 +69605,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeSingleDefaultValue_86() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id floatSingleArgument; @@ -67851,8 +69627,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeSingleDefaultValue_87() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFloatSingleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -67873,8 +69651,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeDoubleDefaultValue_88() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFloatDoubleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -67895,8 +69675,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeDoubleMediumValue_89() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id floatDoubleArgument; @@ -67915,8 +69697,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeDoubleMediumValue_90() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFloatDoubleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -67937,8 +69721,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeDoubleLargeValue_91() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id floatDoubleArgument; @@ -67957,8 +69743,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeDoubleLargeValue_92() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFloatDoubleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -67979,8 +69767,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeDoubleSmallValue_93() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id floatDoubleArgument; @@ -67999,8 +69789,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeDoubleSmallValue_94() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFloatDoubleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -68021,8 +69813,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeDoubleDefaultValue_95() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id floatDoubleArgument; @@ -68041,8 +69835,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeDoubleDefaultValue_96() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFloatDoubleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -68063,8 +69859,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeEnum8DefaultValue_97() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnum8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -68085,8 +69883,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeEnum8MaxValue_98() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id enum8Argument; @@ -68105,8 +69905,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeEnum8MaxValue_99() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnum8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -68127,8 +69929,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeEnum8MinValue_100() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id enum8Argument; @@ -68147,8 +69951,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeEnum8MinValue_101() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnum8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -68169,8 +69975,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeEnum16DefaultValue_102() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnum16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -68191,8 +69999,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeEnum16MaxValue_103() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id enum16Argument; @@ -68211,8 +70021,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeEnum16MaxValue_104() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnum16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -68233,8 +70045,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeEnum16MinValue_105() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id enum16Argument; @@ -68253,8 +70067,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeEnum16MinValue_106() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnum16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -68275,8 +70091,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeOctetStringDefaultValue_107() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { @@ -68297,8 +70115,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeOctetStringWithEmbeddedNull_108() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id octetStringArgument; @@ -68317,8 +70137,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeOctetStringWithEmbeddedNull_109() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { @@ -68340,8 +70162,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeOctetStringWithHexFormat_110() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id octetStringArgument; @@ -68360,8 +70184,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeOctetStringWithHexFormat_111() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { @@ -68383,8 +70209,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeOctetStringWithWeirdChars_112() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id octetStringArgument; @@ -68403,8 +70231,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeOctetStringWithWeirdChars_113() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { @@ -68426,8 +70256,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeOctetString_114() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id octetStringArgument; @@ -68446,8 +70278,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeOctetString_115() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { @@ -68469,8 +70303,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeOctetString_116() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id octetStringArgument; @@ -68488,8 +70324,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeOctetString_117() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { @@ -68511,8 +70349,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeOctetString_118() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id octetStringArgument; @@ -68531,8 +70371,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeLongOctetStringDefaultValue_119() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLongOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { @@ -68553,8 +70395,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeLongOctetString_120() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id longOctetStringArgument; @@ -68577,8 +70421,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeLongOctetString_121() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLongOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { @@ -68605,8 +70451,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeLongOctetString_122() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id longOctetStringArgument; @@ -68625,8 +70473,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeCharStringDefaultValue_123() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -68647,8 +70497,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeCharString_124() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id charStringArgument; @@ -68667,8 +70519,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeCharString_125() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -68689,8 +70543,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeCharStringValueTooLong_126() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id charStringArgument; @@ -68708,8 +70564,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeCharString_127() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -68730,8 +70588,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeCharStringEmpty_128() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id charStringArgument; @@ -68750,8 +70610,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeLongCharStringDefaultValue_129() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLongCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -68772,8 +70634,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeLongCharString_130() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id longCharStringArgument; @@ -68795,8 +70659,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeLongCharString_131() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLongCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -68820,8 +70686,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeLongCharString_132() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id longCharStringArgument; @@ -68840,8 +70708,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeListLongOctetStringForChunkedRead_133() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeListLongOctetStringWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -68898,8 +70768,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeListLongOctetStringForChunkedWrite_134() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id listLongOctetStringArgument; @@ -68961,8 +70833,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeListLongOctetStringForChunkedRead_135() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeListLongOctetStringWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -69028,8 +70902,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeEpochUsDefaultValue_136() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEpochUsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -69050,8 +70926,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeEpochUsMaxValue_137() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id epochUsArgument; @@ -69070,8 +70948,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeEpochUsMaxValue_138() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEpochUsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -69092,8 +70972,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeEpochUsMinValue_139() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id epochUsArgument; @@ -69112,8 +70994,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeEpochUsMinValue_140() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEpochUsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -69134,8 +71018,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeEpochSDefaultValue_141() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEpochSWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -69156,8 +71042,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeEpochSMaxValue_142() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id epochSArgument; @@ -69176,8 +71064,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeEpochSMaxValue_143() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEpochSWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -69198,8 +71088,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeEpochSMinValue_144() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id epochSArgument; @@ -69218,8 +71110,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeEpochSMinValue_145() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEpochSWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -69240,8 +71134,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeUnsupported_146() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeUnsupportedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -69267,8 +71163,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteattributeUnsupported_147() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id unsupportedArgument; @@ -69292,8 +71190,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendTestCommandToUnsupportedEndpoint_148() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:200 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:200 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster testWithCompletionHandler:^(NSError * _Nullable err) { @@ -69308,8 +71208,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendTestCommandToUnsupportedCluster_149() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster testWithCompletionHandler:^(NSError * _Nullable err) { @@ -69324,8 +71226,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeVendorIdDefaultValue_150() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeVendorIdWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -69346,8 +71250,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeVendorId_151() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id vendorIdArgument; @@ -69366,8 +71272,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeVendorId_152() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeVendorIdWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -69388,8 +71296,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestRestoreAttributeVendorId_153() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id vendorIdArgument; @@ -69408,8 +71318,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendACommandWithAVendorIdAndEnum_154() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRTestClusterClusterTestEnumsRequestParams alloc] init]; @@ -69440,8 +71352,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendTestCommandWithStructArgumentAndArg1bIsTrue_155() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRTestClusterClusterTestStructArgumentRequestParams alloc] init]; @@ -69475,8 +71389,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendTestCommandWithStructArgumentAndArg1bIsFalse_156() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRTestClusterClusterTestStructArgumentRequestParams alloc] init]; @@ -69510,8 +71426,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendTestCommandWithNestedStructArgumentAndArg1cbIsTrue_157() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRTestClusterClusterTestNestedStructArgumentRequestParams alloc] init]; @@ -69556,8 +71474,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendTestCommandWithNestedStructArgumentArg1cbIsFalse_158() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRTestClusterClusterTestNestedStructArgumentRequestParams alloc] init]; @@ -69602,8 +71522,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendTestCommandWithNestedStructListArgumentAndAllFieldsBOfArg1dAreTrue_159() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRTestClusterClusterTestNestedStructListArgumentRequestParams alloc] init]; @@ -69694,8 +71616,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendTestCommandWithNestedStructListArgumentAndSomeFieldsBOfArg1dAreFalse_160() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRTestClusterClusterTestNestedStructListArgumentRequestParams alloc] init]; @@ -69786,8 +71710,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendTestCommandWithStructArgumentAndSeeWhatWeGetBack_161() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRTestClusterClusterSimpleStructEchoRequestParams alloc] init]; @@ -69831,8 +71757,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendTestCommandWithListOfInt8uAndNoneOfThemIsSetTo0_162() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRTestClusterClusterTestListInt8UArgumentRequestParams alloc] init]; @@ -69870,8 +71798,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendTestCommandWithListOfInt8uAndOneOfThemIsSetTo0_163() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRTestClusterClusterTestListInt8UArgumentRequestParams alloc] init]; @@ -69909,8 +71839,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendTestCommandWithListOfInt8uAndGetItReversed_164() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRTestClusterClusterTestListInt8UReverseRequestParams alloc] init]; @@ -69956,8 +71888,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendTestCommandWithEmptyListOfInt8uAndGetAnEmptyListBack_165() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRTestClusterClusterTestListInt8UReverseRequestParams alloc] init]; @@ -69986,8 +71920,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendTestCommandWithListOfStructArgumentAndArg1bOfFirstItemIsTrue_166() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRTestClusterClusterTestListStructArgumentRequestParams alloc] init]; @@ -70037,8 +71973,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendTestCommandWithListOfStructArgumentAndArg1bOfFirstItemIsFalse_167() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRTestClusterClusterTestListStructArgumentRequestParams alloc] init]; @@ -70088,8 +72026,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendTestCommandWithListOfNestedStructListArgumentAndAllFieldsBOfElementsOfArg1dAreTrue_168() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRTestClusterClusterTestListNestedStructListArgumentRequestParams alloc] init]; @@ -70186,8 +72126,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendTestCommandWithNestedStructListArgumentAndSomeFieldsBOfElementsOfArg1dAreFalse_169() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRTestClusterClusterTestListNestedStructListArgumentRequestParams alloc] init]; @@ -70284,8 +72226,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeListWithListOfInt8uAndNoneOfThemIsSetTo0_170() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id listInt8uArgument; @@ -70311,8 +72255,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeListWithListOfInt8u_171() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeListInt8uWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -70337,8 +72283,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeListWithListOfOctetString_172() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id listOctetStringArgument; @@ -70364,8 +72312,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeListWithListOfOctetString_173() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeListOctetStringWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -70390,8 +72340,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeListWithListOfListStructOctetString_174() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id listStructOctetStringArgument; @@ -70429,8 +72381,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeListWithListOfListStructOctetString_175() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeListStructOctetStringWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -70463,8 +72417,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendTestCommandWithOptionalArgSet_176() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRTestClusterClusterTestNullableOptionalRequestParams alloc] init]; @@ -70505,8 +72461,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendTestCommandWithoutItsOptionalArg_177() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRTestClusterClusterTestNullableOptionalRequestParams alloc] init]; @@ -70530,8 +72488,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadListOfStructsContainingNullablesAndOptionals_178() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeListNullablesAndOptionalsStructWithCompletionHandler:^( @@ -70561,8 +72521,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteListOfStructsContainingNullablesAndOptionals_179() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id listNullablesAndOptionalsStructArgument; @@ -70597,8 +72559,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadListOfStructsContainingNullablesAndOptionalsAfterWriting_180() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeListNullablesAndOptionalsStructWithCompletionHandler:^( @@ -70635,8 +72599,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableBooleanNull_181() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableBooleanArgument; @@ -70656,8 +72622,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableBooleanNull_182() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableBooleanWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -70681,8 +72649,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableBooleanTrue_183() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableBooleanArgument; @@ -70701,8 +72671,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableBooleanTrue_184() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableBooleanWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -70724,8 +72696,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableBooleanNotNull_185() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableBooleanWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -70745,8 +72719,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableBitmap8MaxValue_186() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableBitmap8Argument; @@ -70765,8 +72741,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableBitmap8MaxValue_187() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableBitmap8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -70788,8 +72766,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableBitmap8InvalidValue_188() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableBitmap8Argument; @@ -70809,8 +72789,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableBitmap8UnchangedValue_189() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableBitmap8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -70835,8 +72817,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableBitmap8NullValue_190() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableBitmap8Argument; @@ -70855,8 +72839,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableBitmap8NullValue_191() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableBitmap8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -70877,8 +72863,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableBitmap8Not254Value_192() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableBitmap8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -70898,8 +72886,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableBitmap16MaxValue_193() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableBitmap16Argument; @@ -70918,8 +72908,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableBitmap16MaxValue_194() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableBitmap16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -70941,8 +72933,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableBitmap16InvalidValue_195() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableBitmap16Argument; @@ -70961,8 +72955,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableBitmap16UnchangedValue_196() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableBitmap16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -70984,8 +72980,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableBitmap16NullValue_197() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableBitmap16Argument; @@ -71004,8 +73002,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableBitmap16NullValue_198() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableBitmap16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71026,8 +73026,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableBitmap32MaxValue_199() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableBitmap32Argument; @@ -71046,8 +73048,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableBitmap32MaxValue_200() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableBitmap32WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71069,8 +73073,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableBitmap32InvalidValue_201() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableBitmap32Argument; @@ -71089,8 +73095,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableBitmap32UnchangedValue_202() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableBitmap32WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71112,8 +73120,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableBitmap32NullValue_203() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableBitmap32Argument; @@ -71132,8 +73142,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableBitmap32NullValue_204() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableBitmap32WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71154,8 +73166,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableBitmap64MaxValue_205() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableBitmap64Argument; @@ -71174,8 +73188,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableBitmap64MaxValue_206() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableBitmap64WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71197,8 +73213,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableBitmap64InvalidValue_207() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableBitmap64Argument; @@ -71217,8 +73235,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableBitmap64UnchangedValue_208() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableBitmap64WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71240,8 +73260,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableBitmap64NullValue_209() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableBitmap64Argument; @@ -71260,8 +73282,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableBitmap64NullValue_210() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableBitmap64WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71282,8 +73306,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt8uMinValue_211() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt8uArgument; @@ -71302,8 +73328,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt8uMinValue_212() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71325,8 +73353,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt8uMaxValue_213() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt8uArgument; @@ -71345,8 +73375,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt8uMaxValue_214() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71368,8 +73400,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt8uInvalidValue_215() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt8uArgument; @@ -71387,8 +73421,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt8uUnchangedValue_216() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71410,8 +73446,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt8uUnchangedValueWithConstraint_217() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71431,8 +73469,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt8uNullValue_218() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt8uArgument; @@ -71451,8 +73491,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt8uNullValue_219() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71473,8 +73515,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt8uNullValueRange_220() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71496,8 +73540,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt8uNullValueNot_221() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71517,8 +73563,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt8uValue_222() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt8uArgument; @@ -71537,8 +73585,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt8uValueInRange_223() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71560,8 +73610,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt8uNotValueOk_224() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71581,8 +73633,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt16uMinValue_225() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt16uArgument; @@ -71601,8 +73655,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt16uMinValue_226() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71624,8 +73680,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt16uMaxValue_227() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt16uArgument; @@ -71644,8 +73702,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt16uMaxValue_228() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71667,8 +73727,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt16uInvalidValue_229() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt16uArgument; @@ -71687,8 +73749,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt16uUnchangedValue_230() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71710,8 +73774,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt16uNullValue_231() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt16uArgument; @@ -71730,8 +73796,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt16uNullValue_232() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71752,8 +73820,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt16uNullValueRange_233() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71775,8 +73845,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt16uNullValueNot_234() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71796,8 +73868,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt16uValue_235() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt16uArgument; @@ -71816,8 +73890,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt16uValueInRange_236() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71839,8 +73915,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt16uNotValueOk_237() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71860,8 +73938,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt32uMinValue_238() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt32uArgument; @@ -71880,8 +73960,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt32uMinValue_239() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71903,8 +73985,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt32uMaxValue_240() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt32uArgument; @@ -71923,8 +74007,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt32uMaxValue_241() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71946,8 +74032,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt32uInvalidValue_242() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt32uArgument; @@ -71966,8 +74054,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt32uUnchangedValue_243() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -71989,8 +74079,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt32uNullValue_244() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt32uArgument; @@ -72009,8 +74101,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt32uNullValue_245() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72031,8 +74125,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt32uNullValueRange_246() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72054,8 +74150,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt32uNullValueNot_247() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72075,8 +74173,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt32uValue_248() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt32uArgument; @@ -72095,8 +74195,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt32uValueInRange_249() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72118,8 +74220,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt32uNotValueOk_250() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72139,8 +74243,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt64uMinValue_251() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt64uArgument; @@ -72159,8 +74265,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt64uMinValue_252() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72182,8 +74290,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt64uMaxValue_253() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt64uArgument; @@ -72202,8 +74312,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt64uMaxValue_254() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72225,8 +74337,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt64uInvalidValue_255() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt64uArgument; @@ -72245,8 +74359,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt64uUnchangedValue_256() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72268,8 +74384,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt64uNullValue_257() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt64uArgument; @@ -72288,8 +74406,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt64uNullValue_258() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72310,8 +74430,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt64uNullValueRange_259() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72334,8 +74456,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt64uNullValueNot_260() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72355,8 +74479,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt64uValue_261() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt64uArgument; @@ -72375,8 +74501,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt64uValueInRange_262() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72399,8 +74527,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt64uNotValueOk_263() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72420,8 +74550,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt8sMinValue_264() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt8sArgument; @@ -72440,8 +74572,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt8sMinValue_265() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72463,8 +74597,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt8sInvalidValue_266() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt8sArgument; @@ -72482,8 +74618,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt8sUnchangedValue_267() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72505,8 +74643,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt8sNullValue_268() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt8sArgument; @@ -72525,8 +74665,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt8sNullValue_269() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72547,8 +74689,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt8sNullValueRange_270() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72570,8 +74714,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt8sNullValueNot_271() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72591,8 +74737,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt8sValue_272() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt8sArgument; @@ -72611,8 +74759,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt8sValueInRange_273() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72634,8 +74784,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt8sNotValueOk_274() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72655,8 +74807,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt16sMinValue_275() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt16sArgument; @@ -72675,8 +74829,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt16sMinValue_276() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72698,8 +74854,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt16sInvalidValue_277() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt16sArgument; @@ -72718,8 +74876,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt16sUnchangedValue_278() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72741,8 +74901,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt16sNullValue_279() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt16sArgument; @@ -72761,8 +74923,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt16sNullValue_280() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72783,8 +74947,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt16sNullValueRange_281() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72806,8 +74972,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt16sNullValueNot_282() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72827,8 +74995,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt16sValue_283() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt16sArgument; @@ -72847,8 +75017,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt16sValueInRange_284() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72870,8 +75042,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt16sNotValueOk_285() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72891,8 +75065,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt32sMinValue_286() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt32sArgument; @@ -72911,8 +75087,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt32sMinValue_287() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72934,8 +75112,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt32sInvalidValue_288() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt32sArgument; @@ -72954,8 +75134,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt32sUnchangedValue_289() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -72977,8 +75159,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt32sNullValue_290() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt32sArgument; @@ -72997,8 +75181,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt32sNullValue_291() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -73019,8 +75205,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt32sNullValueRange_292() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -73042,8 +75230,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt32sNullValueNot_293() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -73063,8 +75253,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt32sValue_294() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt32sArgument; @@ -73083,8 +75275,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt32sValueInRange_295() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -73106,8 +75300,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt32sNotValueOk_296() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -73127,8 +75323,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt64sMinValue_297() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt64sArgument; @@ -73147,8 +75345,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt64sMinValue_298() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -73170,8 +75370,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt64sInvalidValue_299() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt64sArgument; @@ -73190,8 +75392,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt64sUnchangedValue_300() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -73213,8 +75417,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt64sNullValue_301() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt64sArgument; @@ -73233,8 +75439,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt64sNullValue_302() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -73255,8 +75463,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt64sNullValueRange_303() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -73278,8 +75488,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt64sNullValueNot_304() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -73299,8 +75511,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableInt64sValue_305() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableInt64sArgument; @@ -73319,8 +75533,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt64sValueInRange_306() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -73342,8 +75558,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableInt64sNotValueOk_307() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -73363,8 +75581,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableSingleMediumValue_308() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableFloatSingleArgument; @@ -73383,8 +75603,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableSingleMediumValue_309() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableFloatSingleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -73406,8 +75628,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableSingleLargestValue_310() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableFloatSingleArgument; @@ -73426,8 +75650,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableSingleLargestValue_311() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableFloatSingleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -73449,8 +75675,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableSingleSmallestValue_312() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableFloatSingleArgument; @@ -73469,8 +75697,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableSingleSmallestValue_313() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableFloatSingleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -73492,8 +75722,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableSingleNullValue_314() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableFloatSingleArgument; @@ -73512,8 +75744,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableSingleNullValue_315() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableFloatSingleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -73534,8 +75768,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableSingle0Value_316() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableFloatSingleArgument; @@ -73554,8 +75790,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableSingle0Value_317() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableFloatSingleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -73577,8 +75815,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableDoubleMediumValue_318() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableFloatDoubleArgument; @@ -73597,8 +75837,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableDoubleMediumValue_319() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableFloatDoubleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -73620,8 +75862,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableDoubleLargestValue_320() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableFloatDoubleArgument; @@ -73640,8 +75884,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableDoubleLargestValue_321() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableFloatDoubleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -73663,8 +75909,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableDoubleSmallestValue_322() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableFloatDoubleArgument; @@ -73683,8 +75931,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableDoubleSmallestValue_323() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableFloatDoubleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -73706,8 +75956,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableDoubleNullValue_324() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableFloatDoubleArgument; @@ -73726,8 +75978,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableDoubleNullValue_325() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableFloatDoubleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -73748,8 +76002,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableDouble0Value_326() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableFloatDoubleArgument; @@ -73768,8 +76024,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableDouble0Value_327() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableFloatDoubleWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -73791,8 +76049,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableEnum8MinValue_328() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableEnum8Argument; @@ -73811,8 +76071,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableEnum8MinValue_329() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableEnum8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -73834,8 +76096,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableEnum8MaxValue_330() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableEnum8Argument; @@ -73854,8 +76118,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableEnum8MaxValue_331() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableEnum8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -73877,8 +76143,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableEnum8InvalidValue_332() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableEnum8Argument; @@ -73896,8 +76164,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableEnum8UnchangedValue_333() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableEnum8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -73919,8 +76189,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableEnum8NullValue_334() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableEnum8Argument; @@ -73939,8 +76211,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableEnum8NullValue_335() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableEnum8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -73961,8 +76235,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableEnum16MinValue_336() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableEnum16Argument; @@ -73981,8 +76257,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableEnum16MinValue_337() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableEnum16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -74004,8 +76282,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableEnum16MaxValue_338() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableEnum16Argument; @@ -74024,8 +76304,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableEnum16MaxValue_339() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableEnum16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -74047,8 +76329,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableEnum16InvalidValue_340() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableEnum16Argument; @@ -74067,8 +76351,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableEnum16UnchangedValue_341() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableEnum16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -74090,8 +76376,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableEnum16NullValue_342() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableEnum16Argument; @@ -74110,8 +76398,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableEnum16NullValue_343() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableEnum16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -74132,8 +76422,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableSimpleEnumMinValue_344() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableEnumAttrArgument; @@ -74152,8 +76444,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableSimpleEnumMinValue_345() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableEnumAttrWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -74175,8 +76469,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableSimpleEnumMaxValue_346() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableEnumAttrArgument; @@ -74195,8 +76491,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableSimpleEnumMaxValue_347() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableEnumAttrWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -74218,8 +76516,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableSimpleEnumInvalidValue_348() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableEnumAttrArgument; @@ -74239,8 +76539,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableSimpleEnumUnchangedValue_349() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableEnumAttrWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -74265,8 +76567,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableSimpleEnumNullValue_350() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableEnumAttrArgument; @@ -74285,8 +76589,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableSimpleEnumNullValue_351() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableEnumAttrWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -74307,8 +76613,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableSimpleEnumNot254Value_352() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableEnumAttrWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -74328,8 +76636,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableOctetStringDefaultValue_353() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { @@ -74352,8 +76662,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableOctetString_354() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableOctetStringArgument; @@ -74373,8 +76685,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableOctetString_355() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { @@ -74400,8 +76714,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableOctetString_356() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableOctetStringArgument; @@ -74420,8 +76736,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableOctetString_357() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { @@ -74442,8 +76760,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableOctetString_358() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableOctetStringArgument; @@ -74462,8 +76782,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableOctetString_359() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { @@ -74486,8 +76808,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableOctetStringNotTestValue_360() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { @@ -74507,8 +76831,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableCharStringDefaultValue_361() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -74530,8 +76856,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableCharString_362() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableCharStringArgument; @@ -74551,8 +76879,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableCharString_363() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -74577,8 +76907,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableCharString_364() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -74604,8 +76936,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableCharStringValueTooLong_365() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableCharStringArgument; @@ -74624,8 +76958,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableCharString_366() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -74646,8 +76982,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeNullableCharStringEmpty_367() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableCharStringArgument; @@ -74666,8 +77004,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableCharString_368() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -74689,8 +77029,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeNullableCharStringNott_369() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNullableCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -74710,8 +77052,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeFromNonexistentEndpoint_370() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:200 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:200 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeListInt8uWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -74726,8 +77070,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeFromNonexistentCluster_371() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeListInt8uWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -74742,8 +77088,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendACommandThatTakesAnOptionalParameterButDoNotSetIt_372() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRTestClusterClusterTestSimpleOptionalArgumentRequestParams alloc] init]; @@ -74762,8 +77110,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSendACommandThatTakesAnOptionalParameterButDoNotSetIt_373() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRTestClusterClusterTestSimpleOptionalArgumentRequestParams alloc] init]; @@ -74786,8 +77136,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReportSubscribeToListAttribute_374() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); test_TestCluster_list_int8u_Reported = ^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -74813,8 +77165,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestSubscribeToListAttribute_375() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); uint16_t minIntervalArgument = 2U; @@ -74844,8 +77198,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteSubscribedToListAttribute_376() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id listInt8uArgument; @@ -74871,8 +77227,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestCheckForListAttributeReport_377() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); test_TestCluster_list_int8u_Reported = ^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -74897,8 +77255,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadRangeRestrictedUnsigned8BitInteger_378() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRangeRestrictedInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -74919,8 +77279,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMinValueToARangeRestrictedUnsigned8BitInteger_379() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt8uArgument; @@ -74940,8 +77302,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteJustBelowRangeValueToARangeRestrictedUnsigned8BitInteger_380() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt8uArgument; @@ -74962,8 +77326,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteJustAboveRangeValueToARangeRestrictedUnsigned8BitInteger_381() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt8uArgument; @@ -74984,8 +77350,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMaxValueToARangeRestrictedUnsigned8BitInteger_382() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt8uArgument; @@ -75005,8 +77373,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyRangeRestrictedUnsigned8BitIntegerValueHasNotChanged_383() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRangeRestrictedInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -75027,8 +77397,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMinValidValueToARangeRestrictedUnsigned8BitInteger_384() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt8uArgument; @@ -75049,8 +77421,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyRangeRestrictedUnsigned8BitIntegerValueIsAtMinValid_385() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRangeRestrictedInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -75071,8 +77445,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMaxValidValueToARangeRestrictedUnsigned8BitInteger_386() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt8uArgument; @@ -75093,8 +77469,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyRangeRestrictedUnsigned8BitIntegerValueIsAtMaxValid_387() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRangeRestrictedInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -75115,8 +77493,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMiddleValidValueToARangeRestrictedUnsigned8BitInteger_388() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt8uArgument; @@ -75137,8 +77517,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyRangeRestrictedUnsigned8BitIntegerValueIsAtMidValid_389() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRangeRestrictedInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -75159,8 +77541,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadRangeRestrictedUnsigned16BitInteger_390() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRangeRestrictedInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -75181,8 +77565,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMinValueToARangeRestrictedUnsigned16BitInteger_391() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt16uArgument; @@ -75202,8 +77588,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteJustBelowRangeValueToARangeRestrictedUnsigned16BitInteger_392() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt16uArgument; @@ -75224,8 +77612,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteJustAboveRangeValueToARangeRestrictedUnsigned16BitInteger_393() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt16uArgument; @@ -75246,8 +77636,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMaxValueToARangeRestrictedUnsigned16BitInteger_394() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt16uArgument; @@ -75267,8 +77659,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyRangeRestrictedUnsigned16BitIntegerValueHasNotChanged_395() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRangeRestrictedInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -75289,8 +77683,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMinValidValueToARangeRestrictedUnsigned16BitInteger_396() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt16uArgument; @@ -75311,8 +77707,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyRangeRestrictedUnsigned16BitIntegerValueIsAtMinValid_397() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRangeRestrictedInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -75333,8 +77731,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMaxValidValueToARangeRestrictedUnsigned16BitInteger_398() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt16uArgument; @@ -75355,8 +77755,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyRangeRestrictedUnsigned16BitIntegerValueIsAtMaxValid_399() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRangeRestrictedInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -75377,8 +77779,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMiddleValidValueToARangeRestrictedUnsigned16BitInteger_400() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt16uArgument; @@ -75400,8 +77804,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyRangeRestrictedUnsigned16BitIntegerValueIsAtMidValid_401() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRangeRestrictedInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -75422,8 +77828,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadRangeRestrictedSigned8BitInteger_402() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRangeRestrictedInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -75444,8 +77852,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMinValueToARangeRestrictedSigned8BitInteger_403() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt8sArgument; @@ -75464,8 +77874,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteJustBelowRangeValueToARangeRestrictedSigned8BitInteger_404() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt8sArgument; @@ -75487,8 +77899,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteJustAboveRangeValueToARangeRestrictedSigned8BitInteger_405() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt8sArgument; @@ -75510,8 +77924,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMaxValueToARangeRestrictedSigned8BitInteger_406() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt8sArgument; @@ -75530,8 +77946,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyRangeRestrictedSigned8BitIntegerValueHasNotChanged_407() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRangeRestrictedInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -75552,8 +77970,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMinValidValueToARangeRestrictedSigned8BitInteger_408() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt8sArgument; @@ -75573,8 +77993,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyRangeRestrictedSigned8BitIntegerValueIsAtMinValid_409() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRangeRestrictedInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -75595,8 +78017,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMaxValidValueToARangeRestrictedSigned8BitInteger_410() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt8sArgument; @@ -75616,8 +78040,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyRangeRestrictedSigned8BitIntegerValueIsAtMaxValid_411() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRangeRestrictedInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -75638,8 +78064,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMiddleValidValueToARangeRestrictedSigned8BitInteger_412() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt8sArgument; @@ -75660,8 +78088,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyRangeRestrictedSigned8BitIntegerValueIsAtMidValid_413() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRangeRestrictedInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -75682,8 +78112,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadRangeRestrictedSigned16BitInteger_414() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRangeRestrictedInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -75704,8 +78136,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMinValueToARangeRestrictedSigned16BitInteger_415() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt16sArgument; @@ -75725,8 +78159,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteJustBelowRangeValueToARangeRestrictedSigned16BitInteger_416() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt16sArgument; @@ -75747,8 +78183,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteJustAboveRangeValueToARangeRestrictedSigned16BitInteger_417() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt16sArgument; @@ -75769,8 +78207,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMaxValueToARangeRestrictedSigned16BitInteger_418() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt16sArgument; @@ -75790,8 +78230,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyRangeRestrictedSigned16BitIntegerValueHasNotChanged_419() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRangeRestrictedInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -75812,8 +78254,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMinValidValueToARangeRestrictedSigned16BitInteger_420() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt16sArgument; @@ -75834,8 +78278,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyRangeRestrictedSigned16BitIntegerValueIsAtMinValid_421() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRangeRestrictedInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -75856,8 +78302,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMaxValidValueToARangeRestrictedSigned16BitInteger_422() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt16sArgument; @@ -75878,8 +78326,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyRangeRestrictedSigned16BitIntegerValueIsAtMaxValid_423() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRangeRestrictedInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -75900,8 +78350,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMiddleValidValueToARangeRestrictedSigned16BitInteger_424() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id rangeRestrictedInt16sArgument; @@ -75922,8 +78374,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyRangeRestrictedSigned16BitIntegerValueIsAtMidValid_425() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeRangeRestrictedInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -75944,8 +78398,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadNullableRangeRestrictedUnsigned8BitInteger_426() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -75968,8 +78424,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMinValueToANullableRangeRestrictedUnsigned8BitInteger_427() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt8uArgument; @@ -75990,8 +78448,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteJustBelowRangeValueToANullableRangeRestrictedUnsigned8BitInteger_428() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt8uArgument; @@ -76012,8 +78472,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteJustAboveRangeValueToANullableRangeRestrictedUnsigned8BitInteger_429() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt8uArgument; @@ -76034,8 +78496,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMaxValueToANullableRangeRestrictedUnsigned8BitInteger_430() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt8uArgument; @@ -76056,8 +78520,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned8BitIntegerValueHasNotChanged_431() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -76080,8 +78546,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMinValidValueToANullableRangeRestrictedUnsigned8BitInteger_432() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt8uArgument; @@ -76102,8 +78570,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned8BitIntegerValueIsAtMinValid_433() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -76126,8 +78596,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMaxValidValueToANullableRangeRestrictedUnsigned8BitInteger_434() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt8uArgument; @@ -76148,8 +78620,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned8BitIntegerValueIsAtMaxValid_435() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -76172,8 +78646,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMiddleValidValueToANullableRangeRestrictedUnsigned8BitInteger_436() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt8uArgument; @@ -76194,8 +78670,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned8BitIntegerValueIsAtMidValid_437() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -76218,8 +78696,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteNullValueToANullableRangeRestrictedUnsigned8BitInteger_438() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt8uArgument; @@ -76240,8 +78720,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned8BitIntegerValueIsNull_439() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -76263,8 +78745,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadNullableRangeRestrictedUnsigned16BitInteger_440() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -76287,8 +78771,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMinValueToANullableRangeRestrictedUnsigned16BitInteger_441() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt16uArgument; @@ -76309,8 +78795,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteJustBelowRangeValueToANullableRangeRestrictedUnsigned16BitInteger_442() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt16uArgument; @@ -76331,8 +78819,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteJustAboveRangeValueToANullableRangeRestrictedUnsigned16BitInteger_443() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt16uArgument; @@ -76353,8 +78843,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMaxValueToANullableRangeRestrictedUnsigned16BitInteger_444() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt16uArgument; @@ -76375,8 +78867,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned16BitIntegerValueHasNotChanged_445() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -76399,8 +78893,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMinValidValueToANullableRangeRestrictedUnsigned16BitInteger_446() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt16uArgument; @@ -76421,8 +78917,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned16BitIntegerValueIsAtMinValid_447() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -76445,8 +78943,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMaxValidValueToANullableRangeRestrictedUnsigned16BitInteger_448() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt16uArgument; @@ -76467,8 +78967,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned16BitIntegerValueIsAtMaxValid_449() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -76491,8 +78993,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMiddleValidValueToANullableRangeRestrictedUnsigned16BitInteger_450() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt16uArgument; @@ -76513,8 +79017,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned16BitIntegerValueIsAtMidValid_451() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -76537,8 +79043,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteNullValueToANullableRangeRestrictedUnsigned16BitInteger_452() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt16uArgument; @@ -76559,8 +79067,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyNullableRangeRestrictedUnsigned16BitIntegerValueIsNull_453() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -76582,8 +79092,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadNullableRangeRestrictedSigned8BitInteger_454() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -76606,8 +79118,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMinValueToANullableRangeRestrictedSigned8BitInteger_455() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt8sArgument; @@ -76628,8 +79142,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteJustBelowRangeValueToANullableRangeRestrictedSigned8BitInteger_456() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt8sArgument; @@ -76650,8 +79166,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteJustAboveRangeValueToANullableRangeRestrictedSigned8BitInteger_457() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt8sArgument; @@ -76672,8 +79190,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMaxValueToANullableRangeRestrictedSigned8BitInteger_458() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt8sArgument; @@ -76694,8 +79214,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyNullableRangeRestrictedSigned8BitIntegerValueHasNotChanged_459() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -76718,8 +79240,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMinValidValueToANullableRangeRestrictedSigned8BitInteger_460() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt8sArgument; @@ -76740,8 +79264,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyNullableRangeRestrictedSigned8BitIntegerValueIsAtMinValid_461() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -76764,8 +79290,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMaxValidValueToANullableRangeRestrictedSigned8BitInteger_462() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt8sArgument; @@ -76786,8 +79314,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyNullableRangeRestrictedSigned8BitIntegerValueIsAtMaxValid_463() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -76810,8 +79340,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMiddleValidValueToANullableRangeRestrictedSigned8BitInteger_464() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt8sArgument; @@ -76832,8 +79364,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyNullableRangeRestrictedSigned8BitIntegerValueIsAtMidValid_465() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -76856,8 +79390,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteNullValueToANullableRangeRestrictedSigned8BitInteger_466() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt8sArgument; @@ -76878,8 +79414,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyNullableRangeRestrictedSigned8BitIntegerValueIsAtNull_467() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -76901,8 +79439,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadNullableRangeRestrictedSigned16BitInteger_468() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -76925,8 +79465,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMinValueToANullableRangeRestrictedSigned16BitInteger_469() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt16sArgument; @@ -76947,8 +79489,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteJustBelowRangeValueToANullableRangeRestrictedSigned16BitInteger_470() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt16sArgument; @@ -76969,8 +79513,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteJustAboveRangeValueToANullableRangeRestrictedSigned16BitInteger_471() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt16sArgument; @@ -76991,8 +79537,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMaxValueToANullableRangeRestrictedSigned16BitInteger_472() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt16sArgument; @@ -77013,8 +79561,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyNullableRangeRestrictedSigned16BitIntegerValueHasNotChanged_473() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -77037,8 +79587,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMinValidValueToANullableRangeRestrictedSigned16BitInteger_474() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt16sArgument; @@ -77059,8 +79611,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyNullableRangeRestrictedSigned16BitIntegerValueIsAtMinValid_475() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -77083,8 +79637,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMaxValidValueToANullableRangeRestrictedSigned16BitInteger_476() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt16sArgument; @@ -77105,8 +79661,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyNullableRangeRestrictedSigned16BitIntegerValueIsAtMaxValid_477() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -77129,8 +79687,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteMiddleValidValueToANullableRangeRestrictedSigned16BitInteger_478() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt16sArgument; @@ -77151,8 +79711,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyNullableRangeRestrictedSigned16BitIntegerValueIsAtMidValid_479() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -77175,8 +79737,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteNullValueToANullableRangeRestrictedSigned16BitInteger_480() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nullableRangeRestrictedInt16sArgument; @@ -77197,8 +79761,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestVerifyNullableRangeRestrictedSigned16BitIntegerValueIsNull_481() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -77220,8 +79786,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeThatReturnsGeneralStatusOnWrite_482() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id generalErrorBooleanArgument; @@ -77240,8 +79808,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteAttributeThatReturnsClusterSpecificStatusOnWrite_483() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id clusterErrorBooleanArgument; @@ -77260,8 +79830,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeThatReturnsGeneralStatusOnRead_484() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneralErrorBooleanWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -77276,8 +79848,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeThatReturnsClusterSpecificStatusOnRead_485() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClusterErrorBooleanWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -77292,8 +79866,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadAcceptedCommandListAttribute_486() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAcceptedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -77332,8 +79908,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadGeneratedCommandListAttribute_487() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeGeneratedCommandListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -77363,8 +79941,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestWriteStructTypedAttribute_488() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id structAttrArgument; @@ -77392,8 +79972,10 @@ class TestCluster : public TestCommandBridge { CHIP_ERROR TestReadStructTypedAttribute_489() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeStructAttrWithCompletionHandler:^( @@ -77686,8 +80268,10 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestWriteAttributeListWithListOfInt8u_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id listInt8uArgument; @@ -77713,8 +80297,10 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestReadAttributeListWithPartialListOfInt8uThatShouldBeInIt_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeListInt8uWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -77734,8 +80320,10 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestReadAttributeListWithPartialListOfInt8uThatShouldNotBeIncluded_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeListInt8uWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -77754,8 +80342,10 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestWriteAttributeListBackToDefaultValue_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id listInt8uArgument; @@ -77777,8 +80367,10 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt32uValue_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int32uArgument; @@ -77797,8 +80389,10 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt32uValueMinValueConstraints_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -77816,8 +80410,10 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt32uValueMaxValueConstraints_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -77835,8 +80431,10 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt32uValueNotValueConstraints_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -77854,8 +80452,10 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt32uValueBackToDefaultValue_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int32uArgument; @@ -77874,8 +80474,10 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestWriteAttributeCharStringValue_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id charStringArgument; @@ -77894,8 +80496,10 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestReadAttributeCharStringValueMinLengthConstraints_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -77912,8 +80516,10 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestReadAttributeCharStringValueMaxLengthConstraints_12() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -77930,8 +80536,10 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestReadAttributeCharStringValueStartsWithConstraints_13() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -77948,8 +80556,10 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestReadAttributeCharStringValueEndsWithConstraints_14() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -77966,8 +80576,10 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestWriteAttributeCharStringValue_15() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id charStringArgument; @@ -77986,8 +80598,10 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestReadAttributeCharStringValueIsLowerCaseIsUpperCaseConstraints_16() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -78005,8 +80619,10 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestWriteAttributeCharStringValue_17() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id charStringArgument; @@ -78025,8 +80641,10 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestReadAttributeCharStringValueIsLowerCaseIsUpperCaseConstraints_18() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -78044,8 +80662,10 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestWriteAttributeCharStringValue_19() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id charStringArgument; @@ -78064,8 +80684,10 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestReadAttributeCharStringValueIsLowerCaseIsUpperCaseConstraints_20() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -78083,8 +80705,10 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestWriteAttributeCharStringValue_21() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id charStringArgument; @@ -78103,8 +80727,10 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestReadAttributeCharStringValueIsHexStringConstraints_22() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -78121,8 +80747,10 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestWriteAttributeCharStringValue_23() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id charStringArgument; @@ -78141,8 +80769,10 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestReadAttributeCharStringValueIsHexStringConstraints_24() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -78159,8 +80789,10 @@ class TestConstraints : public TestCommandBridge { CHIP_ERROR TestWriteAttributeCharStringValueBackToDefaultValue_25() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id charStringArgument; @@ -79243,8 +81875,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestSendTestAddArgumentsCommand_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRTestClusterClusterTestAddArgumentsParams alloc] init]; @@ -79273,8 +81907,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestSendTestAddArgumentsCommand_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRTestClusterClusterTestAddArgumentsParams alloc] init]; @@ -79300,8 +81936,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestSendTestAddArgumentsCommand_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRTestClusterClusterTestAddArgumentsParams alloc] init]; @@ -79326,8 +81964,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeBooleanDefaultValue_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBooleanWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -79351,8 +81991,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeBooleanNotDefaultValue_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id booleanArgument; @@ -79371,8 +82013,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeBooleanNotDefaultValue_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBooleanWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -79390,8 +82034,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeBooleanDefaultValue_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id booleanArgument; @@ -79410,8 +82056,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeBooleanFalse_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBooleanWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -79433,8 +82081,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap8DefaultValue_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -79458,8 +82108,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeBitmap8NotDefaultValue_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id bitmap8Argument; @@ -79478,8 +82130,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap8NotDefaultValue_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -79497,8 +82151,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeBitmap8DefaultValue_12() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id bitmap8Argument; @@ -79517,8 +82173,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap8DefaultValue_13() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -79540,8 +82198,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap16DefaultValue_14() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -79565,8 +82225,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeBitmap16NotDefaultValue_15() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id bitmap16Argument; @@ -79585,8 +82247,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap16NotDefaultValue_16() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -79604,8 +82268,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeBitmap16DefaultValue_17() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id bitmap16Argument; @@ -79624,8 +82290,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap16DefaultValue_18() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -79647,8 +82315,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap32DefaultValue_19() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap32WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -79672,8 +82342,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeBitmap32NotDefaultValue_20() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id bitmap32Argument; @@ -79692,8 +82364,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap32NotDefaultValue_21() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap32WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -79711,8 +82385,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeBitmap32DefaultValue_22() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id bitmap32Argument; @@ -79731,8 +82407,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap32DefaultValue_23() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap32WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -79754,8 +82432,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap64DefaultValue_24() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap64WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -79779,8 +82459,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeBitmap64NotDefaultValue_25() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id bitmap64Argument; @@ -79799,8 +82481,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap64DefaultValue_26() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap64WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -79818,8 +82502,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeBitmap64DefaultValue_27() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id bitmap64Argument; @@ -79838,8 +82524,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeBitmap64DefaultValue_28() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBitmap64WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -79861,8 +82549,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt8uDefaultValue_29() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -79886,8 +82576,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt8uNotDefaultValue_30() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int8uArgument; @@ -79906,8 +82598,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt8uNotDefaultValue_31() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -79925,8 +82619,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt8uDefaultValue_32() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int8uArgument; @@ -79945,8 +82641,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt8uDefaultValue_33() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt8uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -79968,8 +82666,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt16uDefaultValue_34() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -79993,8 +82693,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt16uNotDefaultValue_35() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int16uArgument; @@ -80013,8 +82715,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt16uNotDefaultValue_36() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -80032,8 +82736,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt16uDefaultValue_37() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int16uArgument; @@ -80052,8 +82758,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt16uDefaultValue_38() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt16uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -80075,8 +82783,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt32uDefaultValue_39() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -80100,8 +82810,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt32uNotDefaultValue_40() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int32uArgument; @@ -80120,8 +82832,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt32uNotDefaultValue_41() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -80139,8 +82853,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt32uDefaultValue_42() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int32uArgument; @@ -80159,8 +82875,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt32uDefaultValue_43() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt32uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -80182,8 +82900,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt64uDefaultValue_44() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -80207,8 +82927,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt64uNotDefaultValue_45() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int64uArgument; @@ -80227,8 +82949,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt64uNotDefaultValue_46() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -80246,8 +82970,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt64uDefaultValue_47() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int64uArgument; @@ -80266,8 +82992,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt64uDefaultValue_48() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt64uWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -80289,8 +83017,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt8sDefaultValue_49() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -80314,8 +83044,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt8sNotDefaultValue_50() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int8sArgument; @@ -80334,8 +83066,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt8sNotDefaultValue_51() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -80353,8 +83087,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt8sDefaultValue_52() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int8sArgument; @@ -80373,8 +83109,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt8sDefaultValue_53() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt8sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -80396,8 +83134,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt16sDefaultValue_54() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -80421,8 +83161,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt16sNotDefaultValue_55() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int16sArgument; @@ -80441,8 +83183,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt16sNotDefaultValue_56() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -80460,8 +83204,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt16sDefaultValue_57() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int16sArgument; @@ -80480,8 +83226,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt16sDefaultValue_58() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt16sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -80503,8 +83251,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt32sDefaultValue_59() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -80528,8 +83278,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt32sNotDefaultValue_60() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int32sArgument; @@ -80548,8 +83300,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt32sNotDefaultValue_61() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -80567,8 +83321,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt32sDefaultValue_62() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int32sArgument; @@ -80587,8 +83343,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt32sDefaultValue_63() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt32sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -80610,8 +83368,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt64sDefaultValue_64() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -80635,8 +83395,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeIntsNotDefaultValue_65() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int64sArgument; @@ -80655,8 +83417,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt64sNotDefaultValue_66() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -80674,8 +83438,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeInt64sDefaultValue_67() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id int64sArgument; @@ -80694,8 +83460,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeInt64sDefaultValue_68() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeInt64sWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -80717,8 +83485,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeEnum8DefaultValue_69() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnum8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -80742,8 +83512,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeEnum8NotDefaultValue_70() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id enum8Argument; @@ -80762,8 +83534,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeEnum8NotDefaultValue_71() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnum8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -80781,8 +83555,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeEnum8DefaultValue_72() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id enum8Argument; @@ -80801,8 +83577,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeEnum8DefaultValue_73() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnum8WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -80824,8 +83602,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeEnum16DefaultValue_74() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnum16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -80849,8 +83629,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeEnum16NotDefaultValue_75() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id enum16Argument; @@ -80869,8 +83651,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeEnum16NotDefaultValue_76() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnum16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -80888,8 +83672,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeEnum16DefaultValue_77() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id enum16Argument; @@ -80908,8 +83694,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeEnum16DefaultValue_78() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEnum16WithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -80931,8 +83719,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeEpochUsDefaultValue_79() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEpochUsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -80956,8 +83746,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeEpochUsNotDefaultValue_80() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id epochUsArgument; @@ -80976,8 +83768,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeEpochUsNotDefaultValue_81() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEpochUsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -80995,8 +83789,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeEpochUsDefaultValue_82() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id epochUsArgument; @@ -81015,8 +83811,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeEpochUsDefaultValue_83() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEpochUsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -81038,8 +83836,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeEpochSDefaultValue_84() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEpochSWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -81063,8 +83863,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeEpochSNotDefaultValue_85() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id epochSArgument; @@ -81083,8 +83885,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeEpochSNotDefaultValue_86() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEpochSWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -81102,8 +83906,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeEpochSDefaultValue_87() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id epochSArgument; @@ -81122,8 +83928,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeEpochSDefaultValue_88() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeEpochSWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -81145,8 +83953,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeVendorIdDefaultValue_89() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeVendorIdWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -81170,8 +83980,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeVendorIdNotDefaultValue_90() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id vendorIdArgument; @@ -81190,8 +84002,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeVendorIdNotDefaultValue_91() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeVendorIdWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -81209,8 +84023,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeVendorIdDefaultValue_92() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id vendorIdArgument; @@ -81229,8 +84045,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeVendorIdDefaultValue_93() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeVendorIdWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -81252,8 +84070,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeCharStringDefaultValue_94() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -81277,8 +84097,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeCharStringDefaultValueAndCompareToSavedValue_95() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -81299,8 +84121,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeCharStringNotDefaultValue_96() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id charStringArgument; @@ -81320,8 +84144,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeCharStringNotDefaultValue_97() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -81347,8 +84173,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeCharStringNotDefaultValueAndCompareToSavedValue_98() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -81371,8 +84199,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeCharStringNotDefaultValueFromSavedValue_99() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id charStringArgument; @@ -81391,8 +84221,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeCharStringNotDefaultValueAndCompareToExpectedValue_100() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCharStringWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -81413,8 +84245,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeCharStringDefaultValue_101() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id charStringArgument; @@ -81434,8 +84268,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeOctetStringDefaultValue_102() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { @@ -81459,8 +84295,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeOctetStringDefaultValueAndCompareToSavedValue_103() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { @@ -81481,8 +84319,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeOctetStringNotDefaultValue_104() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id octetStringArgument; @@ -81502,8 +84342,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeOctetStringNotDefaultValue_105() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { @@ -81530,8 +84372,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeOctetStringNotDefaultValueAndCompareToSavedValue_106() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { @@ -81554,8 +84398,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeOctetStringNotDefaultValueFromSavedValue_107() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id octetStringArgument; @@ -81574,8 +84420,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestReadAttributeOctetStringNotDefaultValueAndCompareToExpectedValue_108() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOctetStringWithCompletionHandler:^(NSData * _Nullable value, NSError * _Nullable err) { @@ -81597,8 +84445,10 @@ class TestSaveAs : public TestCommandBridge { CHIP_ERROR TestWriteAttributeOctetStringDefaultValue_109() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id octetStringArgument; @@ -81720,8 +84570,10 @@ class TestConfigVariables : public TestCommandBridge { CHIP_ERROR TestSendTestAddArgumentsCommand_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRTestClusterClusterTestAddArgumentsParams alloc] init]; @@ -81750,8 +84602,10 @@ class TestConfigVariables : public TestCommandBridge { CHIP_ERROR TestSendTestAddArgumentsCommand_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestTestCluster * cluster = [[MTRTestTestCluster alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterTestCluster * cluster = [[MTRBaseClusterTestCluster alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRTestClusterClusterTestAddArgumentsParams alloc] init]; @@ -81890,8 +84744,10 @@ class TestDescriptorCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeDeviceList_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDescriptor * cluster = [[MTRTestDescriptor alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDescriptor * cluster = [[MTRBaseClusterDescriptor alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeDeviceListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -81914,8 +84770,10 @@ class TestDescriptorCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeServerList_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDescriptor * cluster = [[MTRTestDescriptor alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDescriptor * cluster = [[MTRBaseClusterDescriptor alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeServerListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -81962,8 +84820,10 @@ class TestDescriptorCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributeClientList_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDescriptor * cluster = [[MTRTestDescriptor alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDescriptor * cluster = [[MTRBaseClusterDescriptor alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeClientListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -81985,8 +84845,10 @@ class TestDescriptorCluster : public TestCommandBridge { CHIP_ERROR TestReadAttributePartsList_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDescriptor * cluster = [[MTRTestDescriptor alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDescriptor * cluster = [[MTRBaseClusterDescriptor alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePartsListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -82212,8 +85074,8 @@ class TestBasicInformation : public TestCommandBridge { CHIP_ERROR TestReadLocation_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLocationWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -82234,8 +85096,8 @@ class TestBasicInformation : public TestCommandBridge { CHIP_ERROR TestWriteLocation_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id locationArgument; @@ -82254,8 +85116,8 @@ class TestBasicInformation : public TestCommandBridge { CHIP_ERROR TestReadBackLocation_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLocationWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -82276,8 +85138,8 @@ class TestBasicInformation : public TestCommandBridge { CHIP_ERROR TestRestoreInitialLocationValue_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id locationArgument; @@ -82296,8 +85158,8 @@ class TestBasicInformation : public TestCommandBridge { CHIP_ERROR TestReadAttributeListValue_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAttributeListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -82343,8 +85205,8 @@ class TestBasicInformation : public TestCommandBridge { CHIP_ERROR TestReadNodeLabel_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -82365,8 +85227,8 @@ class TestBasicInformation : public TestCommandBridge { CHIP_ERROR TestWriteNodeLabel_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nodeLabelArgument; @@ -82385,8 +85247,8 @@ class TestBasicInformation : public TestCommandBridge { CHIP_ERROR TestReadBackNodeLabel_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -82407,8 +85269,8 @@ class TestBasicInformation : public TestCommandBridge { CHIP_ERROR TestReadLocalConfigDisabled_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLocalConfigDisabledWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -82429,8 +85291,8 @@ class TestBasicInformation : public TestCommandBridge { CHIP_ERROR TestWriteLocalConfigDisabled_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id localConfigDisabledArgument; @@ -82449,8 +85311,8 @@ class TestBasicInformation : public TestCommandBridge { CHIP_ERROR TestReadBackLocalConfigDisabled_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLocalConfigDisabledWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -82484,8 +85346,8 @@ class TestBasicInformation : public TestCommandBridge { CHIP_ERROR TestReadBackNodeLabelAfterReboot_14() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -82506,8 +85368,8 @@ class TestBasicInformation : public TestCommandBridge { CHIP_ERROR TestRestoreInitialNodeLabelValue_15() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nodeLabelArgument; @@ -82526,8 +85388,8 @@ class TestBasicInformation : public TestCommandBridge { CHIP_ERROR TestReadBackLocalConfigDisabledAfterReboot_16() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLocalConfigDisabledWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -82548,8 +85410,8 @@ class TestBasicInformation : public TestCommandBridge { CHIP_ERROR TestRestoreInitialLocalConfigDisabledValue_17() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id localConfigDisabledArgument; @@ -82869,10 +85731,10 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestWriteBreadcrumb12_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id breadcrumbArgument; @@ -82891,10 +85753,10 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestReadBackBreadcrumb12_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBreadcrumbWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -82915,10 +85777,10 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestWriteBreadcrumb22_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id breadcrumbArgument; @@ -82937,10 +85799,10 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestReadBackBreadcrumb22_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBreadcrumbWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -82974,10 +85836,10 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestReadBackBreadcrumbAfterRebootAndEnsureItWasNotPersisted_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBreadcrumbWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -82998,10 +85860,10 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestSetBreadcrumbToNonzeroValue_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id breadcrumbArgument; @@ -83020,10 +85882,10 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestCheckBreadcrumbSetWorked_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBreadcrumbWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -83044,10 +85906,10 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestSendCommissioningCompleteWithoutArmedFailSafe_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster commissioningCompleteWithCompletionHandler:^( @@ -83069,10 +85931,10 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestCheckBreadcrumbWasNotTouchedByInvalidCommissioningComplete_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBreadcrumbWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -83093,10 +85955,9 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestOpenCommissioningWindowFromAlpha_12() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAdministratorCommissioning * cluster = [[MTRTestAdministratorCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAdministratorCommissioning * cluster = + [[MTRBaseClusterAdministratorCommissioning alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRAdministratorCommissioningClusterOpenBasicCommissioningWindowParams alloc] init]; @@ -83115,10 +85976,10 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestTryToArmFailSafe_13() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRGeneralCommissioningClusterArmFailSafeParams alloc] init]; @@ -83144,10 +86005,10 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestCheckBreadcrumbWasNotTouchedByArmFailSafeWithCommissioningWindowOpen_14() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBreadcrumbWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -83168,10 +86029,10 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestResetBreadcrumbTo0SoWeCanCommission_15() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id breadcrumbArgument; @@ -83205,10 +86066,10 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestArmFailSafe_18() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRGeneralCommissioningClusterArmFailSafeParams alloc] init]; @@ -83234,10 +86095,10 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestCheckBreadcrumbWasProperlySetByArmFailSafe_19() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBreadcrumbWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -83258,10 +86119,10 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestTryToArmFailSafeFromWrongFabric_20() { - MTRDevice * device = GetDevice("beta"); - MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("beta"); + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRGeneralCommissioningClusterArmFailSafeParams alloc] init]; @@ -83287,10 +86148,10 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestCheckBreadcrumbWasNotTouchedByArmFailSafeWithExistingFailSafeArmed_21() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBreadcrumbWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -83311,10 +86172,10 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestSendCommissioningCompleteFromWrongFabric_22() { - MTRDevice * device = GetDevice("beta"); - MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("beta"); + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster commissioningCompleteWithCompletionHandler:^( @@ -83336,10 +86197,10 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestCheckBreadcrumbWasNotTouchedByCommissioningCompleteFromWrongFabric_23() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBreadcrumbWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -83360,10 +86221,10 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestCloseOutTheFailSafeGracefully_24() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster commissioningCompleteWithCompletionHandler:^( @@ -83385,10 +86246,10 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestCheckBreadcrumbWasResetTo0ByCommissioningComplete_25() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBreadcrumbWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -83409,10 +86270,10 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestArmFailSafeAgain_26() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRGeneralCommissioningClusterArmFailSafeParams alloc] init]; @@ -83438,10 +86299,10 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestCheckBreadcrumbWasSetByArmingFailSafeAgain_27() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBreadcrumbWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -83462,10 +86323,10 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestForceExpireTheFailSafe_28() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRGeneralCommissioningClusterArmFailSafeParams alloc] init]; @@ -83491,10 +86352,10 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestCheckBreadcrumbWasResetByExpiringTheFailSafe_29() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeBreadcrumbWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -83515,10 +86376,10 @@ class TestGeneralCommissioning : public TestCommandBridge { CHIP_ERROR TestValidatePresenceOfSupportsConcurrentConnection_30() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -83627,8 +86488,8 @@ class TestIdentifyCluster : public TestCommandBridge { CHIP_ERROR TestSendIdentifyCommandAndExpectSuccessResponse_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestIdentify * cluster = [[MTRTestIdentify alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterIdentify * cluster = [[MTRBaseClusterIdentify alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRIdentifyClusterIdentifyParams alloc] init]; @@ -83780,10 +86641,9 @@ class TestOperationalCredentialsCluster : public TestCommandBridge { CHIP_ERROR TestReadNumberOfSupportedFabrics_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOperationalCredentials * cluster = [[MTRTestOperationalCredentials alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSupportedFabricsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -83802,10 +86662,9 @@ class TestOperationalCredentialsCluster : public TestCommandBridge { CHIP_ERROR TestReadNumberOfCommissionedFabrics_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOperationalCredentials * cluster = [[MTRTestOperationalCredentials alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCommissionedFabricsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -83825,10 +86684,9 @@ class TestOperationalCredentialsCluster : public TestCommandBridge { CHIP_ERROR TestReadCurrentFabricIndex_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOperationalCredentials * cluster = [[MTRTestOperationalCredentials alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentFabricIndexWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -83850,10 +86708,9 @@ class TestOperationalCredentialsCluster : public TestCommandBridge { CHIP_ERROR TestRemoveNonexistentFabric_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOperationalCredentials * cluster = [[MTRTestOperationalCredentials alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTROperationalCredentialsClusterRemoveFabricParams alloc] init]; @@ -83878,10 +86735,9 @@ class TestOperationalCredentialsCluster : public TestCommandBridge { CHIP_ERROR TestReadFabricListBeforeSettingLabel_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOperationalCredentials * cluster = [[MTRTestOperationalCredentials alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); MTRReadParams * params = [[MTRReadParams alloc] init]; @@ -83910,10 +86766,9 @@ class TestOperationalCredentialsCluster : public TestCommandBridge { CHIP_ERROR TestSetTheFabricLabel_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOperationalCredentials * cluster = [[MTRTestOperationalCredentials alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTROperationalCredentialsClusterUpdateFabricLabelParams alloc] init]; @@ -83943,10 +86798,9 @@ class TestOperationalCredentialsCluster : public TestCommandBridge { CHIP_ERROR TestReadFabricListAfterSettingLabel_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOperationalCredentials * cluster = [[MTRTestOperationalCredentials alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); MTRReadParams * params = [[MTRReadParams alloc] init]; @@ -84277,8 +87131,10 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestReadDescription_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeDescriptionWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -84299,8 +87155,10 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestReadStandardNamespace_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeStandardNamespaceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -84322,8 +87180,10 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestReadSupportedModes_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSupportedModesWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -84359,8 +87219,10 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestReadCurrentMode_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -84381,8 +87243,10 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestReadStartUpMode_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeStartUpModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -84404,8 +87268,10 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestReadOnMode_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -84426,8 +87292,10 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestChangeToSupportedMode_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRModeSelectClusterChangeToModeParams alloc] init]; @@ -84447,8 +87315,10 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestVerifyCurrentModeChange_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -84472,8 +87342,10 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestChangeToUnsupportedMode_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRModeSelectClusterChangeToModeParams alloc] init]; @@ -84491,8 +87363,8 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestToggleOnOff_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -84508,8 +87380,8 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestToggleOnOff_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -84525,8 +87397,10 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestVerifyCurrentModeDoesNotChangeWhenOnModeIsNull_12() { - MTRDevice * device = GetDevice("alpha"); - MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -84547,8 +87421,10 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestChangeToUnsupportedOnMode_13() { - MTRDevice * device = GetDevice("alpha"); - MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id onModeArgument; @@ -84566,8 +87442,10 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestChangeOnMode_14() { - MTRDevice * device = GetDevice("alpha"); - MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id onModeArgument; @@ -84587,8 +87465,10 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestVerifyOnMode_15() { - MTRDevice * device = GetDevice("alpha"); - MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeOnModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -84613,8 +87493,8 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestToggleOnOff_16() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -84630,8 +87510,8 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestToggleOnOff_17() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -84647,8 +87527,10 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestVerifyCurrentModeChangesIfOnModeIsNotNull_18() { - MTRDevice * device = GetDevice("alpha"); - MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -84669,8 +87551,10 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestChangeToUnsupportedStartUpMode_19() { - MTRDevice * device = GetDevice("alpha"); - MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id startUpModeArgument; @@ -84688,8 +87572,10 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestChangeToSupportedStartUpMode_20() { - MTRDevice * device = GetDevice("alpha"); - MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id startUpModeArgument; @@ -84708,8 +87594,10 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestVerifyStartUpModeChange_21() { - MTRDevice * device = GetDevice("alpha"); - MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeStartUpModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -84731,8 +87619,10 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestChangeCurrentModeToAnotherValue_22() { - MTRDevice * device = GetDevice("alpha"); - MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRModeSelectClusterChangeToModeParams alloc] init]; @@ -84751,8 +87641,10 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestChangeOnMode_23() { - MTRDevice * device = GetDevice("alpha"); - MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id onModeArgument; @@ -84771,8 +87663,8 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestSetStartUpOnOff_24() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id startUpOnOffArgument; @@ -84804,8 +87696,10 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestVerifyCurrentModeChangeBasedOnOnModeAsItOverwritesStartUpMode_27() { - MTRDevice * device = GetDevice("alpha"); - MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -84826,8 +87720,10 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestChangeOnModeToNull_28() { - MTRDevice * device = GetDevice("alpha"); - MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id onModeArgument; @@ -84859,8 +87755,10 @@ class TestModeSelectCluster : public TestCommandBridge { CHIP_ERROR TestVerifyCurrentModeChangeBasedOnNewStartUpMode_31() { - MTRDevice * device = GetDevice("alpha"); - MTRTestModeSelect * cluster = [[MTRTestModeSelect alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterModeSelect * cluster = [[MTRBaseClusterModeSelect alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -84986,10 +87884,9 @@ class TestSelfFabricRemoval : public TestCommandBridge { CHIP_ERROR TestReadNumberOfCommissionedFabrics_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOperationalCredentials * cluster = [[MTRTestOperationalCredentials alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCommissionedFabricsWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -85012,10 +87909,9 @@ class TestSelfFabricRemoval : public TestCommandBridge { CHIP_ERROR TestReadCurrentFabricIndex_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOperationalCredentials * cluster = [[MTRTestOperationalCredentials alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentFabricIndexWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -85037,10 +87933,9 @@ class TestSelfFabricRemoval : public TestCommandBridge { CHIP_ERROR TestRemoveSingleOwnFabric_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOperationalCredentials * cluster = [[MTRTestOperationalCredentials alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTROperationalCredentialsClusterRemoveFabricParams alloc] init]; @@ -85609,8 +88504,8 @@ class TestBinding : public TestCommandBridge { CHIP_ERROR TestWriteEmptyBindingTable_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBinding * cluster = [[MTRTestBinding alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBinding * cluster = [[MTRBaseClusterBinding alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id bindingArgument; @@ -85632,8 +88527,8 @@ class TestBinding : public TestCommandBridge { CHIP_ERROR TestReadEmptyBindingTable_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBinding * cluster = [[MTRTestBinding alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBinding * cluster = [[MTRBaseClusterBinding alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); MTRReadParams * params = [[MTRReadParams alloc] init]; @@ -85657,8 +88552,8 @@ class TestBinding : public TestCommandBridge { CHIP_ERROR TestWriteInvalidBindingTable_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBinding * cluster = [[MTRTestBinding alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBinding * cluster = [[MTRBaseClusterBinding alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id bindingArgument; @@ -85689,8 +88584,8 @@ class TestBinding : public TestCommandBridge { CHIP_ERROR TestWriteBindingTableEndpoint1_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBinding * cluster = [[MTRTestBinding alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBinding * cluster = [[MTRBaseClusterBinding alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id bindingArgument; @@ -85727,8 +88622,8 @@ class TestBinding : public TestCommandBridge { CHIP_ERROR TestReadBindingTableEndpoint1_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBinding * cluster = [[MTRTestBinding alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBinding * cluster = [[MTRBaseClusterBinding alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); MTRReadParams * params = [[MTRReadParams alloc] init]; @@ -85768,8 +88663,8 @@ class TestBinding : public TestCommandBridge { CHIP_ERROR TestWriteBindingTableEndpoint0_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBinding * cluster = [[MTRTestBinding alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBinding * cluster = [[MTRBaseClusterBinding alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id bindingArgument; @@ -85796,8 +88691,8 @@ class TestBinding : public TestCommandBridge { CHIP_ERROR TestReadBindingTableEndpoint0_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBinding * cluster = [[MTRTestBinding alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBinding * cluster = [[MTRBaseClusterBinding alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); MTRReadParams * params = [[MTRReadParams alloc] init]; @@ -85827,8 +88722,8 @@ class TestBinding : public TestCommandBridge { CHIP_ERROR TestVerifyEndpoint1NotChanged_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBinding * cluster = [[MTRTestBinding alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBinding * cluster = [[MTRBaseClusterBinding alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); MTRReadParams * params = [[MTRReadParams alloc] init]; @@ -85994,8 +88889,8 @@ class TestUserLabelCluster : public TestCommandBridge { CHIP_ERROR TestClearUserLabelList_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestUserLabel * cluster = [[MTRTestUserLabel alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterUserLabel * cluster = [[MTRBaseClusterUserLabel alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id labelListArgument; @@ -86017,8 +88912,8 @@ class TestUserLabelCluster : public TestCommandBridge { CHIP_ERROR TestReadUserLabelList_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestUserLabel * cluster = [[MTRTestUserLabel alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterUserLabel * cluster = [[MTRBaseClusterUserLabel alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLabelListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -86039,8 +88934,8 @@ class TestUserLabelCluster : public TestCommandBridge { CHIP_ERROR TestWriteUserLabelList_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestUserLabel * cluster = [[MTRTestUserLabel alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterUserLabel * cluster = [[MTRBaseClusterUserLabel alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id labelListArgument; @@ -86091,8 +88986,8 @@ class TestUserLabelCluster : public TestCommandBridge { CHIP_ERROR TestVerify_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestUserLabel * cluster = [[MTRTestUserLabel alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterUserLabel * cluster = [[MTRBaseClusterUserLabel alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLabelListWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -86268,10 +89163,9 @@ class TestArmFailSafe : public TestCommandBridge { CHIP_ERROR TestQueryFabricsList_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOperationalCredentials * cluster = [[MTRTestOperationalCredentials alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); MTRReadParams * params = [[MTRReadParams alloc] init]; @@ -86298,10 +89192,10 @@ class TestArmFailSafe : public TestCommandBridge { CHIP_ERROR TestArmFailSafeOnTargetDeviceWithTimeout0_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGeneralCommissioning * cluster = [[MTRTestGeneralCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGeneralCommissioning * cluster = [[MTRBaseClusterGeneralCommissioning alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRGeneralCommissioningClusterArmFailSafeParams alloc] init]; @@ -86327,8 +89221,8 @@ class TestArmFailSafe : public TestCommandBridge { CHIP_ERROR TestReadsNodeLabelMandatoryAttributeOfTargetDevice_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -86349,10 +89243,9 @@ class TestArmFailSafe : public TestCommandBridge { CHIP_ERROR TestInvokeAddTrustedRootCertificateWithoutFailSafe_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOperationalCredentials * cluster = [[MTRTestOperationalCredentials alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTROperationalCredentialsClusterAddTrustedRootCertificateParams alloc] init]; @@ -86370,10 +89263,9 @@ class TestArmFailSafe : public TestCommandBridge { CHIP_ERROR TestInvokeAddNOCWithoutFailSafe_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOperationalCredentials * cluster = [[MTRTestOperationalCredentials alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTROperationalCredentialsClusterAddNOCParams alloc] init]; @@ -86395,10 +89287,9 @@ class TestArmFailSafe : public TestCommandBridge { CHIP_ERROR TestInvokeUpdateNOCWithoutFailSafe_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOperationalCredentials * cluster = [[MTRTestOperationalCredentials alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTROperationalCredentialsClusterUpdateNOCParams alloc] init]; @@ -86417,10 +89308,9 @@ class TestArmFailSafe : public TestCommandBridge { CHIP_ERROR TestInvokeCSRRequestWithoutFailSafe_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOperationalCredentials * cluster = [[MTRTestOperationalCredentials alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTROperationalCredentialsClusterCSRRequestParams alloc] init]; @@ -86693,8 +89583,10 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestWriteFanMode_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id fanModeArgument; @@ -86713,8 +89605,10 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestReadBackFanMode_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFanModeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -86735,8 +89629,10 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestWriteFanModeSequence_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id fanModeSequenceArgument; @@ -86755,8 +89651,10 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestReadBackFanModeSequence_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeFanModeSequenceWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -86777,8 +89675,10 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestWritePercentSetting_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id percentSettingArgument; @@ -86797,8 +89697,10 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestReadBackPercentSetting_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePercentSettingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -86820,8 +89722,10 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestReadBackSpeedSetting_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSpeedSettingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -86843,8 +89747,10 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestReadBackSpeedCurrent_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSpeedCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -86865,8 +89771,10 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestWritePercentSetting_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id percentSettingArgument; @@ -86885,8 +89793,10 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestReadBackPercentSetting_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePercentSettingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -86908,8 +89818,10 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestWriteSpeedSetting_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id speedSettingArgument; @@ -86928,8 +89840,10 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestReadBackSpeedSetting_12() { - MTRDevice * device = GetDevice("alpha"); - MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSpeedSettingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -86951,8 +89865,10 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestReadBackPercentSetting_13() { - MTRDevice * device = GetDevice("alpha"); - MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePercentSettingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -86974,8 +89890,10 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestReadBackPercentCurrent_14() { - MTRDevice * device = GetDevice("alpha"); - MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePercentCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -86996,8 +89914,10 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestWriteSpeedSetting_15() { - MTRDevice * device = GetDevice("alpha"); - MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id speedSettingArgument; @@ -87016,8 +89936,10 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestReadBackSpeedSetting_16() { - MTRDevice * device = GetDevice("alpha"); - MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSpeedSettingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -87039,8 +89961,10 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestWriteFanMode_17() { - MTRDevice * device = GetDevice("alpha"); - MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id fanModeArgument; @@ -87059,8 +89983,10 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestReadBackPercentSetting_18() { - MTRDevice * device = GetDevice("alpha"); - MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePercentSettingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -87082,8 +90008,10 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestReadBackPercentCurrent_19() { - MTRDevice * device = GetDevice("alpha"); - MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePercentCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -87104,8 +90032,10 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestReadBackSpeedSetting_20() { - MTRDevice * device = GetDevice("alpha"); - MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSpeedSettingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -87127,8 +90057,10 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestReadBackSpeedCurrent_21() { - MTRDevice * device = GetDevice("alpha"); - MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSpeedCurrentWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -87149,8 +90081,10 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestWriteFanMode_22() { - MTRDevice * device = GetDevice("alpha"); - MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id fanModeArgument; @@ -87169,8 +90103,10 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestReadBackPercentSetting_23() { - MTRDevice * device = GetDevice("alpha"); - MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributePercentSettingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -87191,8 +90127,10 @@ class TestFanControl : public TestCommandBridge { CHIP_ERROR TestReadBackSpeedSetting_24() { - MTRDevice * device = GetDevice("alpha"); - MTRTestFanControl * cluster = [[MTRTestFanControl alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterFanControl * cluster = [[MTRBaseClusterFanControl alloc] initWithDevice:device + endpoint:1 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeSpeedSettingWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -87449,10 +90387,9 @@ class TestMultiAdmin : public TestCommandBridge { CHIP_ERROR TestOpenCommissioningWindowFromAlpha_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAdministratorCommissioning * cluster = [[MTRTestAdministratorCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAdministratorCommissioning * cluster = + [[MTRBaseClusterAdministratorCommissioning alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRAdministratorCommissioningClusterOpenBasicCommissioningWindowParams alloc] init]; @@ -87479,10 +90416,9 @@ class TestMultiAdmin : public TestCommandBridge { CHIP_ERROR TestCheckThatWeJustHaveTheOneFabricAndDidNotAddANewOne_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOperationalCredentials * cluster = [[MTRTestOperationalCredentials alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOperationalCredentials * cluster = + [[MTRBaseClusterOperationalCredentials alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); MTRReadParams * params = [[MTRReadParams alloc] init]; @@ -87506,10 +90442,9 @@ class TestMultiAdmin : public TestCommandBridge { CHIP_ERROR TestCloseCommissioningWindowAfterFailedCommissioning_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAdministratorCommissioning * cluster = [[MTRTestAdministratorCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAdministratorCommissioning * cluster = + [[MTRBaseClusterAdministratorCommissioning alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster revokeCommissioningWithCompletionHandler:^(NSError * _Nullable err) { @@ -87525,10 +90460,9 @@ class TestMultiAdmin : public TestCommandBridge { CHIP_ERROR TestOpenCommissioningWindowFromAlphaAgain_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestAdministratorCommissioning * cluster = [[MTRTestAdministratorCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterAdministratorCommissioning * cluster = + [[MTRBaseClusterAdministratorCommissioning alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRAdministratorCommissioningClusterOpenBasicCommissioningWindowParams alloc] init]; @@ -87562,10 +90496,9 @@ class TestMultiAdmin : public TestCommandBridge { CHIP_ERROR TestOpenCommissioningWindowFromBeta_11() { - MTRDevice * device = GetDevice("beta"); - MTRTestAdministratorCommissioning * cluster = [[MTRTestAdministratorCommissioning alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("beta"); + MTRBaseClusterAdministratorCommissioning * cluster = + [[MTRBaseClusterAdministratorCommissioning alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRAdministratorCommissioningClusterOpenBasicCommissioningWindowParams alloc] init]; @@ -87600,8 +90533,8 @@ class TestMultiAdmin : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributeNodeLabelFromAlpha_14() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -87625,8 +90558,8 @@ class TestMultiAdmin : public TestCommandBridge { CHIP_ERROR TestWriteTheMandatoryAttributeNodeLabelFromBeta_15() { - MTRDevice * device = GetDevice("beta"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("beta"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nodeLabelArgument; @@ -87645,8 +90578,8 @@ class TestMultiAdmin : public TestCommandBridge { CHIP_ERROR TestReadTheMandatoryAttributeNodeLabelFromGamma_16() { - MTRDevice * device = GetDevice("gamma"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("gamma"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNodeLabelWithCompletionHandler:^(NSString * _Nullable value, NSError * _Nullable err) { @@ -87664,8 +90597,8 @@ class TestMultiAdmin : public TestCommandBridge { CHIP_ERROR TestWriteTheMandatoryAttributeNodeLabelBackToDefault_17() { - MTRDevice * device = GetDevice("alpha"); - MTRTestBasic * cluster = [[MTRTestBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterBasic * cluster = [[MTRBaseClusterBasic alloc] initWithDevice:device endpoint:0 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id nodeLabelArgument; @@ -87812,10 +90745,10 @@ class Test_TC_DGSW_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsAListOfThreadMetricsStructNonGlobalAttributeFromDut_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestSoftwareDiagnostics * cluster = [[MTRTestSoftwareDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterSoftwareDiagnostics * cluster = [[MTRBaseClusterSoftwareDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeThreadMetricsWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -87832,10 +90765,10 @@ class Test_TC_DGSW_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentHeapFreeNonGlobalAttributeValueFromDut_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestSoftwareDiagnostics * cluster = [[MTRTestSoftwareDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterSoftwareDiagnostics * cluster = [[MTRBaseClusterSoftwareDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHeapFreeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -87852,10 +90785,10 @@ class Test_TC_DGSW_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentHeapUsedNonGlobalAttributeValueFromDut_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestSoftwareDiagnostics * cluster = [[MTRTestSoftwareDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterSoftwareDiagnostics * cluster = [[MTRBaseClusterSoftwareDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHeapUsedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -87872,10 +90805,10 @@ class Test_TC_DGSW_2_1 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentHeapHighWaterMarkNonGlobalAttributeValueFromDut_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestSoftwareDiagnostics * cluster = [[MTRTestSoftwareDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterSoftwareDiagnostics * cluster = [[MTRBaseClusterSoftwareDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHeapHighWatermarkWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -88112,10 +91045,10 @@ class Test_TC_DGSW_2_3 : public TestCommandBridge { CHIP_ERROR TestSendsResetWatermarksToDut_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestSoftwareDiagnostics * cluster = [[MTRTestSoftwareDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterSoftwareDiagnostics * cluster = [[MTRBaseClusterSoftwareDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster resetWatermarksWithCompletionHandler:^(NSError * _Nullable err) { @@ -88131,10 +91064,10 @@ class Test_TC_DGSW_2_3 : public TestCommandBridge { CHIP_ERROR TestReadsAListOfThreadMetricsStructAttributeFromDut_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestSoftwareDiagnostics * cluster = [[MTRTestSoftwareDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterSoftwareDiagnostics * cluster = [[MTRBaseClusterSoftwareDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeThreadMetricsWithCompletionHandler:^(NSArray * _Nullable value, NSError * _Nullable err) { @@ -88151,10 +91084,10 @@ class Test_TC_DGSW_2_3 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentHeapUsedAttributeValueFromDut_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestSoftwareDiagnostics * cluster = [[MTRTestSoftwareDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterSoftwareDiagnostics * cluster = [[MTRBaseClusterSoftwareDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHeapUsedWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -88171,10 +91104,10 @@ class Test_TC_DGSW_2_3 : public TestCommandBridge { CHIP_ERROR TestReadsCurrentHeapHighWaterMarkAttributeValueFromDut_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestSoftwareDiagnostics * cluster = [[MTRTestSoftwareDiagnostics alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterSoftwareDiagnostics * cluster = [[MTRBaseClusterSoftwareDiagnostics alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeCurrentHeapHighWatermarkWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -88324,8 +91257,8 @@ class TestSubscribe_OnOff : public TestCommandBridge { CHIP_ERROR TestSetOnOffAttributeToFalse_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -88343,8 +91276,8 @@ class TestSubscribe_OnOff : public TestCommandBridge { CHIP_ERROR TestReportSubscribeOnOffAttribute_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); test_TestSubscribe_OnOff_OnOff_Reported = ^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -88366,8 +91299,8 @@ class TestSubscribe_OnOff : public TestCommandBridge { CHIP_ERROR TestSubscribeOnOffAttribute_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); uint16_t minIntervalArgument = 2U; @@ -88397,8 +91330,8 @@ class TestSubscribe_OnOff : public TestCommandBridge { CHIP_ERROR TestTurnOnTheLightToSeeAttributeChange_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster onWithCompletionHandler:^(NSError * _Nullable err) { @@ -88414,8 +91347,8 @@ class TestSubscribe_OnOff : public TestCommandBridge { CHIP_ERROR TestCheckForAttributeReport_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); test_TestSubscribe_OnOff_OnOff_Reported = ^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -88436,8 +91369,8 @@ class TestSubscribe_OnOff : public TestCommandBridge { CHIP_ERROR TestTurnOffTheLightToSeeAttributeChange_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster offWithCompletionHandler:^(NSError * _Nullable err) { @@ -88453,8 +91386,8 @@ class TestSubscribe_OnOff : public TestCommandBridge { CHIP_ERROR TestCheckForAttributeReport_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestOnOff * cluster = [[MTRTestOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterOnOff * cluster = [[MTRBaseClusterOnOff alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); test_TestSubscribe_OnOff_OnOff_Reported = ^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -89359,8 +92292,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadAvailableUserSlotAndVerifyResponseFields_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; @@ -89430,8 +92363,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestGetNumberOfSupportedUsersAndVerifyDefaultValue_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -89456,8 +92389,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadFailsForUserWithIndex0_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; @@ -89475,8 +92408,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadFailsForUserWithIndexGreaterThanNumberOfUsersSupported_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; @@ -89494,8 +92427,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewUserWithDefaultParameters_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetUserParams alloc] init]; @@ -89520,8 +92453,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadTheUserBackAndVerifyItsFields_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; @@ -89596,8 +92529,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestSetUserAtTheOccupiedIndexFailsWithAppropriateResponse_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetUserParams alloc] init]; @@ -89621,8 +92554,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestModifyUserNameForExistingUser_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetUserParams alloc] init]; @@ -89647,8 +92580,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadTheModifiedUserBackAndVerifyItsFields_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; @@ -89723,8 +92656,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestModifyUserUniqueIdForExistingUser_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetUserParams alloc] init]; @@ -89749,8 +92682,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadTheModifiedUserBackAndVerifyItsFields_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; @@ -89826,8 +92759,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestModifyUserStatusForExistingUser_12() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetUserParams alloc] init]; @@ -89852,8 +92785,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadTheModifiedUserBackAndVerifyItsFields_13() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; @@ -89929,8 +92862,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestModifyUserTypeForExistingUser_14() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetUserParams alloc] init]; @@ -89955,8 +92888,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadTheModifiedUserBackAndVerifyItsFields_15() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; @@ -90032,8 +92965,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestModifyCredentialRuleForExistingUser_16() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetUserParams alloc] init]; @@ -90058,8 +92991,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadTheModifiedUserBackAndVerifyItsFields_17() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; @@ -90135,8 +93068,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestModifyAllFieldsForExistingUser_18() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetUserParams alloc] init]; @@ -90161,8 +93094,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadTheModifiedUserBackAndVerifyItsFields_19() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; @@ -90238,8 +93171,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestAddAnotherUserWithNonDefaultFields_20() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetUserParams alloc] init]; @@ -90264,8 +93197,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadTheNewUserBackAndVerifyItsFields_21() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; @@ -90341,8 +93274,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateUserInTheLastSlot_22() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetUserParams alloc] init]; @@ -90367,8 +93300,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadTheLastUserBackAndVerifyItsFields_23() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; @@ -90443,8 +93376,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestUserCreationInThe0SlotFails_24() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetUserParams alloc] init]; @@ -90468,8 +93401,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestUserCreationInTheOutOfBoundsSlotFails_25() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetUserParams alloc] init]; @@ -90493,8 +93426,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestClearFirstUser_26() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterClearUserParams alloc] init]; @@ -90513,8 +93446,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadClearedUserAndVerifyItIsAvailable_27() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; @@ -90584,8 +93517,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewUserInTheClearedSlot_28() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetUserParams alloc] init]; @@ -90610,8 +93543,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadTheUserInThePreviouslyClearedSlotAndVerifyItsFields_29() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; @@ -90687,8 +93620,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestClearUserWithIndex0Fails_30() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterClearUserParams alloc] init]; @@ -90706,8 +93639,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestClearUserWithOutOfBoundsIndexFails_31() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterClearUserParams alloc] init]; @@ -90725,8 +93658,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestClearAllUsers_32() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterClearUserParams alloc] init]; @@ -90745,8 +93678,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadFirstClearedUserAndVerifyItIsAvailable_33() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; @@ -90815,8 +93748,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadLastClearedUserAndVerifyItIsAvailable_34() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; @@ -90886,8 +93819,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestGetNumberOfSupportedPinCredentialsAndVerifyDefaultValue_35() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -90912,8 +93845,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCheckThatPinCredentialDoesNotExist_36() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetCredentialStatusParams alloc] init]; @@ -90961,8 +93894,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadingPinCredentialWithIndex0Fails_37() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetCredentialStatusParams alloc] init]; @@ -90984,8 +93917,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadingPinCredentialWithOutOfBoundsIndexFails_38() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetCredentialStatusParams alloc] init]; @@ -91008,8 +93941,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewPinCredentialAndUser_39() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -91054,8 +93987,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestVerifyCreatedUser_40() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; @@ -91135,8 +94068,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestVerifyCreatedPinCredential_41() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetCredentialStatusParams alloc] init]; @@ -91187,8 +94120,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewPinCredentialAndUserWithIndex0Fails_42() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -91232,8 +94165,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewPinCredentialAndUserWithOutOfBoundsIndexFails_43() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -91278,8 +94211,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestGetNumberOfSupportedRfidCredentialsAndVerifyDefaultValue_44() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -91304,8 +94237,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadingRfidCredentialWithIndex0Fails_45() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetCredentialStatusParams alloc] init]; @@ -91327,8 +94260,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadingRfidCredentialWithOutOfBoundsIndexFails_46() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetCredentialStatusParams alloc] init]; @@ -91351,8 +94284,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCheckThatRfidCredentialDoesNotExist_47() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetCredentialStatusParams alloc] init]; @@ -91400,8 +94333,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewRfidCredentialAndAddItToExistingUser_48() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -91445,8 +94378,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestVerifyModifiedUser_49() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; @@ -91530,8 +94463,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestVerifyCreatedCredential_50() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetCredentialStatusParams alloc] init]; @@ -91582,8 +94515,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewRfidCredentialAndUserWithIndex0Fails_51() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -91627,8 +94560,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewRfidCredentialAndUserWithOutOfBoundsIndexFails_52() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -91672,8 +94605,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewCredentialAndTryToAddItTo0User_53() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -91717,8 +94650,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewCredentialAndTryToAddItToOutOfBoundsUser_54() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -91762,8 +94695,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewPinWithTooShortData_55() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -91807,8 +94740,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewPinWithTooLongData_56() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -91852,8 +94785,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewRfidWithTooShortData_57() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -91897,8 +94830,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewPinWithProgrammingUserTypeFails_58() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -91942,8 +94875,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewRfidWithTooShortData_59() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -91987,8 +94920,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewPinCredentialWithDataTheWouldCauseDuplicate_60() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -92032,8 +94965,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewRfidCredentialWithDataTheWouldCauseDuplicate_61() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -92077,8 +95010,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestModifyCredentialDataOfExistingPinCredential_62() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -92122,8 +95055,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestVerifyThatCredentialWasChangedByCreatingNewCredentialWithOldData_63() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -92168,8 +95101,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestVerifyThatCredentialWasChangedByCreatingNewCredentialWithNewData_64() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -92213,8 +95146,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewRfidCredentialAndAddItToExistingUser_65() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -92258,8 +95191,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestVerifyModifiedUser_66() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; @@ -92349,8 +95282,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewRfidCredentialAndAddItToExistingUser_67() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -92394,8 +95327,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestVerifyModifiedUser_68() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; @@ -92489,8 +95422,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestClearFirstPinCredential_69() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterClearCredentialParams alloc] init]; @@ -92512,8 +95445,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadBackTheCredentialAndMakeSureItIsDeleted_70() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetCredentialStatusParams alloc] init]; @@ -92562,8 +95495,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadTheUserBackAndMakeSurePinCredentialIsDeleted_71() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; @@ -92653,8 +95586,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestClearTheSecondPinCredential_72() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterClearCredentialParams alloc] init]; @@ -92676,8 +95609,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadBackTheCredentialAndMakeSureItIsDeleted_73() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetCredentialStatusParams alloc] init]; @@ -92726,8 +95659,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadTheUserBackAndMakeSureRelatedUserIsDeleted_74() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; @@ -92796,8 +95729,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewRfidCredentialWithUser_75() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -92842,8 +95775,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestClearAllTheRfidCredentials_76() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterClearCredentialParams alloc] init]; @@ -92865,8 +95798,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadBackTheFistRfidCredentialAndMakeSureItIsDeleted_77() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetCredentialStatusParams alloc] init]; @@ -92915,8 +95848,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadBackTheSecondRfidCredentialAndMakeSureItIsDeleted_78() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetCredentialStatusParams alloc] init]; @@ -92965,8 +95898,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadBackTheThirdRfidCredentialAndMakeSureItIsDeleted_79() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetCredentialStatusParams alloc] init]; @@ -93015,8 +95948,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadTheUserRelatedWithFirstRfidBackAndMakeSureItHasOnlyPinCredential_80() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; @@ -93096,8 +96029,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadTheUserRelatedWithSecondRfidBackAndMakeSureItIsDeleted_81() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; @@ -93166,8 +96099,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewPinCredentialWithUser_82() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -93212,8 +96145,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewRfidCredentialWithUser_83() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -93258,8 +96191,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateAnotherRfidCredentialWithUser_84() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -93304,8 +96237,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestClearAllTheCredentials_85() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterClearCredentialParams alloc] init]; @@ -93324,8 +96257,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadBackTheFirstPinCredentialAndMakeSureItIsDeleted_86() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetCredentialStatusParams alloc] init]; @@ -93373,8 +96306,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadBackTheFirstRfidCredentialAndMakeSureItIsDeleted_87() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetCredentialStatusParams alloc] init]; @@ -93422,8 +96355,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadBackTheSecondPinCredentialAndMakeSureItIsDeleted_88() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetCredentialStatusParams alloc] init]; @@ -93471,8 +96404,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadTheUserRelatedWithFirstPinBackAndMakeSureItIsDeleted_89() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; @@ -93541,8 +96474,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadTheUserRelatedWithFirstRfidBackAndMakeSureItIsDeleted_90() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; @@ -93611,8 +96544,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadTheUserRelatedWithSecondPinBackAndMakeSureItIsDeleted_91() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; @@ -93681,8 +96614,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestReadTheUserRelatedWithLastRfidBackAndMakeSureItIsDeleted_92() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; @@ -93751,8 +96684,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewProgrammingPinCredentialWithInvalidIndex_93() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -93795,8 +96728,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewProgrammingPinCredentialWithValidIndex_94() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -93840,8 +96773,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestVerifyCreatedUser_95() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; @@ -93921,8 +96854,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestVerifyCreatedProgrammingPinCredential_96() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetCredentialStatusParams alloc] init]; @@ -93973,8 +96906,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestModifyTheProgrammingPinCredential_97() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -94017,8 +96950,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestClearingProgrammingPinFails_98() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterClearCredentialParams alloc] init]; @@ -94039,8 +96972,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestClearingProgrammingPinWithInvalidIndexFails_99() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterClearCredentialParams alloc] init]; @@ -94061,8 +96994,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestClearingPinCredentialWithZeroIndexFails_100() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterClearCredentialParams alloc] init]; @@ -94083,8 +97016,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestClearingPinCredentialWithOutOfBoundIndexFails_101() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterClearCredentialParams alloc] init]; @@ -94106,8 +97039,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestClearingRfidCredentialWithZeroIndexFails_102() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterClearCredentialParams alloc] init]; @@ -94128,8 +97061,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestClearingRfidCredentialWithOutOfBoundIndexFails_103() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterClearCredentialParams alloc] init]; @@ -94151,8 +97084,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestClearTheProgrammingPinUser_104() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterClearUserParams alloc] init]; @@ -94171,8 +97104,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestMakeSureProgrammingPinUserIsDeleted_105() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetUserParams alloc] init]; @@ -94241,8 +97174,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestMakeSureProgrammingPinCredentialIsDeleted_106() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetCredentialStatusParams alloc] init]; @@ -94290,8 +97223,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateNewPinCredentialAndUser_107() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -94336,8 +97269,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateSecondPinCredentialAndAddItToExistingUser_108() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -94381,8 +97314,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateThirdPinCredentialAndAddItToExistingUser_109() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -94426,8 +97359,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateFourthPinCredentialAndAddItToExistingUser_110() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -94471,8 +97404,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestCreateFifthPinCredentialAndAddItToExistingUser_111() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -94516,8 +97449,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestTryToCreateSixthPinCredentialAndMakeSureItFails_112() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -94561,8 +97494,8 @@ class DL_UsersAndCredentials : public TestCommandBridge { CHIP_ERROR TestFinalCleanUp_113() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterClearUserParams alloc] init]; @@ -94784,8 +97717,8 @@ class DL_LockUnlock : public TestCommandBridge { CHIP_ERROR TestTryToUnlockTheDoorWithoutPin_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterUnlockDoorParams alloc] init]; @@ -94803,8 +97736,8 @@ class DL_LockUnlock : public TestCommandBridge { CHIP_ERROR TestVerifyThatLockStateAttributeValueIsSetToUnlocked_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLockStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -94826,8 +97759,8 @@ class DL_LockUnlock : public TestCommandBridge { CHIP_ERROR TestTryToLockTheDoorWithoutAPin_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterLockDoorParams alloc] init]; @@ -94845,8 +97778,8 @@ class DL_LockUnlock : public TestCommandBridge { CHIP_ERROR TestVerifyThatLockStateAttributeValueIsSetToLocked_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLockStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -94868,8 +97801,8 @@ class DL_LockUnlock : public TestCommandBridge { CHIP_ERROR TestCreateNewPinCredentialAndLockUnlockUser_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -94914,8 +97847,8 @@ class DL_LockUnlock : public TestCommandBridge { CHIP_ERROR TestTryToUnlockTheDoorWithInvalidPin_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterUnlockDoorParams alloc] init]; @@ -94933,8 +97866,8 @@ class DL_LockUnlock : public TestCommandBridge { CHIP_ERROR TestVerifyThatLockStateAttributeValueIsSetToLocked_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLockStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -94956,8 +97889,8 @@ class DL_LockUnlock : public TestCommandBridge { CHIP_ERROR TestTryToUnlockTheDoorWithValidPin_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterUnlockDoorParams alloc] init]; @@ -94976,8 +97909,8 @@ class DL_LockUnlock : public TestCommandBridge { CHIP_ERROR TestVerifyThatLockStateAttributeValueIsSetToUnlocked_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLockStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -94999,8 +97932,8 @@ class DL_LockUnlock : public TestCommandBridge { CHIP_ERROR TestTryToLockTheDoorWithInvalidPin_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterLockDoorParams alloc] init]; @@ -95018,8 +97951,8 @@ class DL_LockUnlock : public TestCommandBridge { CHIP_ERROR TestVerifyThatLockStateAttributeValueIsSetToUnlocked_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLockStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -95041,8 +97974,8 @@ class DL_LockUnlock : public TestCommandBridge { CHIP_ERROR TestTryToLockTheDoorWithValidPin_12() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterLockDoorParams alloc] init]; @@ -95061,8 +97994,8 @@ class DL_LockUnlock : public TestCommandBridge { CHIP_ERROR TestVerifyThatLockStateAttributeValueIsSetToLocked_13() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLockStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -95084,8 +98017,8 @@ class DL_LockUnlock : public TestCommandBridge { CHIP_ERROR TestSetOperatingModeToNoRemoteLockUnlock_14() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id operatingModeArgument; @@ -95104,8 +98037,8 @@ class DL_LockUnlock : public TestCommandBridge { CHIP_ERROR TestTryToUnlockTheDoorWhenOperatingModeIsNoRemoteLockUnlock_15() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterLockDoorParams alloc] init]; @@ -95122,8 +98055,8 @@ class DL_LockUnlock : public TestCommandBridge { CHIP_ERROR TestSetOperatingModeToNormal_16() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id operatingModeArgument; @@ -95142,8 +98075,8 @@ class DL_LockUnlock : public TestCommandBridge { CHIP_ERROR TestCleanTheCreatedCredential_17() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterClearCredentialParams alloc] init]; @@ -96139,8 +99072,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateNewPinCredentialAndScheduleUser_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -96186,8 +99119,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestGetNumberOfSupportedUsers_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -96213,8 +99146,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestGetMaxNumberOfWeekDaySchedulesForUserAndVerifyDefaultValue_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNumberOfWeekDaySchedulesSupportedPerUserWithCompletionHandler:^( @@ -96240,8 +99173,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestGetMaxNumberOfYearDaySchedulesForUserAndVerifyDefaultValue_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNumberOfYearDaySchedulesSupportedPerUserWithCompletionHandler:^( @@ -96267,8 +99200,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestGetMaxNumberOfHolidaySchedulesAndVerifyDefaultValue_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNumberOfHolidaySchedulesSupportedWithCompletionHandler:^( @@ -96293,8 +99226,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateWeekDayScheduleWith0Index_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; @@ -96318,8 +99251,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateWeekDayScheduleWithOutOfBoundsIndex_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; @@ -96343,8 +99276,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateWeekDayScheduleWith0UserIndex_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; @@ -96368,8 +99301,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateWeekDayScheduleWithOutOfBoundsUserIndex_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; @@ -96393,8 +99326,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateWeekDayScheduleForNonExistingUser_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; @@ -96418,8 +99351,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateWeekDayScheduleWith0DaysMask_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; @@ -96443,8 +99376,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateWeekDayScheduleForSundayAndMonday_12() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; @@ -96468,8 +99401,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateWeekDayScheduleForSundayWednesdayAndSaturday_13() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; @@ -96493,8 +99426,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateWeekDayScheduleWithInvalidStartHour_14() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; @@ -96518,8 +99451,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateWeekDayScheduleWithInvalidStartMinute_15() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; @@ -96543,8 +99476,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateWeekDayScheduleWithInvalidEndHour_16() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; @@ -96568,8 +99501,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateWeekDayScheduleWithInvalidEndMinute_17() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; @@ -96593,8 +99526,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateWeekDayScheduleWithStartHourLaterThatEndHour_18() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; @@ -96618,8 +99551,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateWeekDayScheduleWithStartMinuteLaterThatEndMinuteWhenHoursAreEqual_19() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; @@ -96645,8 +99578,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatPreviousOperationsDidNotCreateASchedule_20() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; @@ -96682,8 +99615,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestGetWeekDayScheduleWith0Index_21() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; @@ -96719,8 +99652,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestGetWeekDayScheduleWithOutOfBoundsIndex_22() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; @@ -96757,8 +99690,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestGetWeekDayScheduleWith0UserIndex_23() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; @@ -96794,8 +99727,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestGetWeekDayScheduleWithOutOfBoundsUserIndex_24() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; @@ -96832,8 +99765,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestGetWeekDayScheduleWithNonExistingUserIndex_25() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; @@ -96869,8 +99802,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateYearDayScheduleWith0Index_26() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetYearDayScheduleParams alloc] init]; @@ -96891,8 +99824,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateYearDayScheduleWithOutOfBoundsIndex_27() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetYearDayScheduleParams alloc] init]; @@ -96913,8 +99846,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateYearDayScheduleWith0UserIndex_28() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetYearDayScheduleParams alloc] init]; @@ -96935,8 +99868,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateYearDayScheduleWithOutOfBoundsUserIndex_29() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetYearDayScheduleParams alloc] init]; @@ -96957,8 +99890,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateYearDayScheduleForNonExistingUser_30() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetYearDayScheduleParams alloc] init]; @@ -96979,8 +99912,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateYearDayScheduleWithStartHourLaterThatEndHour_31() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetYearDayScheduleParams alloc] init]; @@ -97001,8 +99934,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatPreviousOperationsDidNotCreateASchedule_32() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; @@ -97038,8 +99971,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestGetYearDayScheduleWith0Index_33() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; @@ -97075,8 +100008,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestGetYearDayScheduleWithOutOfBoundsIndex_34() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; @@ -97113,8 +100046,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestGetYearDayScheduleWith0UserIndex_35() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; @@ -97150,8 +100083,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestGetYearDayScheduleWithOutOfBoundsUserIndex_36() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; @@ -97188,8 +100121,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestGetYearDayScheduleWithNonExistingUserIndex_37() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; @@ -97225,8 +100158,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateHolidayScheduleWith0Index_38() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetHolidayScheduleParams alloc] init]; @@ -97247,8 +100180,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateHolidayScheduleWithOutOfBoundsIndex_39() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetHolidayScheduleParams alloc] init]; @@ -97269,8 +100202,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateHolidayScheduleWithStartHourLaterThatEndHour_40() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetHolidayScheduleParams alloc] init]; @@ -97291,8 +100224,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateHolidayScheduleWithInvalidOperatingMode_41() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetHolidayScheduleParams alloc] init]; @@ -97313,8 +100246,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatPreviousOperationsDidNotCreateASchedule_42() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetHolidayScheduleParams alloc] init]; @@ -97344,8 +100277,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestGetHolidayScheduleWith0Index_43() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetHolidayScheduleParams alloc] init]; @@ -97375,8 +100308,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestGetHolidayScheduleWithOutOfBoundsIndex_44() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetHolidayScheduleParams alloc] init]; @@ -97407,8 +100340,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateHolidayScheduleWithValidParameters_45() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetHolidayScheduleParams alloc] init]; @@ -97430,8 +100363,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestVerifyCreatedSchedule_46() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetHolidayScheduleParams alloc] init]; @@ -97476,8 +100409,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateWeekDayScheduleWithValidParameters_47() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; @@ -97502,8 +100435,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestVerifyCreatedSchedule_48() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; @@ -97564,8 +100497,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateYearDayScheduleWithValidParameters_49() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetYearDayScheduleParams alloc] init]; @@ -97587,8 +100520,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestVerifyCreatedSchedule_50() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; @@ -97634,8 +100567,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestClearWeekDayScheduleWith0Index_51() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterClearWeekDayScheduleParams alloc] init]; @@ -97654,8 +100587,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestClearWeekDayScheduleWithOutOfBoundsIndex_52() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterClearWeekDayScheduleParams alloc] init]; @@ -97674,8 +100607,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestClearWeekDayScheduleWith0UserIndex_53() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterClearWeekDayScheduleParams alloc] init]; @@ -97694,8 +100627,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestClearWeekDayScheduleWithOutOfBoundsUserIndex_54() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterClearWeekDayScheduleParams alloc] init]; @@ -97714,8 +100647,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestClearWeekDayScheduleWithNonExistingUser_55() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterClearWeekDayScheduleParams alloc] init]; @@ -97734,8 +100667,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatWeekDayScheduleWasNotDeleted_56() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; @@ -97796,8 +100729,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatYearDayScheduleWasNotDeleted_57() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; @@ -97843,8 +100776,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatHolidayScheduleWasNotDeleted_58() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetHolidayScheduleParams alloc] init]; @@ -97889,8 +100822,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestClearYearDayScheduleWith0Index_59() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterClearYearDayScheduleParams alloc] init]; @@ -97909,8 +100842,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestClearYearDayScheduleWithOutOfBoundsIndex_60() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterClearYearDayScheduleParams alloc] init]; @@ -97929,8 +100862,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestClearYearDayScheduleWith0UserIndex_61() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterClearYearDayScheduleParams alloc] init]; @@ -97949,8 +100882,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestClearYearDayScheduleWithOutOfBoundsUserIndex_62() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterClearYearDayScheduleParams alloc] init]; @@ -97969,8 +100902,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestClearYearDayScheduleWithNonExistingUser_63() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterClearYearDayScheduleParams alloc] init]; @@ -97989,8 +100922,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatWeekDayScheduleWasNotDeleted_64() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; @@ -98051,8 +100984,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatYearDayScheduleWasNotDeleted_65() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; @@ -98098,8 +101031,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatHolidayScheduleWasNotDeleted_66() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetHolidayScheduleParams alloc] init]; @@ -98144,8 +101077,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestClearHolidayScheduleWith0Index_67() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterClearHolidayScheduleParams alloc] init]; @@ -98163,8 +101096,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestClearHolidayScheduleWithOutOfBoundsIndex_68() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterClearHolidayScheduleParams alloc] init]; @@ -98182,8 +101115,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatWeekDayScheduleWasNotDeleted_69() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; @@ -98244,8 +101177,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatYearDayScheduleWasNotDeleted_70() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; @@ -98291,8 +101224,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatHolidayScheduleWasNotDeleted_71() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetHolidayScheduleParams alloc] init]; @@ -98337,8 +101270,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateAnotherWeekDayScheduleWithValidParameters_72() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; @@ -98363,8 +101296,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestVerifyCreatedWeekDaySchedule_73() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; @@ -98425,8 +101358,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateAnotherYearDayScheduleWithValidParameters_74() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetYearDayScheduleParams alloc] init]; @@ -98448,8 +101381,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestVerifyCreatedYearDaySchedule_75() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; @@ -98495,8 +101428,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateAnotherHolidayScheduleWithValidParameters_76() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetHolidayScheduleParams alloc] init]; @@ -98518,8 +101451,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestVerifyCreatedHolidaySchedule_77() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetHolidayScheduleParams alloc] init]; @@ -98564,8 +101497,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestClearASingleWeekDayScheduleForTheFirstUser_78() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterClearWeekDayScheduleParams alloc] init]; @@ -98585,8 +101518,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestVerifyClearedWeekDaySchedule_79() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; @@ -98622,8 +101555,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestClearAllRemainingWeekDaySchedulesForTheFirstUser_80() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterClearWeekDayScheduleParams alloc] init]; @@ -98643,8 +101576,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestVerifyClearedWeekSchedule_81() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; @@ -98680,8 +101613,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatFirstYearDayScheduleWasNotDeleted_82() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; @@ -98727,8 +101660,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatSecondYearDayScheduleWasNotDeleted_83() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; @@ -98774,8 +101707,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatFirstHolidayScheduleWasNotDeleted_84() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetHolidayScheduleParams alloc] init]; @@ -98820,8 +101753,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatSecondHolidayScheduleWasNotDeleted_85() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetHolidayScheduleParams alloc] init]; @@ -98866,8 +101799,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateAnotherWeekDayScheduleWithValidParameters_86() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; @@ -98892,8 +101825,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestClearASingleYearDayScheduleForTheFirstUser_87() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterClearYearDayScheduleParams alloc] init]; @@ -98913,8 +101846,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestVerifyClearedYearDaySchedule_88() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; @@ -98950,8 +101883,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestClearAllRemainingYearSchedulesForTheFirstUser_89() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterClearYearDayScheduleParams alloc] init]; @@ -98971,8 +101904,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestVerifyThatSecondYearDayScheduleWasCleared_90() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; @@ -99008,8 +101941,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestVerifyCreatedWeekDaySchedule_91() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; @@ -99070,8 +102003,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestClearAllRemainingWeekDaySchedulesForTheFirstUser_92() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterClearWeekDayScheduleParams alloc] init]; @@ -99091,8 +102024,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateNewUserWithoutCredentialSoWeCanAddMoreSchedulesToIt_93() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetUserParams alloc] init]; @@ -99117,8 +102050,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateWeekDayScheduleWithValidParametersForFirstUser_94() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; @@ -99143,8 +102076,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestVerifyCreatedWeekDayScheduleForFirstUser_95() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; @@ -99205,8 +102138,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateYearDayScheduleForFirstUser_96() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetYearDayScheduleParams alloc] init]; @@ -99228,8 +102161,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestVerifyCreatedYearDayScheduleForFirst_97() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; @@ -99275,8 +102208,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateWeekDayScheduleWithValidParametersForSecondUser_98() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; @@ -99301,8 +102234,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestVerifyCreatedWeekDayScheduleForFirstUser_99() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; @@ -99363,8 +102296,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateYearDayScheduleForSecondUser_100() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetYearDayScheduleParams alloc] init]; @@ -99386,8 +102319,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestVerifyCreatedYearDayScheduleForFirst_101() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; @@ -99433,8 +102366,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCleanupTheUser_102() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterClearUserParams alloc] init]; @@ -99453,8 +102386,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureClearingFirstUserAlsoClearedWeekDaySchedules_103() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; @@ -99490,8 +102423,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureClearingFirstUserAlsoClearedYearDaySchedules_104() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; @@ -99527,8 +102460,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureClearingSecondUserAlsoClearedWeekDaySchedules_105() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; @@ -99564,8 +102497,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureClearingSecondUserAlsoClearedYearDaySchedules_106() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; @@ -99601,8 +102534,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatFirstHolidayScheduleWasNotDeleted_107() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetHolidayScheduleParams alloc] init]; @@ -99647,8 +102580,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatSecondHolidayScheduleWasNotDeleted_108() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetHolidayScheduleParams alloc] init]; @@ -99693,8 +102626,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateAnotherHolidayScheduleAtTheLastSlot_109() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetHolidayScheduleParams alloc] init]; @@ -99716,8 +102649,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestVerifyCreatedHolidaySchedule_110() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetHolidayScheduleParams alloc] init]; @@ -99762,8 +102695,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateNewPinCredentialAndScheduleUser_111() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -99808,8 +102741,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateWeekDayScheduleForFirstUser_112() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; @@ -99834,8 +102767,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestCreateYearDayScheduleForFirstUser_113() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetYearDayScheduleParams alloc] init]; @@ -99857,8 +102790,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestClearASingleHolidaySchedule_114() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterClearHolidayScheduleParams alloc] init]; @@ -99877,8 +102810,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatFirstHolidayScheduleWasNotDeleted_115() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetHolidayScheduleParams alloc] init]; @@ -99923,8 +102856,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatSecondHolidayScheduleWasDeleted_116() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetHolidayScheduleParams alloc] init]; @@ -99954,8 +102887,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatThirdHolidayScheduleWasNotDeleted_117() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetHolidayScheduleParams alloc] init]; @@ -100000,8 +102933,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureClearingHolidayScheduleDidNotClearWeekDaySchedule_118() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; @@ -100062,8 +102995,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureClearingHolidayScheduleDidNotClearYearDaySchedule_119() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; @@ -100109,8 +103042,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestClearAllRemainingHolidaySchedules_120() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterClearHolidayScheduleParams alloc] init]; @@ -100129,8 +103062,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatFirstHolidayIsStillDeleted_121() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetHolidayScheduleParams alloc] init]; @@ -100160,8 +103093,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatSecondHolidayScheduleWasDeleted_122() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetHolidayScheduleParams alloc] init]; @@ -100191,8 +103124,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureThatThirdHolidayScheduleWasNotDeleted_123() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetHolidayScheduleParams alloc] init]; @@ -100222,8 +103155,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureClearingHolidayScheduleDidNotClearWeekDaySchedule_124() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; @@ -100284,8 +103217,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestMakeSureClearingHolidayScheduleDidNotClearYearDaySchedule_125() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; @@ -100331,8 +103264,8 @@ class DL_Schedules : public TestCommandBridge { CHIP_ERROR TestFinalCleanup_126() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterClearUserParams alloc] init]; @@ -100603,8 +103536,8 @@ class Test_TC_DRLK_2_2 : public TestCommandBridge { CHIP_ERROR TestThWritesTheRequirePINforRemoteOperationAttributeValueAsFalseOnTheDut_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id requirePINforRemoteOperationArgument; @@ -100625,8 +103558,8 @@ class Test_TC_DRLK_2_2 : public TestCommandBridge { CHIP_ERROR TestThSendsLockDoorCommandToTheDutWithoutPINCode_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterLockDoorParams alloc] init]; @@ -100644,8 +103577,8 @@ class Test_TC_DRLK_2_2 : public TestCommandBridge { CHIP_ERROR TestThWritesTheRequirePINforRemoteOperationAttributeValueAsTrueOnTheDut_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id requirePINforRemoteOperationArgument; @@ -100666,8 +103599,8 @@ class Test_TC_DRLK_2_2 : public TestCommandBridge { CHIP_ERROR TestCreateNewPinCredentialAndLockUnlockUser_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -100712,8 +103645,8 @@ class Test_TC_DRLK_2_2 : public TestCommandBridge { CHIP_ERROR TestThSendsLockDoorCommandToTheDutWithValidPINCode_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterLockDoorParams alloc] init]; @@ -100732,8 +103665,8 @@ class Test_TC_DRLK_2_2 : public TestCommandBridge { CHIP_ERROR TestThSendsLockDoorCommandToTheDutWithoutAnyArgumentPINCode_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterLockDoorParams alloc] init]; @@ -100751,8 +103684,8 @@ class Test_TC_DRLK_2_2 : public TestCommandBridge { CHIP_ERROR TestThWritesWrongCodeEntryLimitAttributeValueAs3OnTheDut_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id wrongCodeEntryLimitArgument; @@ -100772,8 +103705,8 @@ class Test_TC_DRLK_2_2 : public TestCommandBridge { CHIP_ERROR TestThWritesUserCodeTemporaryDisableTimeAttributeValueAs5SecondsOnTheDut_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id userCodeTemporaryDisableTimeArgument; @@ -100794,8 +103727,8 @@ class Test_TC_DRLK_2_2 : public TestCommandBridge { CHIP_ERROR TestThSendsLockDoorCommandToTheDutWithInvalidPINCode_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterLockDoorParams alloc] init]; @@ -100813,8 +103746,8 @@ class Test_TC_DRLK_2_2 : public TestCommandBridge { CHIP_ERROR TestThSendsLockDoorCommandToTheDutWithInvalidPINCode_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterLockDoorParams alloc] init]; @@ -100832,8 +103765,8 @@ class Test_TC_DRLK_2_2 : public TestCommandBridge { CHIP_ERROR TestThSendsLockDoorCommandToTheDutWithInvalidPINCode_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterLockDoorParams alloc] init]; @@ -100851,8 +103784,8 @@ class Test_TC_DRLK_2_2 : public TestCommandBridge { CHIP_ERROR TestThSendsLockDoorCommandToTheDutWithInvalidPINCode_12() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterLockDoorParams alloc] init]; @@ -100870,8 +103803,8 @@ class Test_TC_DRLK_2_2 : public TestCommandBridge { CHIP_ERROR TestThReadsUserCodeTemporaryDisableTimeAttributeFromDut_13() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -100893,8 +103826,8 @@ class Test_TC_DRLK_2_2 : public TestCommandBridge { CHIP_ERROR TestThSendsLockDoorCommandToTheDutWithValidPINCode_14() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterLockDoorParams alloc] init]; @@ -100913,8 +103846,8 @@ class Test_TC_DRLK_2_2 : public TestCommandBridge { CHIP_ERROR TestCleanTheCreatedCredential_15() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterClearCredentialParams alloc] init]; @@ -101104,8 +104037,8 @@ class Test_TC_DRLK_2_3 : public TestCommandBridge { CHIP_ERROR TestCreateNewPinCredentialAndLockUnlockUser_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -101150,8 +104083,8 @@ class Test_TC_DRLK_2_3 : public TestCommandBridge { CHIP_ERROR TestPreconditionDoorIsInLockedState_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterLockDoorParams alloc] init]; @@ -101170,8 +104103,8 @@ class Test_TC_DRLK_2_3 : public TestCommandBridge { CHIP_ERROR TestThWritesAutoRelockTimeAttributeValueAs10SecondsOnTheDut_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id autoRelockTimeArgument; @@ -101190,8 +104123,8 @@ class Test_TC_DRLK_2_3 : public TestCommandBridge { CHIP_ERROR TestThSendsTheUnlockDoorCommandToTheDutWithValidPINCode_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterUnlockDoorParams alloc] init]; @@ -101210,8 +104143,8 @@ class Test_TC_DRLK_2_3 : public TestCommandBridge { CHIP_ERROR TestThReadsAutoRelockTimeAttributeFromDut_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAutoRelockTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -101239,8 +104172,8 @@ class Test_TC_DRLK_2_3 : public TestCommandBridge { CHIP_ERROR TestThReadsLockStateAttribute_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLockStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -101262,8 +104195,8 @@ class Test_TC_DRLK_2_3 : public TestCommandBridge { CHIP_ERROR TestCleanTheCreatedCredential_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterClearCredentialParams alloc] init]; @@ -101442,8 +104375,8 @@ class Test_TC_DRLK_2_4 : public TestCommandBridge { CHIP_ERROR TestCreateNewPinCredentialAndLockUnlockUser_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -101488,8 +104421,8 @@ class Test_TC_DRLK_2_4 : public TestCommandBridge { CHIP_ERROR TestPreconditionDoorIsInLockedState_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterLockDoorParams alloc] init]; @@ -101508,8 +104441,8 @@ class Test_TC_DRLK_2_4 : public TestCommandBridge { CHIP_ERROR TestThWritesAutoRelockTimeAttributeValueAs10SecondsOnTheDut_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id autoRelockTimeArgument; @@ -101528,8 +104461,8 @@ class Test_TC_DRLK_2_4 : public TestCommandBridge { CHIP_ERROR TestThSendsTheUnlockWithTimeoutCommandToTheDut_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterUnlockWithTimeoutParams alloc] init]; @@ -101549,8 +104482,8 @@ class Test_TC_DRLK_2_4 : public TestCommandBridge { CHIP_ERROR TestThReadsAutoRelockTimeAttributeFromDut_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeAutoRelockTimeWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -101578,8 +104511,8 @@ class Test_TC_DRLK_2_4 : public TestCommandBridge { CHIP_ERROR TestThReadsLockStateAttribute_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeLockStateWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -101786,8 +104719,8 @@ class Test_TC_DRLK_2_5 : public TestCommandBridge { CHIP_ERROR TestCreateNewPinCredentialAndLockUnlockUser_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -101833,8 +104766,8 @@ class Test_TC_DRLK_2_5 : public TestCommandBridge { CHIP_ERROR TestGetMaxNumberOfWeekDaySchedulesForUser_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNumberOfWeekDaySchedulesSupportedPerUserWithCompletionHandler:^( @@ -101860,8 +104793,8 @@ class Test_TC_DRLK_2_5 : public TestCommandBridge { CHIP_ERROR TestGetNumberOfSupportedUsers_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -101886,8 +104819,8 @@ class Test_TC_DRLK_2_5 : public TestCommandBridge { CHIP_ERROR TestSendSetWeekDayScheduleCommandToDut_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; @@ -101912,8 +104845,8 @@ class Test_TC_DRLK_2_5 : public TestCommandBridge { CHIP_ERROR TestSendGetWeekDayScheduleCommand_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; @@ -101989,8 +104922,8 @@ class Test_TC_DRLK_2_5 : public TestCommandBridge { CHIP_ERROR TestSendSetWeekDayScheduleCommandToDutAndVerifyInvalidCommandResponse_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetWeekDayScheduleParams alloc] init]; @@ -102015,8 +104948,8 @@ class Test_TC_DRLK_2_5 : public TestCommandBridge { CHIP_ERROR TestSendGetWeekDayScheduleCommandToDutAndVerifyInvalidCommandResponse_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; @@ -102073,8 +105006,8 @@ class Test_TC_DRLK_2_5 : public TestCommandBridge { CHIP_ERROR TestClearAllWeekDaySchedulesForTheFirstUser_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterClearWeekDayScheduleParams alloc] init]; @@ -102094,8 +105027,8 @@ class Test_TC_DRLK_2_5 : public TestCommandBridge { CHIP_ERROR TestSendGetWeekDayScheduleCommand_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetWeekDayScheduleParams alloc] init]; @@ -102363,8 +105296,8 @@ class Test_TC_DRLK_2_7 : public TestCommandBridge { CHIP_ERROR TestCreateNewPinCredentialAndLockUnlockUser_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -102409,8 +105342,8 @@ class Test_TC_DRLK_2_7 : public TestCommandBridge { CHIP_ERROR TestCreateNewPinCredentialAndLockUnlockForSecondUser_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -102456,8 +105389,8 @@ class Test_TC_DRLK_2_7 : public TestCommandBridge { CHIP_ERROR TestGetMaxNumberOfYearDaySchedulesForUser_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeNumberOfYearDaySchedulesSupportedPerUserWithCompletionHandler:^( @@ -102483,8 +105416,8 @@ class Test_TC_DRLK_2_7 : public TestCommandBridge { CHIP_ERROR TestGetNumberOfSupportedUsers_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -102509,8 +105442,8 @@ class Test_TC_DRLK_2_7 : public TestCommandBridge { CHIP_ERROR TestSendSetYearDayScheduleCommandToDut_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetYearDayScheduleParams alloc] init]; @@ -102532,8 +105465,8 @@ class Test_TC_DRLK_2_7 : public TestCommandBridge { CHIP_ERROR TestSendGetYearDayScheduleCommand_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; @@ -102577,8 +105510,8 @@ class Test_TC_DRLK_2_7 : public TestCommandBridge { CHIP_ERROR TestSendSetYearDayScheduleCommandToDutAndVerifyInvalidCommandResponse_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetYearDayScheduleParams alloc] init]; @@ -102600,8 +105533,8 @@ class Test_TC_DRLK_2_7 : public TestCommandBridge { CHIP_ERROR TestSendGetYearDayScheduleCommandToDutAndVerifyInvalidFieldResponse_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; @@ -102646,8 +105579,8 @@ class Test_TC_DRLK_2_7 : public TestCommandBridge { CHIP_ERROR TestSendGetYearDayScheduleCommandToDutAndVerifyFailureResponse_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; @@ -102691,8 +105624,8 @@ class Test_TC_DRLK_2_7 : public TestCommandBridge { CHIP_ERROR TestSendGetYearDayScheduleCommandToDutAndVerifyNotFoundResponse_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; @@ -102736,8 +105669,8 @@ class Test_TC_DRLK_2_7 : public TestCommandBridge { CHIP_ERROR TestSendSetYearDayScheduleCommandToDut_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetYearDayScheduleParams alloc] init]; @@ -102759,8 +105692,8 @@ class Test_TC_DRLK_2_7 : public TestCommandBridge { CHIP_ERROR TestSendGetYearDayScheduleCommand_12() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetYearDayScheduleParams alloc] init]; @@ -103068,8 +106001,8 @@ class Test_TC_DRLK_2_9 : public TestCommandBridge { CHIP_ERROR TestThReadsNumberOfTotalUsersSupportedAttributeAndSavesForFutureUse_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster @@ -103094,8 +106027,8 @@ class Test_TC_DRLK_2_9 : public TestCommandBridge { CHIP_ERROR TestThSendsSetCredentialCommandToDut_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -103123,8 +106056,8 @@ class Test_TC_DRLK_2_9 : public TestCommandBridge { CHIP_ERROR TestThSendsGetCredentialStatusCommand_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetCredentialStatusParams alloc] init]; @@ -103154,8 +106087,8 @@ class Test_TC_DRLK_2_9 : public TestCommandBridge { CHIP_ERROR TestThSendsSetCredentialCommandToDut_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -103183,8 +106116,8 @@ class Test_TC_DRLK_2_9 : public TestCommandBridge { CHIP_ERROR TestThSendsSetCredentialCommandToDut_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -103212,8 +106145,8 @@ class Test_TC_DRLK_2_9 : public TestCommandBridge { CHIP_ERROR TestThSendsSetCredentialCommandToDut_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -103241,8 +106174,8 @@ class Test_TC_DRLK_2_9 : public TestCommandBridge { CHIP_ERROR TestThSendsSetCredentialCommandToDut_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -103270,8 +106203,8 @@ class Test_TC_DRLK_2_9 : public TestCommandBridge { CHIP_ERROR TestThSendsSetCredentialCommandToDut_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -103299,8 +106232,8 @@ class Test_TC_DRLK_2_9 : public TestCommandBridge { CHIP_ERROR TestThSendsClearCredentialCommandToDut_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterClearCredentialParams alloc] init]; @@ -103322,8 +106255,8 @@ class Test_TC_DRLK_2_9 : public TestCommandBridge { CHIP_ERROR TestThSendsSetCredentialCommandToDut_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -103351,8 +106284,8 @@ class Test_TC_DRLK_2_9 : public TestCommandBridge { CHIP_ERROR TestThSendsClearCredentialCommandToDut_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterClearCredentialParams alloc] init]; @@ -103374,8 +106307,8 @@ class Test_TC_DRLK_2_9 : public TestCommandBridge { CHIP_ERROR TestThSendsSetCredentialCommandToDut_12() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -103403,8 +106336,8 @@ class Test_TC_DRLK_2_9 : public TestCommandBridge { CHIP_ERROR TestThSendsClearCredentialCommandToDut_13() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterClearCredentialParams alloc] init]; @@ -103426,8 +106359,8 @@ class Test_TC_DRLK_2_9 : public TestCommandBridge { CHIP_ERROR TestThSendsGetCredentialStatusCommand_14() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterGetCredentialStatusParams alloc] init]; @@ -103455,8 +106388,8 @@ class Test_TC_DRLK_2_9 : public TestCommandBridge { CHIP_ERROR TestThSendsSetCredentialCommandToDut_15() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterSetCredentialParams alloc] init]; @@ -103484,8 +106417,8 @@ class Test_TC_DRLK_2_9 : public TestCommandBridge { CHIP_ERROR TestThSendsClearCredentialCommandToDut_16() { - MTRDevice * device = GetDevice("alpha"); - MTRTestDoorLock * cluster = [[MTRTestDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterDoorLock * cluster = [[MTRBaseClusterDoorLock alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRDoorLockClusterClearCredentialParams alloc] init]; @@ -103716,8 +106649,8 @@ class TestGroupsCluster : public TestCommandBridge { CHIP_ERROR TestViewGroup0Invalid_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGroups * cluster = [[MTRTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGroups * cluster = [[MTRBaseClusterGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRGroupsClusterViewGroupParams alloc] init]; @@ -103746,8 +106679,8 @@ class TestGroupsCluster : public TestCommandBridge { CHIP_ERROR TestViewFirstGroupNotFound_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGroups * cluster = [[MTRTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGroups * cluster = [[MTRBaseClusterGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRGroupsClusterViewGroupParams alloc] init]; @@ -103776,8 +106709,8 @@ class TestGroupsCluster : public TestCommandBridge { CHIP_ERROR TestAddFirstGroupNew_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGroups * cluster = [[MTRTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGroups * cluster = [[MTRBaseClusterGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRGroupsClusterAddGroupParams alloc] init]; @@ -103807,8 +106740,8 @@ class TestGroupsCluster : public TestCommandBridge { CHIP_ERROR TestViewFirstGroupNew_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGroups * cluster = [[MTRTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGroups * cluster = [[MTRBaseClusterGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRGroupsClusterViewGroupParams alloc] init]; @@ -103842,8 +106775,8 @@ class TestGroupsCluster : public TestCommandBridge { CHIP_ERROR TestViewSecondGroupNotFound_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGroups * cluster = [[MTRTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGroups * cluster = [[MTRBaseClusterGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRGroupsClusterViewGroupParams alloc] init]; @@ -103872,8 +106805,8 @@ class TestGroupsCluster : public TestCommandBridge { CHIP_ERROR TestGetGroupMembership1All_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGroups * cluster = [[MTRTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGroups * cluster = [[MTRBaseClusterGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRGroupsClusterGetGroupMembershipParams alloc] init]; @@ -103907,8 +106840,8 @@ class TestGroupsCluster : public TestCommandBridge { CHIP_ERROR TestViewGroup3NotFound_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGroups * cluster = [[MTRTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGroups * cluster = [[MTRBaseClusterGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRGroupsClusterViewGroupParams alloc] init]; @@ -103937,8 +106870,8 @@ class TestGroupsCluster : public TestCommandBridge { CHIP_ERROR TestViewFirstGroupExisting_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGroups * cluster = [[MTRTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGroups * cluster = [[MTRBaseClusterGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRGroupsClusterViewGroupParams alloc] init]; @@ -103972,8 +106905,8 @@ class TestGroupsCluster : public TestCommandBridge { CHIP_ERROR TestRemoveGroup0Invalid_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGroups * cluster = [[MTRTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGroups * cluster = [[MTRBaseClusterGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRGroupsClusterRemoveGroupParams alloc] init]; @@ -104002,8 +106935,8 @@ class TestGroupsCluster : public TestCommandBridge { CHIP_ERROR TestRemoveGroup4NotFound_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGroups * cluster = [[MTRTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGroups * cluster = [[MTRBaseClusterGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRGroupsClusterRemoveGroupParams alloc] init]; @@ -104032,8 +106965,8 @@ class TestGroupsCluster : public TestCommandBridge { CHIP_ERROR TestViewFirstGroupNotRemoved_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGroups * cluster = [[MTRTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGroups * cluster = [[MTRBaseClusterGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRGroupsClusterViewGroupParams alloc] init]; @@ -104067,8 +107000,8 @@ class TestGroupsCluster : public TestCommandBridge { CHIP_ERROR TestViewSecondGroupRemoved_12() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGroups * cluster = [[MTRTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGroups * cluster = [[MTRBaseClusterGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRGroupsClusterViewGroupParams alloc] init]; @@ -104097,8 +107030,8 @@ class TestGroupsCluster : public TestCommandBridge { CHIP_ERROR TestGetGroupMembership3_13() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGroups * cluster = [[MTRTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGroups * cluster = [[MTRBaseClusterGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRGroupsClusterGetGroupMembershipParams alloc] init]; @@ -104136,8 +107069,8 @@ class TestGroupsCluster : public TestCommandBridge { CHIP_ERROR TestRemoveAll_14() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGroups * cluster = [[MTRTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGroups * cluster = [[MTRBaseClusterGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster removeAllGroupsWithCompletionHandler:^(NSError * _Nullable err) { @@ -104153,8 +107086,8 @@ class TestGroupsCluster : public TestCommandBridge { CHIP_ERROR TestViewFirstGroupRemoved_15() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGroups * cluster = [[MTRTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGroups * cluster = [[MTRBaseClusterGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRGroupsClusterViewGroupParams alloc] init]; @@ -104183,8 +107116,8 @@ class TestGroupsCluster : public TestCommandBridge { CHIP_ERROR TestViewSecondGroupStillRemoved_16() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGroups * cluster = [[MTRTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGroups * cluster = [[MTRBaseClusterGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRGroupsClusterViewGroupParams alloc] init]; @@ -104213,8 +107146,8 @@ class TestGroupsCluster : public TestCommandBridge { CHIP_ERROR TestViewGroup3Removed_17() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGroups * cluster = [[MTRTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGroups * cluster = [[MTRBaseClusterGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRGroupsClusterViewGroupParams alloc] init]; @@ -104243,8 +107176,8 @@ class TestGroupsCluster : public TestCommandBridge { CHIP_ERROR TestGetGroupMembership4_18() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGroups * cluster = [[MTRTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGroups * cluster = [[MTRBaseClusterGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRGroupsClusterGetGroupMembershipParams alloc] init]; @@ -104506,10 +107439,10 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { CHIP_ERROR TestReadMaxGroupsPerFabric_1() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGroupKeyManagement * cluster = [[MTRTestGroupKeyManagement alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGroupKeyManagement * cluster = [[MTRBaseClusterGroupKeyManagement alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxGroupsPerFabricWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -104527,10 +107460,10 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { CHIP_ERROR TestReadMaxGroupKeysPerFabric_2() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGroupKeyManagement * cluster = [[MTRTestGroupKeyManagement alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGroupKeyManagement * cluster = [[MTRBaseClusterGroupKeyManagement alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster readAttributeMaxGroupKeysPerFabricWithCompletionHandler:^(NSNumber * _Nullable value, NSError * _Nullable err) { @@ -104551,8 +107484,8 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { CHIP_ERROR TestAddGroup1_3() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGroups * cluster = [[MTRTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGroups * cluster = [[MTRBaseClusterGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRGroupsClusterAddGroupParams alloc] init]; @@ -104582,8 +107515,8 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { CHIP_ERROR TestAddGroup2_4() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGroups * cluster = [[MTRTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGroups * cluster = [[MTRBaseClusterGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRGroupsClusterAddGroupParams alloc] init]; @@ -104613,10 +107546,10 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { CHIP_ERROR TestKeySetWrite1_5() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGroupKeyManagement * cluster = [[MTRTestGroupKeyManagement alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGroupKeyManagement * cluster = [[MTRBaseClusterGroupKeyManagement alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRGroupKeyManagementClusterKeySetWriteParams alloc] init]; @@ -104652,10 +107585,10 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { CHIP_ERROR TestKeySetWrite2_6() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGroupKeyManagement * cluster = [[MTRTestGroupKeyManagement alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGroupKeyManagement * cluster = [[MTRBaseClusterGroupKeyManagement alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRGroupKeyManagementClusterKeySetWriteParams alloc] init]; @@ -104691,10 +107624,10 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { CHIP_ERROR TestKeySetRead_7() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGroupKeyManagement * cluster = [[MTRTestGroupKeyManagement alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGroupKeyManagement * cluster = [[MTRBaseClusterGroupKeyManagement alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRGroupKeyManagementClusterKeySetReadParams alloc] init]; @@ -104741,10 +107674,10 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { CHIP_ERROR TestWriteGroupKeysInvalid_8() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGroupKeyManagement * cluster = [[MTRTestGroupKeyManagement alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGroupKeyManagement * cluster = [[MTRBaseClusterGroupKeyManagement alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id groupKeyMapArgument; @@ -104770,10 +107703,10 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { CHIP_ERROR TestWriteGroupKeys_9() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGroupKeyManagement * cluster = [[MTRTestGroupKeyManagement alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGroupKeyManagement * cluster = [[MTRBaseClusterGroupKeyManagement alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); id groupKeyMapArgument; @@ -104805,10 +107738,10 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { CHIP_ERROR TestReadGroupKeys_10() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGroupKeyManagement * cluster = [[MTRTestGroupKeyManagement alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGroupKeyManagement * cluster = [[MTRBaseClusterGroupKeyManagement alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); MTRReadParams * params = [[MTRReadParams alloc] init]; @@ -104845,10 +107778,10 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { CHIP_ERROR TestReadGroupTable_11() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGroupKeyManagement * cluster = [[MTRTestGroupKeyManagement alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGroupKeyManagement * cluster = [[MTRBaseClusterGroupKeyManagement alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); MTRReadParams * params = [[MTRReadParams alloc] init]; @@ -104886,10 +107819,10 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { CHIP_ERROR TestKeySetRemove1_12() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGroupKeyManagement * cluster = [[MTRTestGroupKeyManagement alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGroupKeyManagement * cluster = [[MTRBaseClusterGroupKeyManagement alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRGroupKeyManagementClusterKeySetRemoveParams alloc] init]; @@ -104908,10 +107841,10 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { CHIP_ERROR TestKeySetReadRemoved_13() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGroupKeyManagement * cluster = [[MTRTestGroupKeyManagement alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGroupKeyManagement * cluster = [[MTRBaseClusterGroupKeyManagement alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRGroupKeyManagementClusterKeySetReadParams alloc] init]; @@ -104930,10 +107863,10 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { CHIP_ERROR TestKeySetReadNotRemoved_14() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGroupKeyManagement * cluster = [[MTRTestGroupKeyManagement alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGroupKeyManagement * cluster = [[MTRBaseClusterGroupKeyManagement alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRGroupKeyManagementClusterKeySetReadParams alloc] init]; @@ -104980,8 +107913,8 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { CHIP_ERROR TestRemoveGroup1_15() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGroups * cluster = [[MTRTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGroups * cluster = [[MTRBaseClusterGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRGroupsClusterRemoveGroupParams alloc] init]; @@ -105010,10 +107943,10 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { CHIP_ERROR TestReadGroupTable2_16() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGroupKeyManagement * cluster = [[MTRTestGroupKeyManagement alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGroupKeyManagement * cluster = [[MTRBaseClusterGroupKeyManagement alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); MTRReadParams * params = [[MTRReadParams alloc] init]; @@ -105044,8 +107977,8 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { CHIP_ERROR TestRemoveAll_17() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGroups * cluster = [[MTRTestGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGroups * cluster = [[MTRBaseClusterGroups alloc] initWithDevice:device endpoint:1 queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); [cluster removeAllGroupsWithCompletionHandler:^(NSError * _Nullable err) { @@ -105061,10 +107994,10 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { CHIP_ERROR TestReadGroupTable3_18() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGroupKeyManagement * cluster = [[MTRTestGroupKeyManagement alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGroupKeyManagement * cluster = [[MTRBaseClusterGroupKeyManagement alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); MTRReadParams * params = [[MTRReadParams alloc] init]; @@ -105088,10 +108021,10 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { CHIP_ERROR TestKeySetRemove2_19() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGroupKeyManagement * cluster = [[MTRTestGroupKeyManagement alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGroupKeyManagement * cluster = [[MTRBaseClusterGroupKeyManagement alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRGroupKeyManagementClusterKeySetRemoveParams alloc] init]; @@ -105110,10 +108043,10 @@ class TestGroupKeyManagementCluster : public TestCommandBridge { CHIP_ERROR TestKeySetReadAlsoRemoved_20() { - MTRDevice * device = GetDevice("alpha"); - MTRTestGroupKeyManagement * cluster = [[MTRTestGroupKeyManagement alloc] initWithDevice:device - endpoint:0 - queue:mCallbackQueue]; + MTRBaseDevice * device = GetDevice("alpha"); + MTRBaseClusterGroupKeyManagement * cluster = [[MTRBaseClusterGroupKeyManagement alloc] initWithDevice:device + endpoint:0 + queue:mCallbackQueue]; VerifyOrReturnError(cluster != nil, CHIP_ERROR_INCORRECT_STATE); __auto_type * params = [[MTRGroupKeyManagementClusterKeySetReadParams alloc] init];