From d51d0073d2c10ddbb88526409df99e394126c072 Mon Sep 17 00:00:00 2001 From: Pankaj Garg Date: Tue, 12 Oct 2021 09:49:05 -0700 Subject: [PATCH] Use GetConnectedDevice in Darwin tests (#10403) --- .../Framework/CHIP/CHIPDeviceController.h | 1 - .../Framework/CHIP/CHIPDeviceController.mm | 25 - .../CHIP/templates/clusters-tests.zapt | 49 +- .../CHIP/templates/partials/test_cluster.zapt | 2 +- .../Framework/CHIPTests/CHIPClustersTests.m | 1583 +++++++++-------- 5 files changed, 840 insertions(+), 820 deletions(-) diff --git a/src/darwin/Framework/CHIP/CHIPDeviceController.h b/src/darwin/Framework/CHIP/CHIPDeviceController.h index 04cefbe896e21e..f218cb5ec49f6a 100644 --- a/src/darwin/Framework/CHIP/CHIPDeviceController.h +++ b/src/darwin/Framework/CHIP/CHIPDeviceController.h @@ -68,7 +68,6 @@ typedef void (^CHIPDeviceConnectionCallback)(CHIPDevice * _Nullable device, NSEr - (BOOL)getConnectedDevice:(uint64_t)deviceID queue:(dispatch_queue_t)queue completionHandler:(CHIPDeviceConnectionCallback)completionHandler; -- (nullable CHIPDevice *)getPairedDevice:(uint64_t)deviceID error:(NSError * __autoreleasing *)error; - (instancetype)init NS_UNAVAILABLE; + (instancetype)new NS_UNAVAILABLE; diff --git a/src/darwin/Framework/CHIP/CHIPDeviceController.mm b/src/darwin/Framework/CHIP/CHIPDeviceController.mm index ab8b08a882a2dc..b9c59a57fe67e7 100644 --- a/src/darwin/Framework/CHIP/CHIPDeviceController.mm +++ b/src/darwin/Framework/CHIP/CHIPDeviceController.mm @@ -451,31 +451,6 @@ - (BOOL)getConnectedDevice:(uint64_t)deviceID return YES; } -- (CHIPDevice *)getPairedDevice:(uint64_t)deviceID error:(NSError * __autoreleasing *)error -{ - __block CHIPDevice * chipDevice = nil; - __block CHIP_ERROR errorCode = CHIP_ERROR_INCORRECT_STATE; - if (![self isRunning]) { - [self checkForError:errorCode logMsg:kErrorNotRunning error:error]; - return chipDevice; - } - dispatch_sync(_chipWorkQueue, ^{ - chip::Controller::Device * device = nullptr; - - if ([self isRunning]) { - errorCode = self.cppCommissioner->GetDevice(deviceID, &device); - } - - if ([self checkForError:errorCode logMsg:kErrorGetPairedDevice error:error]) { - return; - } - - chipDevice = [[CHIPDevice alloc] initWithDevice:device]; - }); - - return chipDevice; -} - - (void)setListenPort:(uint16_t)port { _listenPort = port; diff --git a/src/darwin/Framework/CHIP/templates/clusters-tests.zapt b/src/darwin/Framework/CHIP/templates/clusters-tests.zapt index b5c3138569007f..b28b7c4fccb928 100644 --- a/src/darwin/Framework/CHIP/templates/clusters-tests.zapt +++ b/src/darwin/Framework/CHIP/templates/clusters-tests.zapt @@ -11,6 +11,8 @@ #import const uint16_t kPairingTimeoutInSeconds = 10; +const uint16_t kAddressResolveTimeoutInSeconds = 10; +const uint16_t kCASESetupTimeoutInSeconds = 30; const uint16_t kTimeoutInSeconds = 3; const uint64_t kDeviceId = 1; const uint16_t kDiscriminator = 3840; @@ -19,6 +21,10 @@ const uint16_t kRemotePort = 5540; const uint16_t kLocalPort = 5541; NSString * kAddress = @"::1"; +// This test suite reuses a device object to speed up the test process for CI. +// The following global variable holds the reference to the device object. +static CHIPDevice * mConnectedDevice; + // Test Util APIs void WaitForMs(XCTestExpectation * expectation, dispatch_queue_t queue, unsigned int ms) { @@ -27,17 +33,10 @@ void WaitForMs(XCTestExpectation * expectation, dispatch_queue_t queue, unsigned }); } -CHIPDevice * GetPairedDevice(uint64_t deviceId) +CHIPDevice * GetConnectedDevice() { - CHIPDeviceController * controller = [CHIPDeviceController sharedController]; - XCTAssertNotNil(controller); - - NSError * pairingError; - CHIPDevice * device = [controller getPairedDevice:deviceId error:&pairingError]; - XCTAssertEqual(pairingError.code, 0); - XCTAssertNotNil(device); - - return device; + XCTAssertNotNil(mConnectedDevice); + return mConnectedDevice; } @interface CHIPToolPairingDelegate : NSObject @@ -60,6 +59,13 @@ CHIPDevice * GetPairedDevice(uint64_t deviceId) [_expectation fulfill]; _expectation = nil; } + +- (void)onAddressUpdated:(NSError *)error +{ + XCTAssertEqual(error.code, 0); + [_expectation fulfill]; + _expectation = nil; +} @end @interface CHIPClustersTests : XCTestCase @@ -98,6 +104,23 @@ CHIPDevice * GetPairedDevice(uint64_t deviceId) XCTAssertEqual(error.code, 0); [self waitForExpectationsWithTimeout:kPairingTimeoutInSeconds handler:nil]; + + XCTestExpectation * addressExpectation = [self expectationWithDescription:@"Address Updated"]; + pairing.expectation = addressExpectation; + [controller updateDevice:kDeviceId fabricId:0]; + + [self waitForExpectationsWithTimeout:kAddressResolveTimeoutInSeconds handler:nil]; + + __block XCTestExpectation * connectionExpectation = [self expectationWithDescription:@"CASE established"]; + [controller getConnectedDevice:kDeviceId + queue:dispatch_get_main_queue() + completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { + XCTAssertEqual(error.code, 0); + [connectionExpectation fulfill]; + connectionExpectation = nil; + mConnectedDevice = device; + }]; + [self waitForExpectationsWithTimeout:kCASESetupTimeoutInSeconds handler:nil]; } - (void)testShutdownStack @@ -117,7 +140,7 @@ CHIPDevice * GetPairedDevice(uint64_t deviceId) { XCTestExpectation * expectation = [self expectationWithDescription:@"ReuseCHIPClusterObjectFirstCall"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -153,7 +176,7 @@ CHIPDevice * GetPairedDevice(uint64_t deviceId) { XCTestExpectation * expectation = [self expectationWithDescription:@"{{asUpperCamelCase parent.name}}ReadAttribute{{asUpperCamelCase name}}WithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIP{{asUpperCamelCase parent.name}} * cluster = [[CHIP{{asUpperCamelCase parent.name}} alloc] initWithDevice:device endpoint:{{asExpectedEndpointForCluster (asUpperCamelCase parent.name)}} queue:queue]; XCTAssertNotNil(cluster); @@ -172,7 +195,7 @@ CHIPDevice * GetPairedDevice(uint64_t deviceId) { XCTestExpectation * expectation = [self expectationWithDescription:@"{{asUpperCamelCase parent.name}}WriteAttribute{{asUpperCamelCase name}}WithValue"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIP{{asUpperCamelCase parent.name}} * cluster = [[CHIP{{asUpperCamelCase parent.name}} alloc] initWithDevice:device endpoint:{{asExpectedEndpointForCluster (asUpperCamelCase parent.name)}} queue:queue]; XCTAssertNotNil(cluster); diff --git a/src/darwin/Framework/CHIP/templates/partials/test_cluster.zapt b/src/darwin/Framework/CHIP/templates/partials/test_cluster.zapt index 682d6fc0de748c..e2ed9089303b94 100644 --- a/src/darwin/Framework/CHIP/templates/partials/test_cluster.zapt +++ b/src/darwin/Framework/CHIP/templates/partials/test_cluster.zapt @@ -13,7 +13,7 @@ bool testSendCluster{{parent.filename}}_{{asTestIndex index}}_{{asUpperCamelCase dispatch_queue_t queue = dispatch_get_main_queue(); {{command}}(expectation, queue{{#chip_tests_item_parameters}}, {{definedValue}}{{/chip_tests_item_parameters}}); {{else}} - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTest{{asUpperCamelCase cluster}} * cluster = [[CHIPTest{{asUpperCamelCase cluster}} alloc] initWithDevice:device endpoint:{{endpoint}} queue:queue]; XCTAssertNotNil(cluster); diff --git a/src/darwin/Framework/CHIPTests/CHIPClustersTests.m b/src/darwin/Framework/CHIPTests/CHIPClustersTests.m index b48787b9a25dd9..c8fbb9527db2cd 100644 --- a/src/darwin/Framework/CHIPTests/CHIPClustersTests.m +++ b/src/darwin/Framework/CHIPTests/CHIPClustersTests.m @@ -28,6 +28,8 @@ #import const uint16_t kPairingTimeoutInSeconds = 10; +const uint16_t kAddressResolveTimeoutInSeconds = 10; +const uint16_t kCASESetupTimeoutInSeconds = 30; const uint16_t kTimeoutInSeconds = 3; const uint64_t kDeviceId = 1; const uint16_t kDiscriminator = 3840; @@ -36,6 +38,10 @@ const uint16_t kLocalPort = 5541; NSString * kAddress = @"::1"; +// This test suite reuses a device object to speed up the test process for CI. +// The following global variable holds the reference to the device object. +static CHIPDevice * mConnectedDevice; + // Test Util APIs void WaitForMs(XCTestExpectation * expectation, dispatch_queue_t queue, unsigned int ms) { @@ -44,17 +50,10 @@ void WaitForMs(XCTestExpectation * expectation, dispatch_queue_t queue, unsigned }); } -CHIPDevice * GetPairedDevice(uint64_t deviceId) +CHIPDevice * GetConnectedDevice() { - CHIPDeviceController * controller = [CHIPDeviceController sharedController]; - XCTAssertNotNil(controller); - - NSError * pairingError; - CHIPDevice * device = [controller getPairedDevice:deviceId error:&pairingError]; - XCTAssertEqual(pairingError.code, 0); - XCTAssertNotNil(device); - - return device; + XCTAssertNotNil(mConnectedDevice); + return mConnectedDevice; } @interface CHIPToolPairingDelegate : NSObject @@ -77,6 +76,13 @@ - (void)onPairingComplete:(NSError *)error [_expectation fulfill]; _expectation = nil; } + +- (void)onAddressUpdated:(NSError *)error +{ + XCTAssertEqual(error.code, 0); + [_expectation fulfill]; + _expectation = nil; +} @end @interface CHIPClustersTests : XCTestCase @@ -116,6 +122,23 @@ - (void)testInitStack XCTAssertEqual(error.code, 0); [self waitForExpectationsWithTimeout:kPairingTimeoutInSeconds handler:nil]; + + XCTestExpectation * addressExpectation = [self expectationWithDescription:@"Address Updated"]; + pairing.expectation = addressExpectation; + [controller updateDevice:kDeviceId fabricId:0]; + + [self waitForExpectationsWithTimeout:kAddressResolveTimeoutInSeconds handler:nil]; + + __block XCTestExpectation * connectionExpectation = [self expectationWithDescription:@"CASE established"]; + [controller getConnectedDevice:kDeviceId + queue:dispatch_get_main_queue() + completionHandler:^(CHIPDevice * _Nullable device, NSError * _Nullable error) { + XCTAssertEqual(error.code, 0); + [connectionExpectation fulfill]; + connectionExpectation = nil; + mConnectedDevice = device; + }]; + [self waitForExpectationsWithTimeout:kCASESetupTimeoutInSeconds handler:nil]; } - (void)testShutdownStack @@ -135,7 +158,7 @@ - (void)testReuseChipClusterObject { XCTestExpectation * expectation = [self expectationWithDescription:@"ReuseCHIPClusterObjectFirstCall"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestCluster * cluster = [[CHIPTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -165,7 +188,7 @@ - (void)testSendClusterTestCluster_000000_Test { XCTestExpectation * expectation = [self expectationWithDescription:@"Send Test Command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -184,7 +207,7 @@ - (void)testSendClusterTestCluster_000001_TestNotHandled { XCTestExpectation * expectation = [self expectationWithDescription:@"Send Test Not Handled Command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -202,7 +225,7 @@ - (void)testSendClusterTestCluster_000002_TestSpecific { XCTestExpectation * expectation = [self expectationWithDescription:@"Send Test Specific Command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -223,7 +246,7 @@ - (void)testSendClusterTestCluster_000003_TestAddArguments { XCTestExpectation * expectation = [self expectationWithDescription:@"Send Test Add Arguments Command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -248,7 +271,7 @@ - (void)testSendClusterTestCluster_000004_TestAddArguments { XCTestExpectation * expectation = [self expectationWithDescription:@"Send failing Test Add Arguments Command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -270,7 +293,7 @@ - (void)testSendClusterTestCluster_000005_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute BOOLEAN Default Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -291,7 +314,7 @@ - (void)testSendClusterTestCluster_000006_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute BOOLEAN True"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -312,7 +335,7 @@ - (void)testSendClusterTestCluster_000007_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute BOOLEAN True"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -333,7 +356,7 @@ - (void)testSendClusterTestCluster_000008_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute BOOLEAN False"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -354,7 +377,7 @@ - (void)testSendClusterTestCluster_000009_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute BOOLEAN False"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -375,7 +398,7 @@ - (void)testSendClusterTestCluster_000010_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute BITMAP8 Default Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -396,7 +419,7 @@ - (void)testSendClusterTestCluster_000011_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute BITMAP8 Max Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -417,7 +440,7 @@ - (void)testSendClusterTestCluster_000012_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute BITMAP8 Max Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -438,7 +461,7 @@ - (void)testSendClusterTestCluster_000013_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute BITMAP8 Min Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -459,7 +482,7 @@ - (void)testSendClusterTestCluster_000014_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute BITMAP8 Min Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -480,7 +503,7 @@ - (void)testSendClusterTestCluster_000015_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute BITMAP16 Default Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -501,7 +524,7 @@ - (void)testSendClusterTestCluster_000016_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute BITMAP16 Max Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -522,7 +545,7 @@ - (void)testSendClusterTestCluster_000017_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute BITMAP16 Max Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -543,7 +566,7 @@ - (void)testSendClusterTestCluster_000018_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute BITMAP16 Min Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -564,7 +587,7 @@ - (void)testSendClusterTestCluster_000019_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute BITMAP16 Min Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -585,7 +608,7 @@ - (void)testSendClusterTestCluster_000020_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute BITMAP32 Default Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -606,7 +629,7 @@ - (void)testSendClusterTestCluster_000021_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute BITMAP32 Max Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -627,7 +650,7 @@ - (void)testSendClusterTestCluster_000022_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute BITMAP32 Max Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -648,7 +671,7 @@ - (void)testSendClusterTestCluster_000023_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute BITMAP32 Min Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -669,7 +692,7 @@ - (void)testSendClusterTestCluster_000024_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute BITMAP32 Min Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -690,7 +713,7 @@ - (void)testSendClusterTestCluster_000025_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute BITMAP64 Default Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -711,7 +734,7 @@ - (void)testSendClusterTestCluster_000026_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute BITMAP64 Max Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -732,7 +755,7 @@ - (void)testSendClusterTestCluster_000027_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute BITMAP64 Max Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -753,7 +776,7 @@ - (void)testSendClusterTestCluster_000028_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute BITMAP64 Min Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -774,7 +797,7 @@ - (void)testSendClusterTestCluster_000029_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute BITMAP64 Min Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -795,7 +818,7 @@ - (void)testSendClusterTestCluster_000030_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT8U Default Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -816,7 +839,7 @@ - (void)testSendClusterTestCluster_000031_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT8U Max Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -837,7 +860,7 @@ - (void)testSendClusterTestCluster_000032_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT8U Max Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -858,7 +881,7 @@ - (void)testSendClusterTestCluster_000033_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT8U Min Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -879,7 +902,7 @@ - (void)testSendClusterTestCluster_000034_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT8U Min Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -900,7 +923,7 @@ - (void)testSendClusterTestCluster_000035_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT16U Default Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -921,7 +944,7 @@ - (void)testSendClusterTestCluster_000036_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT16U Max Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -942,7 +965,7 @@ - (void)testSendClusterTestCluster_000037_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT16U Max Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -963,7 +986,7 @@ - (void)testSendClusterTestCluster_000038_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT16U Min Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -984,7 +1007,7 @@ - (void)testSendClusterTestCluster_000039_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT16U Min Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1005,7 +1028,7 @@ - (void)testSendClusterTestCluster_000040_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT32U Default Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1026,7 +1049,7 @@ - (void)testSendClusterTestCluster_000041_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT32U Max Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1047,7 +1070,7 @@ - (void)testSendClusterTestCluster_000042_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT32U Max Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1068,7 +1091,7 @@ - (void)testSendClusterTestCluster_000043_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT32U Min Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1089,7 +1112,7 @@ - (void)testSendClusterTestCluster_000044_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT32U Min Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1110,7 +1133,7 @@ - (void)testSendClusterTestCluster_000045_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT64U Default Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1131,7 +1154,7 @@ - (void)testSendClusterTestCluster_000046_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT64U Max Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1152,7 +1175,7 @@ - (void)testSendClusterTestCluster_000047_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT64U Max Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1173,7 +1196,7 @@ - (void)testSendClusterTestCluster_000048_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT64U Min Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1194,7 +1217,7 @@ - (void)testSendClusterTestCluster_000049_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT64U Min Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1215,7 +1238,7 @@ - (void)testSendClusterTestCluster_000050_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT8S Default Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1236,7 +1259,7 @@ - (void)testSendClusterTestCluster_000051_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT8S Max Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1257,7 +1280,7 @@ - (void)testSendClusterTestCluster_000052_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT8S Max Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1278,7 +1301,7 @@ - (void)testSendClusterTestCluster_000053_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT8S Min Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1299,7 +1322,7 @@ - (void)testSendClusterTestCluster_000054_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT8S Min Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1320,7 +1343,7 @@ - (void)testSendClusterTestCluster_000055_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT8S Default Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1341,7 +1364,7 @@ - (void)testSendClusterTestCluster_000056_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT8S Default Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1362,7 +1385,7 @@ - (void)testSendClusterTestCluster_000057_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT16S Default Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1383,7 +1406,7 @@ - (void)testSendClusterTestCluster_000058_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT16S Max Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1404,7 +1427,7 @@ - (void)testSendClusterTestCluster_000059_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT16S Max Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1425,7 +1448,7 @@ - (void)testSendClusterTestCluster_000060_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT16S Min Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1446,7 +1469,7 @@ - (void)testSendClusterTestCluster_000061_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT16S Min Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1467,7 +1490,7 @@ - (void)testSendClusterTestCluster_000062_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT16S Default Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1488,7 +1511,7 @@ - (void)testSendClusterTestCluster_000063_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT16S Default Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1509,7 +1532,7 @@ - (void)testSendClusterTestCluster_000064_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT32S Default Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1530,7 +1553,7 @@ - (void)testSendClusterTestCluster_000065_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT32S Max Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1551,7 +1574,7 @@ - (void)testSendClusterTestCluster_000066_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT32S Max Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1572,7 +1595,7 @@ - (void)testSendClusterTestCluster_000067_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT32S Min Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1593,7 +1616,7 @@ - (void)testSendClusterTestCluster_000068_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT32S Min Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1614,7 +1637,7 @@ - (void)testSendClusterTestCluster_000069_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT32S Default Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1635,7 +1658,7 @@ - (void)testSendClusterTestCluster_000070_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT32S Default Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1656,7 +1679,7 @@ - (void)testSendClusterTestCluster_000071_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT64S Default Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1677,7 +1700,7 @@ - (void)testSendClusterTestCluster_000072_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT64S Max Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1698,7 +1721,7 @@ - (void)testSendClusterTestCluster_000073_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT64S Max Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1719,7 +1742,7 @@ - (void)testSendClusterTestCluster_000074_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT64S Min Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1740,7 +1763,7 @@ - (void)testSendClusterTestCluster_000075_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT64S Min Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1761,7 +1784,7 @@ - (void)testSendClusterTestCluster_000076_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT64S Default Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1782,7 +1805,7 @@ - (void)testSendClusterTestCluster_000077_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT64S Default Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1803,7 +1826,7 @@ - (void)testSendClusterTestCluster_000078_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute ENUM8 Default Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1824,7 +1847,7 @@ - (void)testSendClusterTestCluster_000079_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute ENUM8 Max Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1845,7 +1868,7 @@ - (void)testSendClusterTestCluster_000080_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute ENUM8 Max Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1866,7 +1889,7 @@ - (void)testSendClusterTestCluster_000081_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute ENUM8 Min Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1887,7 +1910,7 @@ - (void)testSendClusterTestCluster_000082_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute ENUM8 Min Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1908,7 +1931,7 @@ - (void)testSendClusterTestCluster_000083_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute ENUM16 Default Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1929,7 +1952,7 @@ - (void)testSendClusterTestCluster_000084_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute ENUM16 Max Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1950,7 +1973,7 @@ - (void)testSendClusterTestCluster_000085_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute ENUM16 Max Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1971,7 +1994,7 @@ - (void)testSendClusterTestCluster_000086_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute ENUM16 Min Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -1992,7 +2015,7 @@ - (void)testSendClusterTestCluster_000087_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute ENUM16 Min Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -2013,7 +2036,7 @@ - (void)testSendClusterTestCluster_000088_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute OCTET_STRING Default Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -2036,7 +2059,7 @@ - (void)testSendClusterTestCluster_000089_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute OCTET_STRING"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -2058,7 +2081,7 @@ - (void)testSendClusterTestCluster_000090_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute OCTET_STRING"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -2081,7 +2104,7 @@ - (void)testSendClusterTestCluster_000091_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute OCTET_STRING"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -2102,7 +2125,7 @@ - (void)testSendClusterTestCluster_000092_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute OCTET_STRING"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -2125,7 +2148,7 @@ - (void)testSendClusterTestCluster_000093_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute OCTET_STRING"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -2147,7 +2170,7 @@ - (void)testSendClusterTestCluster_000094_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute LONG_OCTET_STRING Default Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -2170,7 +2193,7 @@ - (void)testSendClusterTestCluster_000095_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute LONG_OCTET_STRING"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -2195,7 +2218,7 @@ - (void)testSendClusterTestCluster_000096_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute LONG_OCTET_STRING"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -2221,7 +2244,7 @@ - (void)testSendClusterTestCluster_000097_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute LONG_OCTET_STRING"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -2243,7 +2266,7 @@ - (void)testSendClusterTestCluster_000098_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute CHAR_STRING Default Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -2265,7 +2288,7 @@ - (void)testSendClusterTestCluster_000099_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute CHAR_STRING"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -2286,7 +2309,7 @@ - (void)testSendClusterTestCluster_000100_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute CHAR_STRING - Value too long"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -2306,7 +2329,7 @@ - (void)testSendClusterTestCluster_000101_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute CHAR_STRING - Empty"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -2327,7 +2350,7 @@ - (void)testSendClusterTestCluster_000102_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute LONG_CHAR_STRING Default Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -2349,7 +2372,7 @@ - (void)testSendClusterTestCluster_000103_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute LONG_CHAR_STRING"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -2373,7 +2396,7 @@ - (void)testSendClusterTestCluster_000104_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute LONG_CHAR_STRING"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -2398,7 +2421,7 @@ - (void)testSendClusterTestCluster_000105_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute LONG_CHAR_STRING"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -2419,7 +2442,7 @@ - (void)testSendClusterTestCluster_000106_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute LIST"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -2440,7 +2463,7 @@ - (void)testSendClusterTestCluster_000107_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute LIST_OCTET_STRING"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -2461,7 +2484,7 @@ - (void)testSendClusterTestCluster_000108_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute LIST_STRUCT_OCTET_STRING"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -2482,7 +2505,7 @@ - (void)testSendClusterTestCluster_000109_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute EPOCH_US Default Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -2503,7 +2526,7 @@ - (void)testSendClusterTestCluster_000110_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute EPOCH_US Max Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -2524,7 +2547,7 @@ - (void)testSendClusterTestCluster_000111_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute EPOCH_US Max Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -2545,7 +2568,7 @@ - (void)testSendClusterTestCluster_000112_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute EPOCH_US Min Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -2566,7 +2589,7 @@ - (void)testSendClusterTestCluster_000113_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute EPOCH_US Min Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -2587,7 +2610,7 @@ - (void)testSendClusterTestCluster_000114_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute EPOCH_S Default Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -2608,7 +2631,7 @@ - (void)testSendClusterTestCluster_000115_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute EPOCH_S Max Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -2629,7 +2652,7 @@ - (void)testSendClusterTestCluster_000116_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute EPOCH_S Max Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -2650,7 +2673,7 @@ - (void)testSendClusterTestCluster_000117_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute EPOCH_S Min Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -2671,7 +2694,7 @@ - (void)testSendClusterTestCluster_000118_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute EPOCH_S Min Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -2692,7 +2715,7 @@ - (void)testSendClusterTestCluster_000119_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute UNSUPPORTED"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -2718,7 +2741,7 @@ - (void)testSendClusterTestCluster_000120_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Writeattribute UNSUPPORTED"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -2744,7 +2767,7 @@ - (void)testSendClusterTestCluster_000121_Test { XCTestExpectation * expectation = [self expectationWithDescription:@"Send Test Command to unsupported endpoint"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:200 queue:queue]; XCTAssertNotNil(cluster); @@ -2763,7 +2786,7 @@ - (void)testSendClusterTestConstraints_000000_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Write attribute INT32U Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -2784,7 +2807,7 @@ - (void)testSendClusterTestConstraints_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT32U Value MinValue Constraints"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -2805,7 +2828,7 @@ - (void)testSendClusterTestConstraints_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT32U Value MaxValue Constraints"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -2826,7 +2849,7 @@ - (void)testSendClusterTestConstraints_000003_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read attribute INT32U Value NotValue Constraints"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTestCluster * cluster = [[CHIPTestTestCluster alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -2857,7 +2880,7 @@ - (void)testSendClusterTestSubscribe_OnOff_000000_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Set OnOff Attribute to false"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -2876,7 +2899,7 @@ - (void)testSendClusterTestSubscribe_OnOff_000000_Off - (void)testSendClusterTestSubscribe_OnOff_000001_WaitForReport { - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -2895,7 +2918,7 @@ - (void)testSendClusterTestSubscribe_OnOff_000002_SubscribeAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Subscribe OnOff Attribute"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -2918,7 +2941,7 @@ - (void)testSendClusterTestSubscribe_OnOff_000003_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn On the light to see attribute change"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -2937,7 +2960,7 @@ - (void)testSendClusterTestSubscribe_OnOff_000004_WaitForReport { XCTestExpectation * expectation = [self expectationWithDescription:@"Check for attribute report"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -2958,7 +2981,7 @@ - (void)testSendClusterTestSubscribe_OnOff_000005_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn Off the light to see attribute change"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -2977,7 +3000,7 @@ - (void)testSendClusterTestSubscribe_OnOff_000006_WaitForReport { XCTestExpectation * expectation = [self expectationWithDescription:@"Check for attribute report"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -2999,7 +3022,7 @@ - (void)testSendClusterTest_TC_OO_1_1_000000_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the global attribute: ClusterRevision"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -3021,7 +3044,7 @@ - (void)testSendClusterTest_TC_OO_1_1_000001_WriteAttribute XCTestExpectation * expectation = [self expectationWithDescription:@"write the default values to mandatory global attribute: ClusterRevision"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -3042,7 +3065,7 @@ - (void)testSendClusterTest_TC_OO_1_1_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"reads back global attribute: ClusterRevision"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -3063,7 +3086,7 @@ - (void)testSendClusterTest_TC_OO_1_1_000003_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the optional global attribute: FeatureMap"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -3085,7 +3108,7 @@ - (void)testSendClusterTest_TC_OO_1_1_000004_WriteAttribute XCTestExpectation * expectation = [self expectationWithDescription:@"write the default values to optional global attribute: FeatureMap"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -3105,7 +3128,7 @@ - (void)testSendClusterTest_TC_OO_1_1_000005_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"reads back optional global attribute: FeatureMap"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -3127,7 +3150,7 @@ - (void)testSendClusterTest_TC_OO_2_1_000000_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the mandatory attribute: OnOff"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -3148,7 +3171,7 @@ - (void)testSendClusterTest_TC_OO_2_1_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"reads back mandatory attribute: OnOff"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -3169,7 +3192,7 @@ - (void)testSendClusterTest_TC_OO_2_1_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read LT attribute: GlobalSceneControl"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -3190,7 +3213,7 @@ - (void)testSendClusterTest_TC_OO_2_1_000003_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read LT attribute: OnTime"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -3211,7 +3234,7 @@ - (void)testSendClusterTest_TC_OO_2_1_000004_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read LT attribute: OffWaitTime"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -3232,7 +3255,7 @@ - (void)testSendClusterTest_TC_OO_2_1_000005_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read LT attribute: StartUpOnOff"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -3253,7 +3276,7 @@ - (void)testSendClusterTest_TC_OO_2_1_000006_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"write the default value to LT attribute: OnTime"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -3274,7 +3297,7 @@ - (void)testSendClusterTest_TC_OO_2_1_000007_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"write the default value to LT attribute: OffWaitTime"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -3295,7 +3318,7 @@ - (void)testSendClusterTest_TC_OO_2_1_000008_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"write the default value to LT attribute: StartUpOnOff"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -3316,7 +3339,7 @@ - (void)testSendClusterTest_TC_OO_2_1_000009_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"reads back LT attribute: OnTime"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -3337,7 +3360,7 @@ - (void)testSendClusterTest_TC_OO_2_1_000010_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"reads back LT attribute: OffWaitTime"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -3358,7 +3381,7 @@ - (void)testSendClusterTest_TC_OO_2_1_000011_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"reads back LT attribute: StartUpOnOff"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -3380,7 +3403,7 @@ - (void)testSendClusterTest_TC_OO_2_2_000000_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Send Off Command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -3399,7 +3422,7 @@ - (void)testSendClusterTest_TC_OO_2_2_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is false after off command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -3420,7 +3443,7 @@ - (void)testSendClusterTest_TC_OO_2_2_000002_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Send On Command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -3439,7 +3462,7 @@ - (void)testSendClusterTest_TC_OO_2_2_000003_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is true after on command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -3460,7 +3483,7 @@ - (void)testSendClusterTest_TC_OO_2_2_000004_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Send Off Command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -3479,7 +3502,7 @@ - (void)testSendClusterTest_TC_OO_2_2_000005_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is false after off command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -3500,7 +3523,7 @@ - (void)testSendClusterTest_TC_OO_2_2_000006_Toggle { XCTestExpectation * expectation = [self expectationWithDescription:@"Send Toggle Command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -3520,7 +3543,7 @@ - (void)testSendClusterTest_TC_OO_2_2_000007_ReadAttribute XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is true after toggle command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -3541,7 +3564,7 @@ - (void)testSendClusterTest_TC_OO_2_2_000008_Toggle { XCTestExpectation * expectation = [self expectationWithDescription:@"Send Toggle Command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -3561,7 +3584,7 @@ - (void)testSendClusterTest_TC_OO_2_2_000009_ReadAttribute XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is false after toggle command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -3582,7 +3605,7 @@ - (void)testSendClusterTest_TC_OO_2_2_000010_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Send On Command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -3601,7 +3624,7 @@ - (void)testSendClusterTest_TC_OO_2_2_000011_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is true after on command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -3622,7 +3645,7 @@ - (void)testSendClusterTest_TC_OO_2_2_000012_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Send Off Command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -3641,7 +3664,7 @@ - (void)testSendClusterTest_TC_OO_2_2_000013_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is false after off command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -3663,7 +3686,7 @@ - (void)testSendClusterTest_TC_DM_1_1_000000_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Query Interaction Model Version"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -3682,7 +3705,7 @@ - (void)testSendClusterTest_TC_DM_1_1_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Query Vendor Name"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -3703,7 +3726,7 @@ - (void)testSendClusterTest_TC_DM_1_1_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Query VendorID"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -3722,7 +3745,7 @@ - (void)testSendClusterTest_TC_DM_1_1_000003_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Query Product Name"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -3743,7 +3766,7 @@ - (void)testSendClusterTest_TC_DM_1_1_000004_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Query ProductID"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -3762,7 +3785,7 @@ - (void)testSendClusterTest_TC_DM_1_1_000005_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Query User Label"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -3783,7 +3806,7 @@ - (void)testSendClusterTest_TC_DM_1_1_000006_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Query User Location"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -3804,7 +3827,7 @@ - (void)testSendClusterTest_TC_DM_1_1_000007_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Query HardwareVersion"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -3823,7 +3846,7 @@ - (void)testSendClusterTest_TC_DM_1_1_000008_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Query HardwareVersionString"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -3845,7 +3868,7 @@ - (void)testSendClusterTest_TC_DM_1_1_000009_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Query SoftwareVersion"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -3864,7 +3887,7 @@ - (void)testSendClusterTest_TC_DM_1_1_000010_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Query SoftwareVersionString"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -3886,7 +3909,7 @@ - (void)testSendClusterTest_TC_DM_1_1_000011_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Query ManufacturingDate"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -3913,7 +3936,7 @@ - (void)testSendClusterTest_TC_DM_1_1_000012_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Query PartNumber"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -3939,7 +3962,7 @@ - (void)testSendClusterTest_TC_DM_1_1_000013_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Query ProductURL"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -3965,7 +3988,7 @@ - (void)testSendClusterTest_TC_DM_1_1_000014_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Query ProductLabel"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -3991,7 +4014,7 @@ - (void)testSendClusterTest_TC_DM_1_1_000015_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Query SerialNumber"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -4017,7 +4040,7 @@ - (void)testSendClusterTest_TC_DM_1_1_000016_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Query LocalConfigDisabled"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -4041,7 +4064,7 @@ - (void)testSendClusterTest_TC_DM_1_1_000017_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Query Reachable"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestBasic * cluster = [[CHIPTestBasic alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -4066,7 +4089,7 @@ - (void)testSendClusterTest_TC_WNCV_1_1_000000_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the global attribute: ClusterRevision"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -4088,7 +4111,7 @@ - (void)testSendClusterTest_TC_WNCV_1_1_000001_WriteAttribute XCTestExpectation * expectation = [self expectationWithDescription:@"write the default value to mandatory global attribute: ClusterRevision"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -4109,7 +4132,7 @@ - (void)testSendClusterTest_TC_WNCV_1_1_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"reads back global attribute: ClusterRevision"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -4131,7 +4154,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000000_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the RO mandatory attribute default: Type"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -4152,7 +4175,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"reads back the RO mandatory attribute: Type"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -4173,7 +4196,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the RO mandatory attribute default: ConfigStatus"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -4194,7 +4217,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000003_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"reads back the RO mandatory attribute: ConfigStatus"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -4216,7 +4239,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000004_ReadAttribute XCTestExpectation * expectation = [self expectationWithDescription:@"read the RO mandatory attribute default: OperationalStatus"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -4237,7 +4260,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000005_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"reads back the RO mandatory attribute: OperationalStatus"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -4258,7 +4281,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000006_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the RO mandatory attribute default: EndProductType"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -4279,7 +4302,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000007_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"reads back the RO mandatory attribute: EndProductType"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -4300,7 +4323,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000008_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the RW mandatory attribute default: Mode"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -4321,7 +4344,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000009_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"write a value into the RW mandatory attribute:: Mode"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -4342,7 +4365,7 @@ - (void)testSendClusterTest_TC_WNCV_2_1_000010_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"reads back the RW mandatory attribute: Mode"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -4364,7 +4387,7 @@ - (void)testSendClusterTest_TC_WNCV_3_1_000000_DownOrClose { XCTestExpectation * expectation = [self expectationWithDescription:@"1a: TH adjusts the the DUT to a non-open position"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -4383,7 +4406,7 @@ - (void)testSendClusterTest_TC_WNCV_3_1_000001_UpOrOpen { XCTestExpectation * expectation = [self expectationWithDescription:@"2a: TH sends UpOrOpen command to DUT"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -4402,7 +4425,7 @@ - (void)testSendClusterTest_TC_WNCV_3_1_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3a: TH reads OperationalStatus attribute from DUT"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -4424,7 +4447,7 @@ - (void)testSendClusterTest_TC_WNCV_3_2_000000_UpOrOpen { XCTestExpectation * expectation = [self expectationWithDescription:@"1a: TH adjusts the the DUT to a non-closed position"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -4443,7 +4466,7 @@ - (void)testSendClusterTest_TC_WNCV_3_2_000001_DownOrClose { XCTestExpectation * expectation = [self expectationWithDescription:@"2a: TH sends DownOrClose command to DUT"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -4462,7 +4485,7 @@ - (void)testSendClusterTest_TC_WNCV_3_2_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"3a: TH reads OperationalStatus attribute from DUT"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -4484,7 +4507,7 @@ - (void)testSendClusterTest_TC_WNCV_3_3_000000_UpOrOpen { XCTestExpectation * expectation = [self expectationWithDescription:@"1a: TH adjusts the the DUT to a non-open position"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -4503,7 +4526,7 @@ - (void)testSendClusterTest_TC_WNCV_3_3_000001_StopMotion { XCTestExpectation * expectation = [self expectationWithDescription:@"2a: TH sends StopMotion command to DUT"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -4522,7 +4545,7 @@ - (void)testSendClusterTest_TC_WNCV_3_3_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"2b: TH reads OperationalStatus attribute from DUT"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestWindowCovering * cluster = [[CHIPTestWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -4544,7 +4567,7 @@ - (void)testSendClusterTest_TC_BI_1_1_000000_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the global attribute: ClusterRevision"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestBinaryInputBasic * cluster = [[CHIPTestBinaryInputBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -4566,7 +4589,7 @@ - (void)testSendClusterTest_TC_BI_1_1_000001_WriteAttribute XCTestExpectation * expectation = [self expectationWithDescription:@"write the default values to mandatory global attribute: ClusterRevision"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestBinaryInputBasic * cluster = [[CHIPTestBinaryInputBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -4587,7 +4610,7 @@ - (void)testSendClusterTest_TC_BI_1_1_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"reads back global attribute: ClusterRevision"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestBinaryInputBasic * cluster = [[CHIPTestBinaryInputBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -4610,7 +4633,7 @@ - (void)testSendClusterTest_TC_FLW_1_1_000000_WriteAttribute XCTestExpectation * expectation = [self expectationWithDescription:@"write the default values to mandatory global attribute: ClusterRevision"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestFlowMeasurement * cluster = [[CHIPTestFlowMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -4632,7 +4655,7 @@ - (void)testSendClusterTest_TC_TM_1_1_000000_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the global attribute: ClusterRevision"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTemperatureMeasurement * cluster = [[CHIPTestTemperatureMeasurement alloc] initWithDevice:device endpoint:1 @@ -4656,7 +4679,7 @@ - (void)testSendClusterTest_TC_TM_1_1_000001_WriteAttribute XCTestExpectation * expectation = [self expectationWithDescription:@"write the default values to mandatory global attribute: ClusterRevision"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTemperatureMeasurement * cluster = [[CHIPTestTemperatureMeasurement alloc] initWithDevice:device endpoint:1 @@ -4679,7 +4702,7 @@ - (void)testSendClusterTest_TC_TM_1_1_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"reads back global attribute: ClusterRevision"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTemperatureMeasurement * cluster = [[CHIPTestTemperatureMeasurement alloc] initWithDevice:device endpoint:1 @@ -4703,7 +4726,7 @@ - (void)testSendClusterTest_TC_OCC_1_1_000000_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the global attribute: ClusterRevision"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOccupancySensing * cluster = [[CHIPTestOccupancySensing alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -4725,7 +4748,7 @@ - (void)testSendClusterTest_TC_OCC_1_1_000001_WriteAttribute XCTestExpectation * expectation = [self expectationWithDescription:@"write the default values to mandatory global attribute: ClusterRevision"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOccupancySensing * cluster = [[CHIPTestOccupancySensing alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -4747,7 +4770,7 @@ - (void)testSendClusterTestOperationalCredentialsCluster_000000_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read number of supported fabrics"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOperationalCredentials * cluster = [[CHIPTestOperationalCredentials alloc] initWithDevice:device endpoint:0 @@ -4770,7 +4793,7 @@ - (void)testSendClusterTestOperationalCredentialsCluster_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Read number of commissioned fabrics"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOperationalCredentials * cluster = [[CHIPTestOperationalCredentials alloc] initWithDevice:device endpoint:0 @@ -4795,7 +4818,7 @@ - (void)testSendClusterTest_TC_LVL_1_1_000000_WriteAttribute XCTestExpectation * expectation = [self expectationWithDescription:@"write the default values to mandatory global attribute: ClusterRevision"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestLevelControl * cluster = [[CHIPTestLevelControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -4818,7 +4841,7 @@ - (void)testSendClusterTest_TC_CC_1_1_000000_WriteAttribute XCTestExpectation * expectation = [self expectationWithDescription:@"write the default values to mandatory global attribute: ClusterRevision"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -4841,7 +4864,7 @@ - (void)testSendClusterTest_TC_RH_1_1_000000_WriteAttribute XCTestExpectation * expectation = [self expectationWithDescription:@"write the default values to mandatory global attribute: ClusterRevision"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestRelativeHumidityMeasurement * cluster = [[CHIPTestRelativeHumidityMeasurement alloc] initWithDevice:device endpoint:1 @@ -4866,7 +4889,7 @@ - (void)testSendClusterTest_TC_MC_1_1_000000_WriteAttribute XCTestExpectation * expectation = [self expectationWithDescription:@"write the default values to mandatory global attribute: ClusterRevision"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestRelativeHumidityMeasurement * cluster = [[CHIPTestRelativeHumidityMeasurement alloc] initWithDevice:device endpoint:1 @@ -4891,7 +4914,7 @@ - (void)testSendClusterTest_TC_TSTAT_1_1_000000_WriteAttribute XCTestExpectation * expectation = [self expectationWithDescription:@"write the default values to mandatory global attribute: ClusterRevision"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestThermostat * cluster = [[CHIPTestThermostat alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -4914,7 +4937,7 @@ - (void)testSendClusterTest_TC_PCC_1_1_000000_WriteAttribute XCTestExpectation * expectation = [self expectationWithDescription:@"write the default values to mandatory global attribute: ClusterRevision"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 @@ -4939,7 +4962,7 @@ - (void)testSendClusterTest_TC_TSUIC_1_1_000000_WriteAttribute XCTestExpectation * expectation = [self expectationWithDescription:@"write the default values to mandatory global attribute: ClusterRevision"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestThermostatUserInterfaceConfiguration * cluster = [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:queue]; @@ -4962,7 +4985,7 @@ - (void)testSendClusterTest_TC_DIAGTH_1_1_000000_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the global attribute: ClusterRevision"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestThreadNetworkDiagnostics * cluster = [[CHIPTestThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 @@ -4986,7 +5009,7 @@ - (void)testSendClusterTest_TC_DIAGTH_1_1_000001_WriteAttribute XCTestExpectation * expectation = [self expectationWithDescription:@"write the default values to mandatory global attribute: ClusterRevision"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestThreadNetworkDiagnostics * cluster = [[CHIPTestThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 @@ -5009,7 +5032,7 @@ - (void)testSendClusterTest_TC_DIAGTH_1_1_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"reads back global attribute: ClusterRevision"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestThreadNetworkDiagnostics * cluster = [[CHIPTestThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 @@ -5033,7 +5056,7 @@ - (void)testSendClusterTest_TC_TM_2_1_000000_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the mandatory attribute: MeasuredValue"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestTemperatureMeasurement * cluster = [[CHIPTestTemperatureMeasurement alloc] initWithDevice:device endpoint:1 @@ -5055,7 +5078,7 @@ - (void)testSendClusterTest_TC_TSUIC_2_1_000000_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the mandatory attribute: TemperatureDisplayMode"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestThermostatUserInterfaceConfiguration * cluster = [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:queue]; @@ -5077,7 +5100,7 @@ - (void)testSendClusterTest_TC_TSUIC_2_1_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the mandatory attribute: TemperatureDisplayMode"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestThermostatUserInterfaceConfiguration * cluster = [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:queue]; @@ -5097,7 +5120,7 @@ - (void)testSendClusterTest_TC_TSUIC_2_1_000002_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"write to the mandatory attribute: TemperatureDisplayMode"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestThermostatUserInterfaceConfiguration * cluster = [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:queue]; @@ -5119,7 +5142,7 @@ - (void)testSendClusterTest_TC_TSUIC_2_1_000003_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the mandatory attribute: TemperatureDisplayMode"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestThermostatUserInterfaceConfiguration * cluster = [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:queue]; @@ -5141,7 +5164,7 @@ - (void)testSendClusterTest_TC_TSUIC_2_1_000004_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the mandatory attribute: TemperatureDisplayMode"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestThermostatUserInterfaceConfiguration * cluster = [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:queue]; @@ -5161,7 +5184,7 @@ - (void)testSendClusterTest_TC_TSUIC_2_1_000005_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the mandatory attribute: KeypadLockout"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestThermostatUserInterfaceConfiguration * cluster = [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:queue]; @@ -5183,7 +5206,7 @@ - (void)testSendClusterTest_TC_TSUIC_2_1_000006_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the mandatory attribute: KeypadLockout"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestThermostatUserInterfaceConfiguration * cluster = [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:queue]; @@ -5203,7 +5226,7 @@ - (void)testSendClusterTest_TC_TSUIC_2_1_000007_WriteAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"write to the mandatory attribute: KeypadLockout"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestThermostatUserInterfaceConfiguration * cluster = [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:queue]; @@ -5225,7 +5248,7 @@ - (void)testSendClusterTest_TC_TSUIC_2_1_000008_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the mandatory attribute: KeypadLockout"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestThermostatUserInterfaceConfiguration * cluster = [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:queue]; @@ -5247,7 +5270,7 @@ - (void)testSendClusterTest_TC_TSUIC_2_1_000009_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the mandatory attribute: KeypadLockout"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestThermostatUserInterfaceConfiguration * cluster = [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:queue]; @@ -5268,7 +5291,7 @@ - (void)testSendClusterTest_TC_TSUIC_2_1_000010_ReadAttribute XCTestExpectation * expectation = [self expectationWithDescription:@"read the optional attribute: ScheduleProgrammingVisibility"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestThermostatUserInterfaceConfiguration * cluster = [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:queue]; @@ -5291,7 +5314,7 @@ - (void)testSendClusterTest_TC_TSUIC_2_1_000011_ReadAttribute XCTestExpectation * expectation = [self expectationWithDescription:@"read the optional attribute: ScheduleProgrammingVisibility"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestThermostatUserInterfaceConfiguration * cluster = [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:queue]; @@ -5312,7 +5335,7 @@ - (void)testSendClusterTest_TC_TSUIC_2_1_000012_WriteAttribute XCTestExpectation * expectation = [self expectationWithDescription:@"write to the mandatory attribute: ScheduleProgrammingVisibility"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestThermostatUserInterfaceConfiguration * cluster = [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:queue]; @@ -5337,7 +5360,7 @@ - (void)testSendClusterTest_TC_TSUIC_2_1_000013_ReadAttribute XCTestExpectation * expectation = [self expectationWithDescription:@"read the optional attribute: ScheduleProgrammingVisibility"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestThermostatUserInterfaceConfiguration * cluster = [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:queue]; @@ -5360,7 +5383,7 @@ - (void)testSendClusterTest_TC_TSUIC_2_1_000014_ReadAttribute XCTestExpectation * expectation = [self expectationWithDescription:@"read the optional attribute: ScheduleProgrammingVisibility"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestThermostatUserInterfaceConfiguration * cluster = [[CHIPTestThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 queue:queue]; @@ -5381,7 +5404,7 @@ - (void)testSendClusterTest_TC_PCC_2_1_000000_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the mandatory attribute: MaxPressure"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 @@ -5402,7 +5425,7 @@ - (void)testSendClusterTest_TC_PCC_2_1_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the mandatory attribute: EffectiveOperationMode"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 @@ -5423,7 +5446,7 @@ - (void)testSendClusterTest_TC_PCC_2_1_000002_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the mandatory attribute: EffectiveControlMode"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 @@ -5444,7 +5467,7 @@ - (void)testSendClusterTest_TC_PCC_2_1_000003_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the mandatory attribute: Capacity"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 @@ -5465,7 +5488,7 @@ - (void)testSendClusterTest_TC_PCC_2_1_000004_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the mandatory attribute: MaxPressure"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 @@ -5486,7 +5509,7 @@ - (void)testSendClusterTest_TC_PCC_2_1_000005_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the mandatory attribute: EffectiveOperationMode"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 @@ -5507,7 +5530,7 @@ - (void)testSendClusterTest_TC_PCC_2_1_000006_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the mandatory attribute: EffectiveControlMode"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 @@ -5528,7 +5551,7 @@ - (void)testSendClusterTest_TC_PCC_2_1_000007_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"read the mandatory attribute: Capacity"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestPumpConfigurationAndControl * cluster = [[CHIPTestPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 @@ -5550,7 +5573,7 @@ - (void)testSendClusterTest_TC_CC_3_1_000000_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn on light for color control tests"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -5569,7 +5592,7 @@ - (void)testSendClusterTest_TC_CC_3_1_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is true after on command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -5590,7 +5613,7 @@ - (void)testSendClusterTest_TC_CC_3_1_000002_MoveToHue { XCTestExpectation * expectation = [self expectationWithDescription:@"Move to hue shortest distance command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -5619,7 +5642,7 @@ - (void)testSendClusterTest_TC_CC_3_1_000003_MoveToHue { XCTestExpectation * expectation = [self expectationWithDescription:@"Move to hue longest distance command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -5648,7 +5671,7 @@ - (void)testSendClusterTest_TC_CC_3_1_000004_MoveToHue { XCTestExpectation * expectation = [self expectationWithDescription:@"Move to hue up command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -5677,7 +5700,7 @@ - (void)testSendClusterTest_TC_CC_3_1_000005_MoveToHue { XCTestExpectation * expectation = [self expectationWithDescription:@"Move to hue down command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -5706,7 +5729,7 @@ - (void)testSendClusterTest_TC_CC_3_1_000006_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn off light that we turned on"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -5725,7 +5748,7 @@ - (void)testSendClusterTest_TC_CC_3_1_000007_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is false after off command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -5747,7 +5770,7 @@ - (void)testSendClusterTest_TC_CC_3_2_000000_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn on light for color control tests"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -5766,7 +5789,7 @@ - (void)testSendClusterTest_TC_CC_3_2_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is true after on command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -5787,7 +5810,7 @@ - (void)testSendClusterTest_TC_CC_3_2_000002_MoveHue { XCTestExpectation * expectation = [self expectationWithDescription:@"Move hue up command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -5814,7 +5837,7 @@ - (void)testSendClusterTest_TC_CC_3_2_000003_MoveHue { XCTestExpectation * expectation = [self expectationWithDescription:@"Move hue stop command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -5841,7 +5864,7 @@ - (void)testSendClusterTest_TC_CC_3_2_000004_MoveHue { XCTestExpectation * expectation = [self expectationWithDescription:@"Move hue down command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -5868,7 +5891,7 @@ - (void)testSendClusterTest_TC_CC_3_2_000005_MoveHue { XCTestExpectation * expectation = [self expectationWithDescription:@"Move hue stop command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -5895,7 +5918,7 @@ - (void)testSendClusterTest_TC_CC_3_2_000006_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn off light that we turned on"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -5914,7 +5937,7 @@ - (void)testSendClusterTest_TC_CC_3_2_000007_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is false after off command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -5936,7 +5959,7 @@ - (void)testSendClusterTest_TC_CC_3_3_000000_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn on light for color control tests"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -5955,7 +5978,7 @@ - (void)testSendClusterTest_TC_CC_3_3_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is true after on command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -5976,7 +5999,7 @@ - (void)testSendClusterTest_TC_CC_3_3_000002_StepHue { XCTestExpectation * expectation = [self expectationWithDescription:@"Step hue up command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -6005,7 +6028,7 @@ - (void)testSendClusterTest_TC_CC_3_3_000003_StepHue { XCTestExpectation * expectation = [self expectationWithDescription:@"Step hue down command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -6034,7 +6057,7 @@ - (void)testSendClusterTest_TC_CC_3_3_000004_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn off light that we turned on"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -6053,7 +6076,7 @@ - (void)testSendClusterTest_TC_CC_3_3_000005_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is false after off command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -6075,7 +6098,7 @@ - (void)testSendClusterTest_TC_CC_4_1_000000_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn on light for color control tests"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -6094,7 +6117,7 @@ - (void)testSendClusterTest_TC_CC_4_1_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is true after on command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -6115,7 +6138,7 @@ - (void)testSendClusterTest_TC_CC_4_1_000002_MoveToSaturation { XCTestExpectation * expectation = [self expectationWithDescription:@"Move to saturation command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -6142,7 +6165,7 @@ - (void)testSendClusterTest_TC_CC_4_1_000003_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn off light that we turned on"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -6161,7 +6184,7 @@ - (void)testSendClusterTest_TC_CC_4_1_000004_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is false after off command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -6183,7 +6206,7 @@ - (void)testSendClusterTest_TC_CC_4_2_000000_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn on light for color control tests"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -6202,7 +6225,7 @@ - (void)testSendClusterTest_TC_CC_4_2_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is true after on command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -6223,7 +6246,7 @@ - (void)testSendClusterTest_TC_CC_4_2_000002_MoveSaturation { XCTestExpectation * expectation = [self expectationWithDescription:@"Move saturation up command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -6250,7 +6273,7 @@ - (void)testSendClusterTest_TC_CC_4_2_000003_MoveSaturation { XCTestExpectation * expectation = [self expectationWithDescription:@"Move saturation down command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -6277,7 +6300,7 @@ - (void)testSendClusterTest_TC_CC_4_2_000004_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn off light that we turned on"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -6296,7 +6319,7 @@ - (void)testSendClusterTest_TC_CC_4_2_000005_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is false after off command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -6318,7 +6341,7 @@ - (void)testSendClusterTest_TC_CC_4_3_000000_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn on light for color control tests"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -6337,7 +6360,7 @@ - (void)testSendClusterTest_TC_CC_4_3_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is true after on command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -6358,7 +6381,7 @@ - (void)testSendClusterTest_TC_CC_4_3_000002_StepSaturation { XCTestExpectation * expectation = [self expectationWithDescription:@"Step saturation up command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -6387,7 +6410,7 @@ - (void)testSendClusterTest_TC_CC_4_3_000003_StepSaturation { XCTestExpectation * expectation = [self expectationWithDescription:@"Step saturation down command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -6416,7 +6439,7 @@ - (void)testSendClusterTest_TC_CC_4_3_000004_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn off light that we turned on"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -6435,7 +6458,7 @@ - (void)testSendClusterTest_TC_CC_4_3_000005_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is false after off command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -6457,7 +6480,7 @@ - (void)testSendClusterTest_TC_CC_4_4_000000_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn on light for color control tests"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -6476,7 +6499,7 @@ - (void)testSendClusterTest_TC_CC_4_4_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is true after on command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -6497,7 +6520,7 @@ - (void)testSendClusterTest_TC_CC_4_4_000002_MoveToHueAndSaturation { XCTestExpectation * expectation = [self expectationWithDescription:@"Move To current hue and saturation command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -6526,7 +6549,7 @@ - (void)testSendClusterTest_TC_CC_4_4_000003_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn off light that we turned on"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -6545,7 +6568,7 @@ - (void)testSendClusterTest_TC_CC_4_4_000004_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is false after off command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -6567,7 +6590,7 @@ - (void)testSendClusterTest_TC_CC_5_1_000000_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn on light for color control tests"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -6586,7 +6609,7 @@ - (void)testSendClusterTest_TC_CC_5_1_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is true after on command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -6607,7 +6630,7 @@ - (void)testSendClusterTest_TC_CC_5_1_000002_MoveToColor { XCTestExpectation * expectation = [self expectationWithDescription:@"Move to Color command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -6636,7 +6659,7 @@ - (void)testSendClusterTest_TC_CC_5_1_000003_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn off light that we turned on"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -6655,7 +6678,7 @@ - (void)testSendClusterTest_TC_CC_5_1_000004_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is false after off command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -6677,7 +6700,7 @@ - (void)testSendClusterTest_TC_CC_5_2_000000_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn on light for color control tests"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -6696,7 +6719,7 @@ - (void)testSendClusterTest_TC_CC_5_2_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is true after on command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -6717,7 +6740,7 @@ - (void)testSendClusterTest_TC_CC_5_2_000002_MoveColor { XCTestExpectation * expectation = [self expectationWithDescription:@"Move Color command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -6744,7 +6767,7 @@ - (void)testSendClusterTest_TC_CC_5_2_000003_StopMoveStep { XCTestExpectation * expectation = [self expectationWithDescription:@"Stop Move Step command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -6767,7 +6790,7 @@ - (void)testSendClusterTest_TC_CC_5_2_000004_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn off light that we turned on"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -6786,7 +6809,7 @@ - (void)testSendClusterTest_TC_CC_5_2_000005_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is false after off command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -6808,7 +6831,7 @@ - (void)testSendClusterTest_TC_CC_5_3_000000_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn on light for color control tests"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -6827,7 +6850,7 @@ - (void)testSendClusterTest_TC_CC_5_3_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is true after on command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -6848,7 +6871,7 @@ - (void)testSendClusterTest_TC_CC_5_3_000002_StepColor { XCTestExpectation * expectation = [self expectationWithDescription:@"Step Color command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -6877,7 +6900,7 @@ - (void)testSendClusterTest_TC_CC_5_3_000003_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn off light that we turned on"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -6896,7 +6919,7 @@ - (void)testSendClusterTest_TC_CC_5_3_000004_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is false after off command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -6918,7 +6941,7 @@ - (void)testSendClusterTest_TC_CC_6_1_000000_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn on light for color control tests"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -6937,7 +6960,7 @@ - (void)testSendClusterTest_TC_CC_6_1_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is true after on command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -6958,7 +6981,7 @@ - (void)testSendClusterTest_TC_CC_6_1_000002_MoveToColorTemperature { XCTestExpectation * expectation = [self expectationWithDescription:@"Move To Color Temperature command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -6985,7 +7008,7 @@ - (void)testSendClusterTest_TC_CC_6_1_000003_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn off light that we turned on"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -7004,7 +7027,7 @@ - (void)testSendClusterTest_TC_CC_6_1_000004_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is false after off command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -7026,7 +7049,7 @@ - (void)testSendClusterTest_TC_CC_6_2_000000_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn on light for color control tests"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -7045,7 +7068,7 @@ - (void)testSendClusterTest_TC_CC_6_2_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is true after on command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -7066,7 +7089,7 @@ - (void)testSendClusterTest_TC_CC_6_2_000002_MoveColorTemperature { XCTestExpectation * expectation = [self expectationWithDescription:@"Move up color temperature command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -7097,7 +7120,7 @@ - (void)testSendClusterTest_TC_CC_6_2_000003_MoveColorTemperature { XCTestExpectation * expectation = [self expectationWithDescription:@"Stop Color Temperature command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -7128,7 +7151,7 @@ - (void)testSendClusterTest_TC_CC_6_2_000004_MoveColorTemperature { XCTestExpectation * expectation = [self expectationWithDescription:@"Move down color temperature command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -7159,7 +7182,7 @@ - (void)testSendClusterTest_TC_CC_6_2_000005_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn off light that we turned on"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -7178,7 +7201,7 @@ - (void)testSendClusterTest_TC_CC_6_2_000006_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is false after off command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -7200,7 +7223,7 @@ - (void)testSendClusterTest_TC_CC_6_3_000000_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn on light for color control tests"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -7219,7 +7242,7 @@ - (void)testSendClusterTest_TC_CC_6_3_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is true after on command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -7240,7 +7263,7 @@ - (void)testSendClusterTest_TC_CC_6_3_000002_StepColorTemperature { XCTestExpectation * expectation = [self expectationWithDescription:@"Step up color temperature command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -7273,7 +7296,7 @@ - (void)testSendClusterTest_TC_CC_6_3_000003_StepColorTemperature { XCTestExpectation * expectation = [self expectationWithDescription:@"Step down color temperature command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -7306,7 +7329,7 @@ - (void)testSendClusterTest_TC_CC_6_3_000004_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn off light that we turned on"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -7325,7 +7348,7 @@ - (void)testSendClusterTest_TC_CC_6_3_000005_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is false after off command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -7347,7 +7370,7 @@ - (void)testSendClusterTest_TC_CC_7_1_000000_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn on light for color control tests"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -7366,7 +7389,7 @@ - (void)testSendClusterTest_TC_CC_7_1_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is true after on command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -7387,7 +7410,7 @@ - (void)testSendClusterTest_TC_CC_7_1_000002_EnhancedMoveToHue { XCTestExpectation * expectation = [self expectationWithDescription:@"Enhanced Move To Hue command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -7417,7 +7440,7 @@ - (void)testSendClusterTest_TC_CC_7_1_000003_ReadAttribute XCTestExpectation * expectation = [self expectationWithDescription:@"Check Remaining time attribute value matched the value sent by the last command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -7438,7 +7461,7 @@ - (void)testSendClusterTest_TC_CC_7_1_000004_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn off light that we turned on"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -7457,7 +7480,7 @@ - (void)testSendClusterTest_TC_CC_7_1_000005_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is false after off command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -7479,7 +7502,7 @@ - (void)testSendClusterTest_TC_CC_7_2_000000_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn on light for color control tests"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -7498,7 +7521,7 @@ - (void)testSendClusterTest_TC_CC_7_2_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is true after on command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -7519,7 +7542,7 @@ - (void)testSendClusterTest_TC_CC_7_2_000002_EnhancedMoveHue { XCTestExpectation * expectation = [self expectationWithDescription:@"Enhanced Move Hue Down command "]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -7546,7 +7569,7 @@ - (void)testSendClusterTest_TC_CC_7_2_000003_EnhancedMoveHue { XCTestExpectation * expectation = [self expectationWithDescription:@"Enhanced Move Hue Stop command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -7573,7 +7596,7 @@ - (void)testSendClusterTest_TC_CC_7_2_000004_EnhancedMoveHue { XCTestExpectation * expectation = [self expectationWithDescription:@"Enhanced Move Hue Up command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -7600,7 +7623,7 @@ - (void)testSendClusterTest_TC_CC_7_2_000005_EnhancedMoveHue { XCTestExpectation * expectation = [self expectationWithDescription:@"Enhanced Move Hue Stop command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -7627,7 +7650,7 @@ - (void)testSendClusterTest_TC_CC_7_2_000006_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn off light that we turned on"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -7646,7 +7669,7 @@ - (void)testSendClusterTest_TC_CC_7_2_000007_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is false after off command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -7668,7 +7691,7 @@ - (void)testSendClusterTest_TC_CC_7_3_000000_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn on light for color control tests"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -7687,7 +7710,7 @@ - (void)testSendClusterTest_TC_CC_7_3_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is true after on command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -7708,7 +7731,7 @@ - (void)testSendClusterTest_TC_CC_7_3_000002_EnhancedStepHue { XCTestExpectation * expectation = [self expectationWithDescription:@"Enhanced Step Hue Up command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -7737,7 +7760,7 @@ - (void)testSendClusterTest_TC_CC_7_3_000003_EnhancedStepHue { XCTestExpectation * expectation = [self expectationWithDescription:@"Enhanced Step Hue Down command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -7766,7 +7789,7 @@ - (void)testSendClusterTest_TC_CC_7_3_000004_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn off light that we turned on"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -7785,7 +7808,7 @@ - (void)testSendClusterTest_TC_CC_7_3_000005_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is false after off command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -7807,7 +7830,7 @@ - (void)testSendClusterTest_TC_CC_7_4_000000_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn on light for color control tests"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -7826,7 +7849,7 @@ - (void)testSendClusterTest_TC_CC_7_4_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is true after on command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -7847,7 +7870,7 @@ - (void)testSendClusterTest_TC_CC_7_4_000002_EnhancedMoveToHueAndSaturation { XCTestExpectation * expectation = [self expectationWithDescription:@"Enhanced move to hue and saturation command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -7876,7 +7899,7 @@ - (void)testSendClusterTest_TC_CC_7_4_000003_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn off light that we turned on"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -7895,7 +7918,7 @@ - (void)testSendClusterTest_TC_CC_7_4_000004_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is false after off command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -7917,7 +7940,7 @@ - (void)testSendClusterTest_TC_CC_8_1_000000_On { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn on light for color control tests"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -7936,7 +7959,7 @@ - (void)testSendClusterTest_TC_CC_8_1_000001_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is true after on command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -7957,7 +7980,7 @@ - (void)testSendClusterTest_TC_CC_8_1_000002_ColorLoopSet { XCTestExpectation * expectation = [self expectationWithDescription:@"Color Loop Set Command - Set all Attributs"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -7990,7 +8013,7 @@ - (void)testSendClusterTest_TC_CC_8_1_000003_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check ColorLoopDirection Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8011,7 +8034,7 @@ - (void)testSendClusterTest_TC_CC_8_1_000004_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check ColorLoopTime Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8032,7 +8055,7 @@ - (void)testSendClusterTest_TC_CC_8_1_000005_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check ColorLoopStartEnhancedHue Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8053,7 +8076,7 @@ - (void)testSendClusterTest_TC_CC_8_1_000006_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check ColorLoopActive Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8074,7 +8097,7 @@ - (void)testSendClusterTest_TC_CC_8_1_000007_ColorLoopSet { XCTestExpectation * expectation = [self expectationWithDescription:@"Color Loop Set Command - Start Color Loop"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8107,7 +8130,7 @@ - (void)testSendClusterTest_TC_CC_8_1_000008_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check ColorLoopActive Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8129,7 +8152,7 @@ - (void)testSendClusterTest_TC_CC_8_1_000009_ColorLoopSet XCTestExpectation * expectation = [self expectationWithDescription:@"Color Loop Set Command - Set direction and time while running"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8162,7 +8185,7 @@ - (void)testSendClusterTest_TC_CC_8_1_000010_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check ColorLoopDirection Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8183,7 +8206,7 @@ - (void)testSendClusterTest_TC_CC_8_1_000011_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check ColorLoopTime Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8204,7 +8227,7 @@ - (void)testSendClusterTest_TC_CC_8_1_000012_ColorLoopSet { XCTestExpectation * expectation = [self expectationWithDescription:@"Color Loop Set Command - Set direction while running"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8237,7 +8260,7 @@ - (void)testSendClusterTest_TC_CC_8_1_000013_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check ColorLoopDirection Value"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestColorControl * cluster = [[CHIPTestColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8258,7 +8281,7 @@ - (void)testSendClusterTest_TC_CC_8_1_000014_Off { XCTestExpectation * expectation = [self expectationWithDescription:@"Turn off light that we turned on"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8277,7 +8300,7 @@ - (void)testSendClusterTest_TC_CC_8_1_000015_ReadAttribute { XCTestExpectation * expectation = [self expectationWithDescription:@"Check on/off attribute value is false after off command"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTestOnOff * cluster = [[CHIPTestOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8300,7 +8323,7 @@ - (void)testSendClusterAccountLoginReadAttributeClusterRevisionWithResponseHandl XCTestExpectation * expectation = [self expectationWithDescription:@"AccountLoginReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPAccountLogin * cluster = [[CHIPAccountLogin alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8319,7 +8342,7 @@ - (void)testSendClusterAdministratorCommissioningReadAttributeClusterRevisionWit XCTestExpectation * expectation = [self expectationWithDescription:@"AdministratorCommissioningReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPAdministratorCommissioning * cluster = [[CHIPAdministratorCommissioning alloc] initWithDevice:device endpoint:0 @@ -8340,7 +8363,7 @@ - (void)testSendClusterApplicationBasicReadAttributeVendorNameWithResponseHandle XCTestExpectation * expectation = [self expectationWithDescription:@"ApplicationBasicReadAttributeVendorNameWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPApplicationBasic * cluster = [[CHIPApplicationBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8358,7 +8381,7 @@ - (void)testSendClusterApplicationBasicReadAttributeVendorIdWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"ApplicationBasicReadAttributeVendorIdWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPApplicationBasic * cluster = [[CHIPApplicationBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8377,7 +8400,7 @@ - (void)testSendClusterApplicationBasicReadAttributeApplicationNameWithResponseH XCTestExpectation * expectation = [self expectationWithDescription:@"ApplicationBasicReadAttributeApplicationNameWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPApplicationBasic * cluster = [[CHIPApplicationBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8396,7 +8419,7 @@ - (void)testSendClusterApplicationBasicReadAttributeProductIdWithResponseHandler XCTestExpectation * expectation = [self expectationWithDescription:@"ApplicationBasicReadAttributeProductIdWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPApplicationBasic * cluster = [[CHIPApplicationBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8415,7 +8438,7 @@ - (void)testSendClusterApplicationBasicReadAttributeApplicationIdWithResponseHan XCTestExpectation * expectation = [self expectationWithDescription:@"ApplicationBasicReadAttributeApplicationIdWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPApplicationBasic * cluster = [[CHIPApplicationBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8434,7 +8457,7 @@ - (void)testSendClusterApplicationBasicReadAttributeCatalogVendorIdWithResponseH XCTestExpectation * expectation = [self expectationWithDescription:@"ApplicationBasicReadAttributeCatalogVendorIdWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPApplicationBasic * cluster = [[CHIPApplicationBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8453,7 +8476,7 @@ - (void)testSendClusterApplicationBasicReadAttributeApplicationStatusWithRespons XCTestExpectation * expectation = [self expectationWithDescription:@"ApplicationBasicReadAttributeApplicationStatusWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPApplicationBasic * cluster = [[CHIPApplicationBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8472,7 +8495,7 @@ - (void)testSendClusterApplicationBasicReadAttributeClusterRevisionWithResponseH XCTestExpectation * expectation = [self expectationWithDescription:@"ApplicationBasicReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPApplicationBasic * cluster = [[CHIPApplicationBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8491,7 +8514,7 @@ - (void)testSendClusterApplicationLauncherReadAttributeApplicationLauncherListWi XCTestExpectation * expectation = [self expectationWithDescription:@"ApplicationLauncherReadAttributeApplicationLauncherListWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPApplicationLauncher * cluster = [[CHIPApplicationLauncher alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8510,7 +8533,7 @@ - (void)testSendClusterApplicationLauncherReadAttributeCatalogVendorIdWithRespon XCTestExpectation * expectation = [self expectationWithDescription:@"ApplicationLauncherReadAttributeCatalogVendorIdWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPApplicationLauncher * cluster = [[CHIPApplicationLauncher alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8529,7 +8552,7 @@ - (void)testSendClusterApplicationLauncherReadAttributeApplicationIdWithResponse XCTestExpectation * expectation = [self expectationWithDescription:@"ApplicationLauncherReadAttributeApplicationIdWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPApplicationLauncher * cluster = [[CHIPApplicationLauncher alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8548,7 +8571,7 @@ - (void)testSendClusterApplicationLauncherReadAttributeClusterRevisionWithRespon XCTestExpectation * expectation = [self expectationWithDescription:@"ApplicationLauncherReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPApplicationLauncher * cluster = [[CHIPApplicationLauncher alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8567,7 +8590,7 @@ - (void)testSendClusterAudioOutputReadAttributeAudioOutputListWithResponseHandle XCTestExpectation * expectation = [self expectationWithDescription:@"AudioOutputReadAttributeAudioOutputListWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPAudioOutput * cluster = [[CHIPAudioOutput alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8586,7 +8609,7 @@ - (void)testSendClusterAudioOutputReadAttributeCurrentAudioOutputWithResponseHan XCTestExpectation * expectation = [self expectationWithDescription:@"AudioOutputReadAttributeCurrentAudioOutputWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPAudioOutput * cluster = [[CHIPAudioOutput alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8605,7 +8628,7 @@ - (void)testSendClusterAudioOutputReadAttributeClusterRevisionWithResponseHandle XCTestExpectation * expectation = [self expectationWithDescription:@"AudioOutputReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPAudioOutput * cluster = [[CHIPAudioOutput alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8624,7 +8647,7 @@ - (void)testSendClusterBarrierControlReadAttributeBarrierMovingStateWithResponse XCTestExpectation * expectation = [self expectationWithDescription:@"BarrierControlReadAttributeBarrierMovingStateWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8643,7 +8666,7 @@ - (void)testSendClusterBarrierControlReadAttributeBarrierSafetyStatusWithRespons XCTestExpectation * expectation = [self expectationWithDescription:@"BarrierControlReadAttributeBarrierSafetyStatusWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8662,7 +8685,7 @@ - (void)testSendClusterBarrierControlReadAttributeBarrierCapabilitiesWithRespons XCTestExpectation * expectation = [self expectationWithDescription:@"BarrierControlReadAttributeBarrierCapabilitiesWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8681,7 +8704,7 @@ - (void)testSendClusterBarrierControlReadAttributeBarrierPositionWithResponseHan XCTestExpectation * expectation = [self expectationWithDescription:@"BarrierControlReadAttributeBarrierPositionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8700,7 +8723,7 @@ - (void)testSendClusterBarrierControlReadAttributeClusterRevisionWithResponseHan XCTestExpectation * expectation = [self expectationWithDescription:@"BarrierControlReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBarrierControl * cluster = [[CHIPBarrierControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8719,7 +8742,7 @@ - (void)testSendClusterBinaryInputBasicReadAttributeOutOfServiceWithResponseHand XCTestExpectation * expectation = [self expectationWithDescription:@"BinaryInputBasicReadAttributeOutOfServiceWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8737,7 +8760,7 @@ - (void)testSendClusterBinaryInputBasicWriteAttributeOutOfServiceWithValue { XCTestExpectation * expectation = [self expectationWithDescription:@"BinaryInputBasicWriteAttributeOutOfServiceWithValue"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8757,7 +8780,7 @@ - (void)testSendClusterBinaryInputBasicReadAttributePresentValueWithResponseHand XCTestExpectation * expectation = [self expectationWithDescription:@"BinaryInputBasicReadAttributePresentValueWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8775,7 +8798,7 @@ - (void)testSendClusterBinaryInputBasicWriteAttributePresentValueWithValue { XCTestExpectation * expectation = [self expectationWithDescription:@"BinaryInputBasicWriteAttributePresentValueWithValue"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8795,7 +8818,7 @@ - (void)testSendClusterBinaryInputBasicReadAttributeStatusFlagsWithResponseHandl XCTestExpectation * expectation = [self expectationWithDescription:@"BinaryInputBasicReadAttributeStatusFlagsWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8814,7 +8837,7 @@ - (void)testSendClusterBinaryInputBasicReadAttributeClusterRevisionWithResponseH XCTestExpectation * expectation = [self expectationWithDescription:@"BinaryInputBasicReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBinaryInputBasic * cluster = [[CHIPBinaryInputBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8832,7 +8855,7 @@ - (void)testSendClusterBindingReadAttributeClusterRevisionWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"BindingReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBinding * cluster = [[CHIPBinding alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8851,7 +8874,7 @@ - (void)testSendClusterBridgedDeviceBasicReadAttributeVendorNameWithResponseHand XCTestExpectation * expectation = [self expectationWithDescription:@"BridgedDeviceBasicReadAttributeVendorNameWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8870,7 +8893,7 @@ - (void)testSendClusterBridgedDeviceBasicReadAttributeVendorIDWithResponseHandle XCTestExpectation * expectation = [self expectationWithDescription:@"BridgedDeviceBasicReadAttributeVendorIDWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8889,7 +8912,7 @@ - (void)testSendClusterBridgedDeviceBasicReadAttributeProductNameWithResponseHan XCTestExpectation * expectation = [self expectationWithDescription:@"BridgedDeviceBasicReadAttributeProductNameWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8908,7 +8931,7 @@ - (void)testSendClusterBridgedDeviceBasicReadAttributeUserLabelWithResponseHandl XCTestExpectation * expectation = [self expectationWithDescription:@"BridgedDeviceBasicReadAttributeUserLabelWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8926,7 +8949,7 @@ - (void)testSendClusterBridgedDeviceBasicWriteAttributeUserLabelWithValue { XCTestExpectation * expectation = [self expectationWithDescription:@"BridgedDeviceBasicWriteAttributeUserLabelWithValue"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8946,7 +8969,7 @@ - (void)testSendClusterBridgedDeviceBasicReadAttributeHardwareVersionWithRespons XCTestExpectation * expectation = [self expectationWithDescription:@"BridgedDeviceBasicReadAttributeHardwareVersionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8965,7 +8988,7 @@ - (void)testSendClusterBridgedDeviceBasicReadAttributeHardwareVersionStringWithR XCTestExpectation * expectation = [self expectationWithDescription:@"BridgedDeviceBasicReadAttributeHardwareVersionStringWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -8984,7 +9007,7 @@ - (void)testSendClusterBridgedDeviceBasicReadAttributeSoftwareVersionWithRespons XCTestExpectation * expectation = [self expectationWithDescription:@"BridgedDeviceBasicReadAttributeSoftwareVersionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9003,7 +9026,7 @@ - (void)testSendClusterBridgedDeviceBasicReadAttributeSoftwareVersionStringWithR XCTestExpectation * expectation = [self expectationWithDescription:@"BridgedDeviceBasicReadAttributeSoftwareVersionStringWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9022,7 +9045,7 @@ - (void)testSendClusterBridgedDeviceBasicReadAttributeManufacturingDateWithRespo XCTestExpectation * expectation = [self expectationWithDescription:@"BridgedDeviceBasicReadAttributeManufacturingDateWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9041,7 +9064,7 @@ - (void)testSendClusterBridgedDeviceBasicReadAttributePartNumberWithResponseHand XCTestExpectation * expectation = [self expectationWithDescription:@"BridgedDeviceBasicReadAttributePartNumberWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9060,7 +9083,7 @@ - (void)testSendClusterBridgedDeviceBasicReadAttributeProductURLWithResponseHand XCTestExpectation * expectation = [self expectationWithDescription:@"BridgedDeviceBasicReadAttributeProductURLWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9079,7 +9102,7 @@ - (void)testSendClusterBridgedDeviceBasicReadAttributeProductLabelWithResponseHa XCTestExpectation * expectation = [self expectationWithDescription:@"BridgedDeviceBasicReadAttributeProductLabelWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9098,7 +9121,7 @@ - (void)testSendClusterBridgedDeviceBasicReadAttributeSerialNumberWithResponseHa XCTestExpectation * expectation = [self expectationWithDescription:@"BridgedDeviceBasicReadAttributeSerialNumberWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9117,7 +9140,7 @@ - (void)testSendClusterBridgedDeviceBasicReadAttributeReachableWithResponseHandl XCTestExpectation * expectation = [self expectationWithDescription:@"BridgedDeviceBasicReadAttributeReachableWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9136,7 +9159,7 @@ - (void)testSendClusterBridgedDeviceBasicReadAttributeClusterRevisionWithRespons XCTestExpectation * expectation = [self expectationWithDescription:@"BridgedDeviceBasicReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPBridgedDeviceBasic * cluster = [[CHIPBridgedDeviceBasic alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9154,7 +9177,7 @@ - (void)testSendClusterColorControlReadAttributeCurrentHueWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributeCurrentHueWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9173,7 +9196,7 @@ - (void)testSendClusterColorControlReadAttributeCurrentSaturationWithResponseHan XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributeCurrentSaturationWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9192,7 +9215,7 @@ - (void)testSendClusterColorControlReadAttributeRemainingTimeWithResponseHandler XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributeRemainingTimeWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9210,7 +9233,7 @@ - (void)testSendClusterColorControlReadAttributeCurrentXWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributeCurrentXWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9228,7 +9251,7 @@ - (void)testSendClusterColorControlReadAttributeCurrentYWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributeCurrentYWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9247,7 +9270,7 @@ - (void)testSendClusterColorControlReadAttributeDriftCompensationWithResponseHan XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributeDriftCompensationWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9266,7 +9289,7 @@ - (void)testSendClusterColorControlReadAttributeCompensationTextWithResponseHand XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributeCompensationTextWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9285,7 +9308,7 @@ - (void)testSendClusterColorControlReadAttributeColorTemperatureWithResponseHand XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributeColorTemperatureWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9303,7 +9326,7 @@ - (void)testSendClusterColorControlReadAttributeColorModeWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributeColorModeWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9322,7 +9345,7 @@ - (void)testSendClusterColorControlReadAttributeColorControlOptionsWithResponseH XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributeColorControlOptionsWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9340,7 +9363,7 @@ - (void)testSendClusterColorControlWriteAttributeColorControlOptionsWithValue { XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlWriteAttributeColorControlOptionsWithValue"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9360,7 +9383,7 @@ - (void)testSendClusterColorControlReadAttributeNumberOfPrimariesWithResponseHan XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributeNumberOfPrimariesWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9378,7 +9401,7 @@ - (void)testSendClusterColorControlReadAttributePrimary1XWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributePrimary1XWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9396,7 +9419,7 @@ - (void)testSendClusterColorControlReadAttributePrimary1YWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributePrimary1YWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9415,7 +9438,7 @@ - (void)testSendClusterColorControlReadAttributePrimary1IntensityWithResponseHan XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributePrimary1IntensityWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9433,7 +9456,7 @@ - (void)testSendClusterColorControlReadAttributePrimary2XWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributePrimary2XWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9451,7 +9474,7 @@ - (void)testSendClusterColorControlReadAttributePrimary2YWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributePrimary2YWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9470,7 +9493,7 @@ - (void)testSendClusterColorControlReadAttributePrimary2IntensityWithResponseHan XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributePrimary2IntensityWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9488,7 +9511,7 @@ - (void)testSendClusterColorControlReadAttributePrimary3XWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributePrimary3XWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9506,7 +9529,7 @@ - (void)testSendClusterColorControlReadAttributePrimary3YWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributePrimary3YWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9525,7 +9548,7 @@ - (void)testSendClusterColorControlReadAttributePrimary3IntensityWithResponseHan XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributePrimary3IntensityWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9543,7 +9566,7 @@ - (void)testSendClusterColorControlReadAttributePrimary4XWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributePrimary4XWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9561,7 +9584,7 @@ - (void)testSendClusterColorControlReadAttributePrimary4YWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributePrimary4YWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9580,7 +9603,7 @@ - (void)testSendClusterColorControlReadAttributePrimary4IntensityWithResponseHan XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributePrimary4IntensityWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9598,7 +9621,7 @@ - (void)testSendClusterColorControlReadAttributePrimary5XWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributePrimary5XWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9616,7 +9639,7 @@ - (void)testSendClusterColorControlReadAttributePrimary5YWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributePrimary5YWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9635,7 +9658,7 @@ - (void)testSendClusterColorControlReadAttributePrimary5IntensityWithResponseHan XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributePrimary5IntensityWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9653,7 +9676,7 @@ - (void)testSendClusterColorControlReadAttributePrimary6XWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributePrimary6XWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9671,7 +9694,7 @@ - (void)testSendClusterColorControlReadAttributePrimary6YWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributePrimary6YWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9690,7 +9713,7 @@ - (void)testSendClusterColorControlReadAttributePrimary6IntensityWithResponseHan XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributePrimary6IntensityWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9708,7 +9731,7 @@ - (void)testSendClusterColorControlReadAttributeWhitePointXWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributeWhitePointXWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9726,7 +9749,7 @@ - (void)testSendClusterColorControlWriteAttributeWhitePointXWithValue { XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlWriteAttributeWhitePointXWithValue"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9745,7 +9768,7 @@ - (void)testSendClusterColorControlReadAttributeWhitePointYWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributeWhitePointYWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9763,7 +9786,7 @@ - (void)testSendClusterColorControlWriteAttributeWhitePointYWithValue { XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlWriteAttributeWhitePointYWithValue"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9782,7 +9805,7 @@ - (void)testSendClusterColorControlReadAttributeColorPointRXWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributeColorPointRXWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9800,7 +9823,7 @@ - (void)testSendClusterColorControlWriteAttributeColorPointRXWithValue { XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlWriteAttributeColorPointRXWithValue"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9819,7 +9842,7 @@ - (void)testSendClusterColorControlReadAttributeColorPointRYWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributeColorPointRYWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9837,7 +9860,7 @@ - (void)testSendClusterColorControlWriteAttributeColorPointRYWithValue { XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlWriteAttributeColorPointRYWithValue"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9857,7 +9880,7 @@ - (void)testSendClusterColorControlReadAttributeColorPointRIntensityWithResponse XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributeColorPointRIntensityWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9875,7 +9898,7 @@ - (void)testSendClusterColorControlWriteAttributeColorPointRIntensityWithValue { XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlWriteAttributeColorPointRIntensityWithValue"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9894,7 +9917,7 @@ - (void)testSendClusterColorControlReadAttributeColorPointGXWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributeColorPointGXWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9912,7 +9935,7 @@ - (void)testSendClusterColorControlWriteAttributeColorPointGXWithValue { XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlWriteAttributeColorPointGXWithValue"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9931,7 +9954,7 @@ - (void)testSendClusterColorControlReadAttributeColorPointGYWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributeColorPointGYWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9949,7 +9972,7 @@ - (void)testSendClusterColorControlWriteAttributeColorPointGYWithValue { XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlWriteAttributeColorPointGYWithValue"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9969,7 +9992,7 @@ - (void)testSendClusterColorControlReadAttributeColorPointGIntensityWithResponse XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributeColorPointGIntensityWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -9987,7 +10010,7 @@ - (void)testSendClusterColorControlWriteAttributeColorPointGIntensityWithValue { XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlWriteAttributeColorPointGIntensityWithValue"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -10006,7 +10029,7 @@ - (void)testSendClusterColorControlReadAttributeColorPointBXWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributeColorPointBXWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -10024,7 +10047,7 @@ - (void)testSendClusterColorControlWriteAttributeColorPointBXWithValue { XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlWriteAttributeColorPointBXWithValue"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -10043,7 +10066,7 @@ - (void)testSendClusterColorControlReadAttributeColorPointBYWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributeColorPointBYWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -10061,7 +10084,7 @@ - (void)testSendClusterColorControlWriteAttributeColorPointBYWithValue { XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlWriteAttributeColorPointBYWithValue"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -10081,7 +10104,7 @@ - (void)testSendClusterColorControlReadAttributeColorPointBIntensityWithResponse XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributeColorPointBIntensityWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -10099,7 +10122,7 @@ - (void)testSendClusterColorControlWriteAttributeColorPointBIntensityWithValue { XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlWriteAttributeColorPointBIntensityWithValue"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -10119,7 +10142,7 @@ - (void)testSendClusterColorControlReadAttributeEnhancedCurrentHueWithResponseHa XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributeEnhancedCurrentHueWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -10138,7 +10161,7 @@ - (void)testSendClusterColorControlReadAttributeEnhancedColorModeWithResponseHan XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributeEnhancedColorModeWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -10157,7 +10180,7 @@ - (void)testSendClusterColorControlReadAttributeColorLoopActiveWithResponseHandl XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributeColorLoopActiveWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -10176,7 +10199,7 @@ - (void)testSendClusterColorControlReadAttributeColorLoopDirectionWithResponseHa XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributeColorLoopDirectionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -10195,7 +10218,7 @@ - (void)testSendClusterColorControlReadAttributeColorLoopTimeWithResponseHandler XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributeColorLoopTimeWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -10214,7 +10237,7 @@ - (void)testSendClusterColorControlReadAttributeColorLoopStartEnhancedHueWithRes XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributeColorLoopStartEnhancedHueWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -10233,7 +10256,7 @@ - (void)testSendClusterColorControlReadAttributeColorLoopStoredEnhancedHueWithRe XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributeColorLoopStoredEnhancedHueWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -10252,7 +10275,7 @@ - (void)testSendClusterColorControlReadAttributeColorCapabilitiesWithResponseHan XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributeColorCapabilitiesWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -10271,7 +10294,7 @@ - (void)testSendClusterColorControlReadAttributeColorTempPhysicalMinWithResponse XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributeColorTempPhysicalMinWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -10290,7 +10313,7 @@ - (void)testSendClusterColorControlReadAttributeColorTempPhysicalMaxWithResponse XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributeColorTempPhysicalMaxWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -10309,7 +10332,7 @@ - (void)testSendClusterColorControlReadAttributeCoupleColorTempToLevelMinMiredsW XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributeCoupleColorTempToLevelMinMiredsWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -10328,7 +10351,7 @@ - (void)testSendClusterColorControlReadAttributeStartUpColorTemperatureMiredsWit XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributeStartUpColorTemperatureMiredsWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -10347,7 +10370,7 @@ - (void)testSendClusterColorControlWriteAttributeStartUpColorTemperatureMiredsWi XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlWriteAttributeStartUpColorTemperatureMiredsWithValue"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -10367,7 +10390,7 @@ - (void)testSendClusterColorControlReadAttributeClusterRevisionWithResponseHandl XCTestExpectation * expectation = [self expectationWithDescription:@"ColorControlReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPColorControl * cluster = [[CHIPColorControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -10386,7 +10409,7 @@ - (void)testSendClusterContentLauncherReadAttributeAcceptsHeaderListWithResponse XCTestExpectation * expectation = [self expectationWithDescription:@"ContentLauncherReadAttributeAcceptsHeaderListWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPContentLauncher * cluster = [[CHIPContentLauncher alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -10405,7 +10428,7 @@ - (void)testSendClusterContentLauncherReadAttributeSupportedStreamingTypesWithRe XCTestExpectation * expectation = [self expectationWithDescription:@"ContentLauncherReadAttributeSupportedStreamingTypesWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPContentLauncher * cluster = [[CHIPContentLauncher alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -10424,7 +10447,7 @@ - (void)testSendClusterContentLauncherReadAttributeClusterRevisionWithResponseHa XCTestExpectation * expectation = [self expectationWithDescription:@"ContentLauncherReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPContentLauncher * cluster = [[CHIPContentLauncher alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -10442,7 +10465,7 @@ - (void)testSendClusterDescriptorReadAttributeDeviceListWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"DescriptorReadAttributeDeviceListWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPDescriptor * cluster = [[CHIPDescriptor alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -10460,7 +10483,7 @@ - (void)testSendClusterDescriptorReadAttributeServerListWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"DescriptorReadAttributeServerListWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPDescriptor * cluster = [[CHIPDescriptor alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -10478,7 +10501,7 @@ - (void)testSendClusterDescriptorReadAttributeClientListWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"DescriptorReadAttributeClientListWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPDescriptor * cluster = [[CHIPDescriptor alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -10496,7 +10519,7 @@ - (void)testSendClusterDescriptorReadAttributePartsListWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"DescriptorReadAttributePartsListWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPDescriptor * cluster = [[CHIPDescriptor alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -10515,7 +10538,7 @@ - (void)testSendClusterDescriptorReadAttributeClusterRevisionWithResponseHandler XCTestExpectation * expectation = [self expectationWithDescription:@"DescriptorReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPDescriptor * cluster = [[CHIPDescriptor alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -10533,7 +10556,7 @@ - (void)testSendClusterDoorLockReadAttributeLockStateWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"DoorLockReadAttributeLockStateWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -10551,7 +10574,7 @@ - (void)testSendClusterDoorLockReadAttributeLockTypeWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"DoorLockReadAttributeLockTypeWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -10569,7 +10592,7 @@ - (void)testSendClusterDoorLockReadAttributeActuatorEnabledWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"DoorLockReadAttributeActuatorEnabledWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -10587,7 +10610,7 @@ - (void)testSendClusterDoorLockReadAttributeClusterRevisionWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"DoorLockReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPDoorLock * cluster = [[CHIPDoorLock alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -10606,7 +10629,7 @@ - (void)testSendClusterElectricalMeasurementReadAttributeMeasurementTypeWithResp XCTestExpectation * expectation = [self expectationWithDescription:@"ElectricalMeasurementReadAttributeMeasurementTypeWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -10625,7 +10648,7 @@ - (void)testSendClusterElectricalMeasurementReadAttributeTotalActivePowerWithRes XCTestExpectation * expectation = [self expectationWithDescription:@"ElectricalMeasurementReadAttributeTotalActivePowerWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -10644,7 +10667,7 @@ - (void)testSendClusterElectricalMeasurementReadAttributeRmsVoltageWithResponseH XCTestExpectation * expectation = [self expectationWithDescription:@"ElectricalMeasurementReadAttributeRmsVoltageWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -10663,7 +10686,7 @@ - (void)testSendClusterElectricalMeasurementReadAttributeRmsVoltageMinWithRespon XCTestExpectation * expectation = [self expectationWithDescription:@"ElectricalMeasurementReadAttributeRmsVoltageMinWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -10682,7 +10705,7 @@ - (void)testSendClusterElectricalMeasurementReadAttributeRmsVoltageMaxWithRespon XCTestExpectation * expectation = [self expectationWithDescription:@"ElectricalMeasurementReadAttributeRmsVoltageMaxWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -10701,7 +10724,7 @@ - (void)testSendClusterElectricalMeasurementReadAttributeRmsCurrentWithResponseH XCTestExpectation * expectation = [self expectationWithDescription:@"ElectricalMeasurementReadAttributeRmsCurrentWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -10720,7 +10743,7 @@ - (void)testSendClusterElectricalMeasurementReadAttributeRmsCurrentMinWithRespon XCTestExpectation * expectation = [self expectationWithDescription:@"ElectricalMeasurementReadAttributeRmsCurrentMinWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -10739,7 +10762,7 @@ - (void)testSendClusterElectricalMeasurementReadAttributeRmsCurrentMaxWithRespon XCTestExpectation * expectation = [self expectationWithDescription:@"ElectricalMeasurementReadAttributeRmsCurrentMaxWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -10758,7 +10781,7 @@ - (void)testSendClusterElectricalMeasurementReadAttributeActivePowerWithResponse XCTestExpectation * expectation = [self expectationWithDescription:@"ElectricalMeasurementReadAttributeActivePowerWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -10777,7 +10800,7 @@ - (void)testSendClusterElectricalMeasurementReadAttributeActivePowerMinWithRespo XCTestExpectation * expectation = [self expectationWithDescription:@"ElectricalMeasurementReadAttributeActivePowerMinWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -10796,7 +10819,7 @@ - (void)testSendClusterElectricalMeasurementReadAttributeActivePowerMaxWithRespo XCTestExpectation * expectation = [self expectationWithDescription:@"ElectricalMeasurementReadAttributeActivePowerMaxWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -10815,7 +10838,7 @@ - (void)testSendClusterElectricalMeasurementReadAttributeClusterRevisionWithResp XCTestExpectation * expectation = [self expectationWithDescription:@"ElectricalMeasurementReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPElectricalMeasurement * cluster = [[CHIPElectricalMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -10834,7 +10857,7 @@ - (void)testSendClusterEthernetNetworkDiagnosticsReadAttributePHYRateWithRespons XCTestExpectation * expectation = [self expectationWithDescription:@"EthernetNetworkDiagnosticsReadAttributePHYRateWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:0 @@ -10855,7 +10878,7 @@ - (void)testSendClusterEthernetNetworkDiagnosticsReadAttributeFullDuplexWithResp XCTestExpectation * expectation = [self expectationWithDescription:@"EthernetNetworkDiagnosticsReadAttributeFullDuplexWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:0 @@ -10876,7 +10899,7 @@ - (void)testSendClusterEthernetNetworkDiagnosticsReadAttributePacketRxCountWithR XCTestExpectation * expectation = [self expectationWithDescription:@"EthernetNetworkDiagnosticsReadAttributePacketRxCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:0 @@ -10897,7 +10920,7 @@ - (void)testSendClusterEthernetNetworkDiagnosticsReadAttributePacketTxCountWithR XCTestExpectation * expectation = [self expectationWithDescription:@"EthernetNetworkDiagnosticsReadAttributePacketTxCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:0 @@ -10918,7 +10941,7 @@ - (void)testSendClusterEthernetNetworkDiagnosticsReadAttributeTxErrCountWithResp XCTestExpectation * expectation = [self expectationWithDescription:@"EthernetNetworkDiagnosticsReadAttributeTxErrCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:0 @@ -10939,7 +10962,7 @@ - (void)testSendClusterEthernetNetworkDiagnosticsReadAttributeCollisionCountWith XCTestExpectation * expectation = [self expectationWithDescription:@"EthernetNetworkDiagnosticsReadAttributeCollisionCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:0 @@ -10960,7 +10983,7 @@ - (void)testSendClusterEthernetNetworkDiagnosticsReadAttributeOverrunCountWithRe XCTestExpectation * expectation = [self expectationWithDescription:@"EthernetNetworkDiagnosticsReadAttributeOverrunCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:0 @@ -10981,7 +11004,7 @@ - (void)testSendClusterEthernetNetworkDiagnosticsReadAttributeCarrierDetectWithR XCTestExpectation * expectation = [self expectationWithDescription:@"EthernetNetworkDiagnosticsReadAttributeCarrierDetectWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:0 @@ -11002,7 +11025,7 @@ - (void)testSendClusterEthernetNetworkDiagnosticsReadAttributeTimeSinceResetWith XCTestExpectation * expectation = [self expectationWithDescription:@"EthernetNetworkDiagnosticsReadAttributeTimeSinceResetWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:0 @@ -11023,7 +11046,7 @@ - (void)testSendClusterEthernetNetworkDiagnosticsReadAttributeClusterRevisionWit XCTestExpectation * expectation = [self expectationWithDescription:@"EthernetNetworkDiagnosticsReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPEthernetNetworkDiagnostics * cluster = [[CHIPEthernetNetworkDiagnostics alloc] initWithDevice:device endpoint:0 @@ -11043,7 +11066,7 @@ - (void)testSendClusterFixedLabelReadAttributeLabelListWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"FixedLabelReadAttributeLabelListWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPFixedLabel * cluster = [[CHIPFixedLabel alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -11062,7 +11085,7 @@ - (void)testSendClusterFixedLabelReadAttributeClusterRevisionWithResponseHandler XCTestExpectation * expectation = [self expectationWithDescription:@"FixedLabelReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPFixedLabel * cluster = [[CHIPFixedLabel alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -11081,7 +11104,7 @@ - (void)testSendClusterFlowMeasurementReadAttributeMeasuredValueWithResponseHand XCTestExpectation * expectation = [self expectationWithDescription:@"FlowMeasurementReadAttributeMeasuredValueWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPFlowMeasurement * cluster = [[CHIPFlowMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -11100,7 +11123,7 @@ - (void)testSendClusterFlowMeasurementReadAttributeMinMeasuredValueWithResponseH XCTestExpectation * expectation = [self expectationWithDescription:@"FlowMeasurementReadAttributeMinMeasuredValueWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPFlowMeasurement * cluster = [[CHIPFlowMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -11119,7 +11142,7 @@ - (void)testSendClusterFlowMeasurementReadAttributeMaxMeasuredValueWithResponseH XCTestExpectation * expectation = [self expectationWithDescription:@"FlowMeasurementReadAttributeMaxMeasuredValueWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPFlowMeasurement * cluster = [[CHIPFlowMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -11138,7 +11161,7 @@ - (void)testSendClusterFlowMeasurementReadAttributeClusterRevisionWithResponseHa XCTestExpectation * expectation = [self expectationWithDescription:@"FlowMeasurementReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPFlowMeasurement * cluster = [[CHIPFlowMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -11157,7 +11180,7 @@ - (void)testSendClusterGeneralCommissioningReadAttributeBreadcrumbWithResponseHa XCTestExpectation * expectation = [self expectationWithDescription:@"GeneralCommissioningReadAttributeBreadcrumbWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPGeneralCommissioning * cluster = [[CHIPGeneralCommissioning alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -11175,7 +11198,7 @@ - (void)testSendClusterGeneralCommissioningWriteAttributeBreadcrumbWithValue { XCTestExpectation * expectation = [self expectationWithDescription:@"GeneralCommissioningWriteAttributeBreadcrumbWithValue"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPGeneralCommissioning * cluster = [[CHIPGeneralCommissioning alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -11195,7 +11218,7 @@ - (void)testSendClusterGeneralCommissioningReadAttributeBasicCommissioningInfoLi XCTestExpectation * expectation = [self expectationWithDescription:@"GeneralCommissioningReadAttributeBasicCommissioningInfoListWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPGeneralCommissioning * cluster = [[CHIPGeneralCommissioning alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -11214,7 +11237,7 @@ - (void)testSendClusterGeneralCommissioningReadAttributeClusterRevisionWithRespo XCTestExpectation * expectation = [self expectationWithDescription:@"GeneralCommissioningReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPGeneralCommissioning * cluster = [[CHIPGeneralCommissioning alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -11233,7 +11256,7 @@ - (void)testSendClusterGeneralDiagnosticsReadAttributeNetworkInterfacesWithRespo XCTestExpectation * expectation = [self expectationWithDescription:@"GeneralDiagnosticsReadAttributeNetworkInterfacesWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPGeneralDiagnostics * cluster = [[CHIPGeneralDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -11252,7 +11275,7 @@ - (void)testSendClusterGeneralDiagnosticsReadAttributeRebootCountWithResponseHan XCTestExpectation * expectation = [self expectationWithDescription:@"GeneralDiagnosticsReadAttributeRebootCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPGeneralDiagnostics * cluster = [[CHIPGeneralDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -11270,7 +11293,7 @@ - (void)testSendClusterGeneralDiagnosticsReadAttributeUpTimeWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"GeneralDiagnosticsReadAttributeUpTimeWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPGeneralDiagnostics * cluster = [[CHIPGeneralDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -11289,7 +11312,7 @@ - (void)testSendClusterGeneralDiagnosticsReadAttributeTotalOperationalHoursWithR XCTestExpectation * expectation = [self expectationWithDescription:@"GeneralDiagnosticsReadAttributeTotalOperationalHoursWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPGeneralDiagnostics * cluster = [[CHIPGeneralDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -11308,7 +11331,7 @@ - (void)testSendClusterGeneralDiagnosticsReadAttributeBootReasonsWithResponseHan XCTestExpectation * expectation = [self expectationWithDescription:@"GeneralDiagnosticsReadAttributeBootReasonsWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPGeneralDiagnostics * cluster = [[CHIPGeneralDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -11327,7 +11350,7 @@ - (void)testSendClusterGeneralDiagnosticsReadAttributeClusterRevisionWithRespons XCTestExpectation * expectation = [self expectationWithDescription:@"GeneralDiagnosticsReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPGeneralDiagnostics * cluster = [[CHIPGeneralDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -11345,7 +11368,7 @@ - (void)testSendClusterGroupKeyManagementReadAttributeGroupsWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"GroupKeyManagementReadAttributeGroupsWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPGroupKeyManagement * cluster = [[CHIPGroupKeyManagement alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -11364,7 +11387,7 @@ - (void)testSendClusterGroupKeyManagementReadAttributeGroupKeysWithResponseHandl XCTestExpectation * expectation = [self expectationWithDescription:@"GroupKeyManagementReadAttributeGroupKeysWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPGroupKeyManagement * cluster = [[CHIPGroupKeyManagement alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -11383,7 +11406,7 @@ - (void)testSendClusterGroupKeyManagementReadAttributeClusterRevisionWithRespons XCTestExpectation * expectation = [self expectationWithDescription:@"GroupKeyManagementReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPGroupKeyManagement * cluster = [[CHIPGroupKeyManagement alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -11401,7 +11424,7 @@ - (void)testSendClusterGroupsReadAttributeNameSupportWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"GroupsReadAttributeNameSupportWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPGroups * cluster = [[CHIPGroups alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -11419,7 +11442,7 @@ - (void)testSendClusterGroupsReadAttributeClusterRevisionWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"GroupsReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPGroups * cluster = [[CHIPGroups alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -11437,7 +11460,7 @@ - (void)testSendClusterIdentifyReadAttributeIdentifyTimeWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"IdentifyReadAttributeIdentifyTimeWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPIdentify * cluster = [[CHIPIdentify alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -11455,7 +11478,7 @@ - (void)testSendClusterIdentifyWriteAttributeIdentifyTimeWithValue { XCTestExpectation * expectation = [self expectationWithDescription:@"IdentifyWriteAttributeIdentifyTimeWithValue"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPIdentify * cluster = [[CHIPIdentify alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -11474,7 +11497,7 @@ - (void)testSendClusterIdentifyReadAttributeIdentifyTypeWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"IdentifyReadAttributeIdentifyTypeWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPIdentify * cluster = [[CHIPIdentify alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -11492,7 +11515,7 @@ - (void)testSendClusterIdentifyReadAttributeClusterRevisionWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"IdentifyReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPIdentify * cluster = [[CHIPIdentify alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -11511,7 +11534,7 @@ - (void)testSendClusterKeypadInputReadAttributeClusterRevisionWithResponseHandle XCTestExpectation * expectation = [self expectationWithDescription:@"KeypadInputReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPKeypadInput * cluster = [[CHIPKeypadInput alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -11529,7 +11552,7 @@ - (void)testSendClusterLevelControlReadAttributeCurrentLevelWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"LevelControlReadAttributeCurrentLevelWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -11548,7 +11571,7 @@ - (void)testSendClusterLevelControlReadAttributeClusterRevisionWithResponseHandl XCTestExpectation * expectation = [self expectationWithDescription:@"LevelControlReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPLevelControl * cluster = [[CHIPLevelControl alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -11566,7 +11589,7 @@ - (void)testSendClusterLowPowerReadAttributeClusterRevisionWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"LowPowerReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPLowPower * cluster = [[CHIPLowPower alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -11584,7 +11607,7 @@ - (void)testSendClusterMediaInputReadAttributeMediaInputListWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"MediaInputReadAttributeMediaInputListWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPMediaInput * cluster = [[CHIPMediaInput alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -11603,7 +11626,7 @@ - (void)testSendClusterMediaInputReadAttributeCurrentMediaInputWithResponseHandl XCTestExpectation * expectation = [self expectationWithDescription:@"MediaInputReadAttributeCurrentMediaInputWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPMediaInput * cluster = [[CHIPMediaInput alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -11622,7 +11645,7 @@ - (void)testSendClusterMediaInputReadAttributeClusterRevisionWithResponseHandler XCTestExpectation * expectation = [self expectationWithDescription:@"MediaInputReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPMediaInput * cluster = [[CHIPMediaInput alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -11641,7 +11664,7 @@ - (void)testSendClusterMediaPlaybackReadAttributePlaybackStateWithResponseHandle XCTestExpectation * expectation = [self expectationWithDescription:@"MediaPlaybackReadAttributePlaybackStateWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -11659,7 +11682,7 @@ - (void)testSendClusterMediaPlaybackReadAttributeStartTimeWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"MediaPlaybackReadAttributeStartTimeWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -11677,7 +11700,7 @@ - (void)testSendClusterMediaPlaybackReadAttributeDurationWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"MediaPlaybackReadAttributeDurationWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -11696,7 +11719,7 @@ - (void)testSendClusterMediaPlaybackReadAttributePositionUpdatedAtWithResponseHa XCTestExpectation * expectation = [self expectationWithDescription:@"MediaPlaybackReadAttributePositionUpdatedAtWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -11714,7 +11737,7 @@ - (void)testSendClusterMediaPlaybackReadAttributePositionWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"MediaPlaybackReadAttributePositionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -11733,7 +11756,7 @@ - (void)testSendClusterMediaPlaybackReadAttributePlaybackSpeedWithResponseHandle XCTestExpectation * expectation = [self expectationWithDescription:@"MediaPlaybackReadAttributePlaybackSpeedWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -11752,7 +11775,7 @@ - (void)testSendClusterMediaPlaybackReadAttributeSeekRangeEndWithResponseHandler XCTestExpectation * expectation = [self expectationWithDescription:@"MediaPlaybackReadAttributeSeekRangeEndWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -11771,7 +11794,7 @@ - (void)testSendClusterMediaPlaybackReadAttributeSeekRangeStartWithResponseHandl XCTestExpectation * expectation = [self expectationWithDescription:@"MediaPlaybackReadAttributeSeekRangeStartWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -11790,7 +11813,7 @@ - (void)testSendClusterMediaPlaybackReadAttributeClusterRevisionWithResponseHand XCTestExpectation * expectation = [self expectationWithDescription:@"MediaPlaybackReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPMediaPlayback * cluster = [[CHIPMediaPlayback alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -11809,7 +11832,7 @@ - (void)testSendClusterNetworkCommissioningReadAttributeFeatureMapWithResponseHa XCTestExpectation * expectation = [self expectationWithDescription:@"NetworkCommissioningReadAttributeFeatureMapWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPNetworkCommissioning * cluster = [[CHIPNetworkCommissioning alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -11828,7 +11851,7 @@ - (void)testSendClusterNetworkCommissioningReadAttributeClusterRevisionWithRespo XCTestExpectation * expectation = [self expectationWithDescription:@"NetworkCommissioningReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPNetworkCommissioning * cluster = [[CHIPNetworkCommissioning alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -11847,7 +11870,7 @@ - (void)testSendClusterOtaSoftwareUpdateProviderReadAttributeClusterRevisionWith XCTestExpectation * expectation = [self expectationWithDescription:@"OtaSoftwareUpdateProviderReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOtaSoftwareUpdateProvider * cluster = [[CHIPOtaSoftwareUpdateProvider alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -11866,7 +11889,7 @@ - (void)testSendClusterOtaSoftwareUpdateRequestorReadAttributeDefaultOtaProvider XCTestExpectation * expectation = [self expectationWithDescription:@"OtaSoftwareUpdateRequestorReadAttributeDefaultOtaProviderWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOtaSoftwareUpdateRequestor * cluster = [[CHIPOtaSoftwareUpdateRequestor alloc] initWithDevice:device endpoint:0 @@ -11887,7 +11910,7 @@ - (void)testSendClusterOtaSoftwareUpdateRequestorWriteAttributeDefaultOtaProvide XCTestExpectation * expectation = [self expectationWithDescription:@"OtaSoftwareUpdateRequestorWriteAttributeDefaultOtaProviderWithValue"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOtaSoftwareUpdateRequestor * cluster = [[CHIPOtaSoftwareUpdateRequestor alloc] initWithDevice:device endpoint:0 @@ -11909,7 +11932,7 @@ - (void)testSendClusterOtaSoftwareUpdateRequestorReadAttributeUpdatePossibleWith XCTestExpectation * expectation = [self expectationWithDescription:@"OtaSoftwareUpdateRequestorReadAttributeUpdatePossibleWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOtaSoftwareUpdateRequestor * cluster = [[CHIPOtaSoftwareUpdateRequestor alloc] initWithDevice:device endpoint:0 @@ -11930,7 +11953,7 @@ - (void)testSendClusterOtaSoftwareUpdateRequestorReadAttributeClusterRevisionWit XCTestExpectation * expectation = [self expectationWithDescription:@"OtaSoftwareUpdateRequestorReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOtaSoftwareUpdateRequestor * cluster = [[CHIPOtaSoftwareUpdateRequestor alloc] initWithDevice:device endpoint:0 @@ -11951,7 +11974,7 @@ - (void)testSendClusterOccupancySensingReadAttributeOccupancyWithResponseHandler XCTestExpectation * expectation = [self expectationWithDescription:@"OccupancySensingReadAttributeOccupancyWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -11970,7 +11993,7 @@ - (void)testSendClusterOccupancySensingReadAttributeOccupancySensorTypeWithRespo XCTestExpectation * expectation = [self expectationWithDescription:@"OccupancySensingReadAttributeOccupancySensorTypeWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -11989,7 +12012,7 @@ - (void)testSendClusterOccupancySensingReadAttributeOccupancySensorTypeBitmapWit XCTestExpectation * expectation = [self expectationWithDescription:@"OccupancySensingReadAttributeOccupancySensorTypeBitmapWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -12008,7 +12031,7 @@ - (void)testSendClusterOccupancySensingReadAttributeClusterRevisionWithResponseH XCTestExpectation * expectation = [self expectationWithDescription:@"OccupancySensingReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOccupancySensing * cluster = [[CHIPOccupancySensing alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -12026,7 +12049,7 @@ - (void)testSendClusterOnOffReadAttributeOnOffWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"OnOffReadAttributeOnOffWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -12044,7 +12067,7 @@ - (void)testSendClusterOnOffReadAttributeGlobalSceneControlWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"OnOffReadAttributeGlobalSceneControlWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -12062,7 +12085,7 @@ - (void)testSendClusterOnOffReadAttributeOnTimeWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"OnOffReadAttributeOnTimeWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -12080,7 +12103,7 @@ - (void)testSendClusterOnOffWriteAttributeOnTimeWithValue { XCTestExpectation * expectation = [self expectationWithDescription:@"OnOffWriteAttributeOnTimeWithValue"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -12099,7 +12122,7 @@ - (void)testSendClusterOnOffReadAttributeOffWaitTimeWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"OnOffReadAttributeOffWaitTimeWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -12117,7 +12140,7 @@ - (void)testSendClusterOnOffWriteAttributeOffWaitTimeWithValue { XCTestExpectation * expectation = [self expectationWithDescription:@"OnOffWriteAttributeOffWaitTimeWithValue"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -12136,7 +12159,7 @@ - (void)testSendClusterOnOffReadAttributeStartUpOnOffWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"OnOffReadAttributeStartUpOnOffWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -12154,7 +12177,7 @@ - (void)testSendClusterOnOffWriteAttributeStartUpOnOffWithValue { XCTestExpectation * expectation = [self expectationWithDescription:@"OnOffWriteAttributeStartUpOnOffWithValue"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -12173,7 +12196,7 @@ - (void)testSendClusterOnOffReadAttributeFeatureMapWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"OnOffReadAttributeFeatureMapWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -12191,7 +12214,7 @@ - (void)testSendClusterOnOffReadAttributeClusterRevisionWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"OnOffReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOnOff * cluster = [[CHIPOnOff alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -12210,7 +12233,7 @@ - (void)testSendClusterOnOffSwitchConfigurationReadAttributeSwitchTypeWithRespon XCTestExpectation * expectation = [self expectationWithDescription:@"OnOffSwitchConfigurationReadAttributeSwitchTypeWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOnOffSwitchConfiguration * cluster = [[CHIPOnOffSwitchConfiguration alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -12229,7 +12252,7 @@ - (void)testSendClusterOnOffSwitchConfigurationReadAttributeSwitchActionsWithRes XCTestExpectation * expectation = [self expectationWithDescription:@"OnOffSwitchConfigurationReadAttributeSwitchActionsWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOnOffSwitchConfiguration * cluster = [[CHIPOnOffSwitchConfiguration alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -12248,7 +12271,7 @@ - (void)testSendClusterOnOffSwitchConfigurationWriteAttributeSwitchActionsWithVa XCTestExpectation * expectation = [self expectationWithDescription:@"OnOffSwitchConfigurationWriteAttributeSwitchActionsWithValue"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOnOffSwitchConfiguration * cluster = [[CHIPOnOffSwitchConfiguration alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -12268,7 +12291,7 @@ - (void)testSendClusterOnOffSwitchConfigurationReadAttributeClusterRevisionWithR XCTestExpectation * expectation = [self expectationWithDescription:@"OnOffSwitchConfigurationReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOnOffSwitchConfiguration * cluster = [[CHIPOnOffSwitchConfiguration alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -12287,7 +12310,7 @@ - (void)testSendClusterOperationalCredentialsReadAttributeFabricsListWithRespons XCTestExpectation * expectation = [self expectationWithDescription:@"OperationalCredentialsReadAttributeFabricsListWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOperationalCredentials * cluster = [[CHIPOperationalCredentials alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -12306,7 +12329,7 @@ - (void)testSendClusterOperationalCredentialsReadAttributeSupportedFabricsWithRe XCTestExpectation * expectation = [self expectationWithDescription:@"OperationalCredentialsReadAttributeSupportedFabricsWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOperationalCredentials * cluster = [[CHIPOperationalCredentials alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -12325,7 +12348,7 @@ - (void)testSendClusterOperationalCredentialsReadAttributeCommissionedFabricsWit XCTestExpectation * expectation = [self expectationWithDescription:@"OperationalCredentialsReadAttributeCommissionedFabricsWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOperationalCredentials * cluster = [[CHIPOperationalCredentials alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -12344,7 +12367,7 @@ - (void)testSendClusterOperationalCredentialsReadAttributeClusterRevisionWithRes XCTestExpectation * expectation = [self expectationWithDescription:@"OperationalCredentialsReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPOperationalCredentials * cluster = [[CHIPOperationalCredentials alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -12362,7 +12385,7 @@ - (void)testSendClusterPowerSourceReadAttributeStatusWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"PowerSourceReadAttributeStatusWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -12380,7 +12403,7 @@ - (void)testSendClusterPowerSourceReadAttributeOrderWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"PowerSourceReadAttributeOrderWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -12398,7 +12421,7 @@ - (void)testSendClusterPowerSourceReadAttributeDescriptionWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"PowerSourceReadAttributeDescriptionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -12417,7 +12440,7 @@ - (void)testSendClusterPowerSourceReadAttributeBatteryVoltageWithResponseHandler XCTestExpectation * expectation = [self expectationWithDescription:@"PowerSourceReadAttributeBatteryVoltageWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -12436,7 +12459,7 @@ - (void)testSendClusterPowerSourceReadAttributeBatteryPercentRemainingWithRespon XCTestExpectation * expectation = [self expectationWithDescription:@"PowerSourceReadAttributeBatteryPercentRemainingWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -12455,7 +12478,7 @@ - (void)testSendClusterPowerSourceReadAttributeBatteryTimeRemainingWithResponseH XCTestExpectation * expectation = [self expectationWithDescription:@"PowerSourceReadAttributeBatteryTimeRemainingWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -12474,7 +12497,7 @@ - (void)testSendClusterPowerSourceReadAttributeBatteryChargeLevelWithResponseHan XCTestExpectation * expectation = [self expectationWithDescription:@"PowerSourceReadAttributeBatteryChargeLevelWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -12493,7 +12516,7 @@ - (void)testSendClusterPowerSourceReadAttributeActiveBatteryFaultsWithResponseHa XCTestExpectation * expectation = [self expectationWithDescription:@"PowerSourceReadAttributeActiveBatteryFaultsWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -12512,7 +12535,7 @@ - (void)testSendClusterPowerSourceReadAttributeBatteryChargeStateWithResponseHan XCTestExpectation * expectation = [self expectationWithDescription:@"PowerSourceReadAttributeBatteryChargeStateWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -12530,7 +12553,7 @@ - (void)testSendClusterPowerSourceReadAttributeFeatureMapWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"PowerSourceReadAttributeFeatureMapWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -12549,7 +12572,7 @@ - (void)testSendClusterPowerSourceReadAttributeClusterRevisionWithResponseHandle XCTestExpectation * expectation = [self expectationWithDescription:@"PowerSourceReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPowerSource * cluster = [[CHIPPowerSource alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -12568,7 +12591,7 @@ - (void)testSendClusterPressureMeasurementReadAttributeMeasuredValueWithResponse XCTestExpectation * expectation = [self expectationWithDescription:@"PressureMeasurementReadAttributeMeasuredValueWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPressureMeasurement * cluster = [[CHIPPressureMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -12587,7 +12610,7 @@ - (void)testSendClusterPressureMeasurementReadAttributeMinMeasuredValueWithRespo XCTestExpectation * expectation = [self expectationWithDescription:@"PressureMeasurementReadAttributeMinMeasuredValueWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPressureMeasurement * cluster = [[CHIPPressureMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -12606,7 +12629,7 @@ - (void)testSendClusterPressureMeasurementReadAttributeMaxMeasuredValueWithRespo XCTestExpectation * expectation = [self expectationWithDescription:@"PressureMeasurementReadAttributeMaxMeasuredValueWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPressureMeasurement * cluster = [[CHIPPressureMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -12625,7 +12648,7 @@ - (void)testSendClusterPressureMeasurementReadAttributeClusterRevisionWithRespon XCTestExpectation * expectation = [self expectationWithDescription:@"PressureMeasurementReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPressureMeasurement * cluster = [[CHIPPressureMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -12644,7 +12667,7 @@ - (void)testSendClusterPumpConfigurationAndControlReadAttributeMaxPressureWithRe XCTestExpectation * expectation = [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeMaxPressureWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 @@ -12665,7 +12688,7 @@ - (void)testSendClusterPumpConfigurationAndControlReadAttributeMaxSpeedWithRespo XCTestExpectation * expectation = [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeMaxSpeedWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 @@ -12686,7 +12709,7 @@ - (void)testSendClusterPumpConfigurationAndControlReadAttributeMaxFlowWithRespon XCTestExpectation * expectation = [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeMaxFlowWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 @@ -12707,7 +12730,7 @@ - (void)testSendClusterPumpConfigurationAndControlReadAttributeEffectiveOperatio XCTestExpectation * expectation = [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeEffectiveOperationModeWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 @@ -12728,7 +12751,7 @@ - (void)testSendClusterPumpConfigurationAndControlReadAttributeEffectiveControlM XCTestExpectation * expectation = [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeEffectiveControlModeWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 @@ -12749,7 +12772,7 @@ - (void)testSendClusterPumpConfigurationAndControlReadAttributeCapacityWithRespo XCTestExpectation * expectation = [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeCapacityWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 @@ -12770,7 +12793,7 @@ - (void)testSendClusterPumpConfigurationAndControlReadAttributeOperationModeWith XCTestExpectation * expectation = [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeOperationModeWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 @@ -12791,7 +12814,7 @@ - (void)testSendClusterPumpConfigurationAndControlWriteAttributeOperationModeWit XCTestExpectation * expectation = [self expectationWithDescription:@"PumpConfigurationAndControlWriteAttributeOperationModeWithValue"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 @@ -12813,7 +12836,7 @@ - (void)testSendClusterPumpConfigurationAndControlReadAttributeClusterRevisionWi XCTestExpectation * expectation = [self expectationWithDescription:@"PumpConfigurationAndControlReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPPumpConfigurationAndControl * cluster = [[CHIPPumpConfigurationAndControl alloc] initWithDevice:device endpoint:1 @@ -12834,7 +12857,7 @@ - (void)testSendClusterRelativeHumidityMeasurementReadAttributeMeasuredValueWith XCTestExpectation * expectation = [self expectationWithDescription:@"RelativeHumidityMeasurementReadAttributeMeasuredValueWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPRelativeHumidityMeasurement * cluster = [[CHIPRelativeHumidityMeasurement alloc] initWithDevice:device endpoint:1 @@ -12855,7 +12878,7 @@ - (void)testSendClusterRelativeHumidityMeasurementReadAttributeMinMeasuredValueW XCTestExpectation * expectation = [self expectationWithDescription:@"RelativeHumidityMeasurementReadAttributeMinMeasuredValueWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPRelativeHumidityMeasurement * cluster = [[CHIPRelativeHumidityMeasurement alloc] initWithDevice:device endpoint:1 @@ -12876,7 +12899,7 @@ - (void)testSendClusterRelativeHumidityMeasurementReadAttributeMaxMeasuredValueW XCTestExpectation * expectation = [self expectationWithDescription:@"RelativeHumidityMeasurementReadAttributeMaxMeasuredValueWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPRelativeHumidityMeasurement * cluster = [[CHIPRelativeHumidityMeasurement alloc] initWithDevice:device endpoint:1 @@ -12897,7 +12920,7 @@ - (void)testSendClusterRelativeHumidityMeasurementReadAttributeClusterRevisionWi XCTestExpectation * expectation = [self expectationWithDescription:@"RelativeHumidityMeasurementReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPRelativeHumidityMeasurement * cluster = [[CHIPRelativeHumidityMeasurement alloc] initWithDevice:device endpoint:1 @@ -12917,7 +12940,7 @@ - (void)testSendClusterScenesReadAttributeSceneCountWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"ScenesReadAttributeSceneCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPScenes * cluster = [[CHIPScenes alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -12935,7 +12958,7 @@ - (void)testSendClusterScenesReadAttributeCurrentSceneWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"ScenesReadAttributeCurrentSceneWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPScenes * cluster = [[CHIPScenes alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -12953,7 +12976,7 @@ - (void)testSendClusterScenesReadAttributeCurrentGroupWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"ScenesReadAttributeCurrentGroupWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPScenes * cluster = [[CHIPScenes alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -12971,7 +12994,7 @@ - (void)testSendClusterScenesReadAttributeSceneValidWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"ScenesReadAttributeSceneValidWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPScenes * cluster = [[CHIPScenes alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -12989,7 +13012,7 @@ - (void)testSendClusterScenesReadAttributeNameSupportWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"ScenesReadAttributeNameSupportWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPScenes * cluster = [[CHIPScenes alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -13007,7 +13030,7 @@ - (void)testSendClusterScenesReadAttributeClusterRevisionWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"ScenesReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPScenes * cluster = [[CHIPScenes alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -13026,7 +13049,7 @@ - (void)testSendClusterSoftwareDiagnosticsReadAttributeCurrentHeapFreeWithRespon XCTestExpectation * expectation = [self expectationWithDescription:@"SoftwareDiagnosticsReadAttributeCurrentHeapFreeWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPSoftwareDiagnostics * cluster = [[CHIPSoftwareDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -13045,7 +13068,7 @@ - (void)testSendClusterSoftwareDiagnosticsReadAttributeCurrentHeapUsedWithRespon XCTestExpectation * expectation = [self expectationWithDescription:@"SoftwareDiagnosticsReadAttributeCurrentHeapUsedWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPSoftwareDiagnostics * cluster = [[CHIPSoftwareDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -13064,7 +13087,7 @@ - (void)testSendClusterSoftwareDiagnosticsReadAttributeCurrentHeapHighWatermarkW XCTestExpectation * expectation = [self expectationWithDescription:@"SoftwareDiagnosticsReadAttributeCurrentHeapHighWatermarkWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPSoftwareDiagnostics * cluster = [[CHIPSoftwareDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -13083,7 +13106,7 @@ - (void)testSendClusterSoftwareDiagnosticsReadAttributeClusterRevisionWithRespon XCTestExpectation * expectation = [self expectationWithDescription:@"SoftwareDiagnosticsReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPSoftwareDiagnostics * cluster = [[CHIPSoftwareDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -13101,7 +13124,7 @@ - (void)testSendClusterSwitchReadAttributeNumberOfPositionsWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"SwitchReadAttributeNumberOfPositionsWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPSwitch * cluster = [[CHIPSwitch alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -13119,7 +13142,7 @@ - (void)testSendClusterSwitchReadAttributeCurrentPositionWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"SwitchReadAttributeCurrentPositionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPSwitch * cluster = [[CHIPSwitch alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -13137,7 +13160,7 @@ - (void)testSendClusterSwitchReadAttributeClusterRevisionWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"SwitchReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPSwitch * cluster = [[CHIPSwitch alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -13155,7 +13178,7 @@ - (void)testSendClusterTvChannelReadAttributeTvChannelListWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"TvChannelReadAttributeTvChannelListWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTvChannel * cluster = [[CHIPTvChannel alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -13173,7 +13196,7 @@ - (void)testSendClusterTvChannelReadAttributeTvChannelLineupWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"TvChannelReadAttributeTvChannelLineupWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTvChannel * cluster = [[CHIPTvChannel alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -13192,7 +13215,7 @@ - (void)testSendClusterTvChannelReadAttributeCurrentTvChannelWithResponseHandler XCTestExpectation * expectation = [self expectationWithDescription:@"TvChannelReadAttributeCurrentTvChannelWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTvChannel * cluster = [[CHIPTvChannel alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -13210,7 +13233,7 @@ - (void)testSendClusterTvChannelReadAttributeClusterRevisionWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"TvChannelReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTvChannel * cluster = [[CHIPTvChannel alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -13229,7 +13252,7 @@ - (void)testSendClusterTargetNavigatorReadAttributeTargetNavigatorListWithRespon XCTestExpectation * expectation = [self expectationWithDescription:@"TargetNavigatorReadAttributeTargetNavigatorListWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTargetNavigator * cluster = [[CHIPTargetNavigator alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -13248,7 +13271,7 @@ - (void)testSendClusterTargetNavigatorReadAttributeClusterRevisionWithResponseHa XCTestExpectation * expectation = [self expectationWithDescription:@"TargetNavigatorReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTargetNavigator * cluster = [[CHIPTargetNavigator alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -13267,7 +13290,7 @@ - (void)testSendClusterTemperatureMeasurementReadAttributeMeasuredValueWithRespo XCTestExpectation * expectation = [self expectationWithDescription:@"TemperatureMeasurementReadAttributeMeasuredValueWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTemperatureMeasurement * cluster = [[CHIPTemperatureMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -13286,7 +13309,7 @@ - (void)testSendClusterTemperatureMeasurementReadAttributeMinMeasuredValueWithRe XCTestExpectation * expectation = [self expectationWithDescription:@"TemperatureMeasurementReadAttributeMinMeasuredValueWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTemperatureMeasurement * cluster = [[CHIPTemperatureMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -13305,7 +13328,7 @@ - (void)testSendClusterTemperatureMeasurementReadAttributeMaxMeasuredValueWithRe XCTestExpectation * expectation = [self expectationWithDescription:@"TemperatureMeasurementReadAttributeMaxMeasuredValueWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTemperatureMeasurement * cluster = [[CHIPTemperatureMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -13324,7 +13347,7 @@ - (void)testSendClusterTemperatureMeasurementReadAttributeClusterRevisionWithRes XCTestExpectation * expectation = [self expectationWithDescription:@"TemperatureMeasurementReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPTemperatureMeasurement * cluster = [[CHIPTemperatureMeasurement alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -13343,7 +13366,7 @@ - (void)testSendClusterThermostatReadAttributeLocalTemperatureWithResponseHandle XCTestExpectation * expectation = [self expectationWithDescription:@"ThermostatReadAttributeLocalTemperatureWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -13362,7 +13385,7 @@ - (void)testSendClusterThermostatReadAttributeAbsMinHeatSetpointLimitWithRespons XCTestExpectation * expectation = [self expectationWithDescription:@"ThermostatReadAttributeAbsMinHeatSetpointLimitWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -13381,7 +13404,7 @@ - (void)testSendClusterThermostatReadAttributeAbsMaxHeatSetpointLimitWithRespons XCTestExpectation * expectation = [self expectationWithDescription:@"ThermostatReadAttributeAbsMaxHeatSetpointLimitWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -13400,7 +13423,7 @@ - (void)testSendClusterThermostatReadAttributeAbsMinCoolSetpointLimitWithRespons XCTestExpectation * expectation = [self expectationWithDescription:@"ThermostatReadAttributeAbsMinCoolSetpointLimitWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -13419,7 +13442,7 @@ - (void)testSendClusterThermostatReadAttributeAbsMaxCoolSetpointLimitWithRespons XCTestExpectation * expectation = [self expectationWithDescription:@"ThermostatReadAttributeAbsMaxCoolSetpointLimitWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -13438,7 +13461,7 @@ - (void)testSendClusterThermostatReadAttributeOccupiedCoolingSetpointWithRespons XCTestExpectation * expectation = [self expectationWithDescription:@"ThermostatReadAttributeOccupiedCoolingSetpointWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -13456,7 +13479,7 @@ - (void)testSendClusterThermostatWriteAttributeOccupiedCoolingSetpointWithValue { XCTestExpectation * expectation = [self expectationWithDescription:@"ThermostatWriteAttributeOccupiedCoolingSetpointWithValue"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -13476,7 +13499,7 @@ - (void)testSendClusterThermostatReadAttributeOccupiedHeatingSetpointWithRespons XCTestExpectation * expectation = [self expectationWithDescription:@"ThermostatReadAttributeOccupiedHeatingSetpointWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -13494,7 +13517,7 @@ - (void)testSendClusterThermostatWriteAttributeOccupiedHeatingSetpointWithValue { XCTestExpectation * expectation = [self expectationWithDescription:@"ThermostatWriteAttributeOccupiedHeatingSetpointWithValue"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -13514,7 +13537,7 @@ - (void)testSendClusterThermostatReadAttributeMinHeatSetpointLimitWithResponseHa XCTestExpectation * expectation = [self expectationWithDescription:@"ThermostatReadAttributeMinHeatSetpointLimitWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -13532,7 +13555,7 @@ - (void)testSendClusterThermostatWriteAttributeMinHeatSetpointLimitWithValue { XCTestExpectation * expectation = [self expectationWithDescription:@"ThermostatWriteAttributeMinHeatSetpointLimitWithValue"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -13552,7 +13575,7 @@ - (void)testSendClusterThermostatReadAttributeMaxHeatSetpointLimitWithResponseHa XCTestExpectation * expectation = [self expectationWithDescription:@"ThermostatReadAttributeMaxHeatSetpointLimitWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -13570,7 +13593,7 @@ - (void)testSendClusterThermostatWriteAttributeMaxHeatSetpointLimitWithValue { XCTestExpectation * expectation = [self expectationWithDescription:@"ThermostatWriteAttributeMaxHeatSetpointLimitWithValue"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -13590,7 +13613,7 @@ - (void)testSendClusterThermostatReadAttributeMinCoolSetpointLimitWithResponseHa XCTestExpectation * expectation = [self expectationWithDescription:@"ThermostatReadAttributeMinCoolSetpointLimitWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -13608,7 +13631,7 @@ - (void)testSendClusterThermostatWriteAttributeMinCoolSetpointLimitWithValue { XCTestExpectation * expectation = [self expectationWithDescription:@"ThermostatWriteAttributeMinCoolSetpointLimitWithValue"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -13628,7 +13651,7 @@ - (void)testSendClusterThermostatReadAttributeMaxCoolSetpointLimitWithResponseHa XCTestExpectation * expectation = [self expectationWithDescription:@"ThermostatReadAttributeMaxCoolSetpointLimitWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -13646,7 +13669,7 @@ - (void)testSendClusterThermostatWriteAttributeMaxCoolSetpointLimitWithValue { XCTestExpectation * expectation = [self expectationWithDescription:@"ThermostatWriteAttributeMaxCoolSetpointLimitWithValue"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -13666,7 +13689,7 @@ - (void)testSendClusterThermostatReadAttributeControlSequenceOfOperationWithResp XCTestExpectation * expectation = [self expectationWithDescription:@"ThermostatReadAttributeControlSequenceOfOperationWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -13685,7 +13708,7 @@ - (void)testSendClusterThermostatWriteAttributeControlSequenceOfOperationWithVal XCTestExpectation * expectation = [self expectationWithDescription:@"ThermostatWriteAttributeControlSequenceOfOperationWithValue"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -13704,7 +13727,7 @@ - (void)testSendClusterThermostatReadAttributeSystemModeWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"ThermostatReadAttributeSystemModeWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -13722,7 +13745,7 @@ - (void)testSendClusterThermostatWriteAttributeSystemModeWithValue { XCTestExpectation * expectation = [self expectationWithDescription:@"ThermostatWriteAttributeSystemModeWithValue"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -13741,7 +13764,7 @@ - (void)testSendClusterThermostatReadAttributeStartOfWeekWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"ThermostatReadAttributeStartOfWeekWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -13760,7 +13783,7 @@ - (void)testSendClusterThermostatReadAttributeNumberOfWeeklyTransitionsWithRespo XCTestExpectation * expectation = [self expectationWithDescription:@"ThermostatReadAttributeNumberOfWeeklyTransitionsWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -13779,7 +13802,7 @@ - (void)testSendClusterThermostatReadAttributeNumberOfDailyTransitionsWithRespon XCTestExpectation * expectation = [self expectationWithDescription:@"ThermostatReadAttributeNumberOfDailyTransitionsWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -13797,7 +13820,7 @@ - (void)testSendClusterThermostatReadAttributeFeatureMapWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"ThermostatReadAttributeFeatureMapWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -13816,7 +13839,7 @@ - (void)testSendClusterThermostatReadAttributeClusterRevisionWithResponseHandler XCTestExpectation * expectation = [self expectationWithDescription:@"ThermostatReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThermostat * cluster = [[CHIPThermostat alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -13835,7 +13858,7 @@ - (void)testSendClusterThermostatUserInterfaceConfigurationReadAttributeTemperat XCTestExpectation * expectation = [self expectationWithDescription:@"ThermostatUserInterfaceConfigurationReadAttributeTemperatureDisplayModeWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThermostatUserInterfaceConfiguration * cluster = [[CHIPThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 @@ -13856,7 +13879,7 @@ - (void)testSendClusterThermostatUserInterfaceConfigurationWriteAttributeTempera XCTestExpectation * expectation = [self expectationWithDescription:@"ThermostatUserInterfaceConfigurationWriteAttributeTemperatureDisplayModeWithValue"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThermostatUserInterfaceConfiguration * cluster = [[CHIPThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 @@ -13878,7 +13901,7 @@ - (void)testSendClusterThermostatUserInterfaceConfigurationReadAttributeKeypadLo XCTestExpectation * expectation = [self expectationWithDescription:@"ThermostatUserInterfaceConfigurationReadAttributeKeypadLockoutWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThermostatUserInterfaceConfiguration * cluster = [[CHIPThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 @@ -13899,7 +13922,7 @@ - (void)testSendClusterThermostatUserInterfaceConfigurationWriteAttributeKeypadL XCTestExpectation * expectation = [self expectationWithDescription:@"ThermostatUserInterfaceConfigurationWriteAttributeKeypadLockoutWithValue"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThermostatUserInterfaceConfiguration * cluster = [[CHIPThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 @@ -13922,7 +13945,7 @@ - (void)testSendClusterThermostatUserInterfaceConfigurationReadAttributeSchedule [self expectationWithDescription: @"ThermostatUserInterfaceConfigurationReadAttributeScheduleProgrammingVisibilityWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThermostatUserInterfaceConfiguration * cluster = [[CHIPThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 @@ -13943,7 +13966,7 @@ - (void)testSendClusterThermostatUserInterfaceConfigurationWriteAttributeSchedul XCTestExpectation * expectation = [self expectationWithDescription:@"ThermostatUserInterfaceConfigurationWriteAttributeScheduleProgrammingVisibilityWithValue"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThermostatUserInterfaceConfiguration * cluster = [[CHIPThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 @@ -13967,7 +13990,7 @@ - (void)testSendClusterThermostatUserInterfaceConfigurationReadAttributeClusterR XCTestExpectation * expectation = [self expectationWithDescription:@"ThermostatUserInterfaceConfigurationReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThermostatUserInterfaceConfiguration * cluster = [[CHIPThermostatUserInterfaceConfiguration alloc] initWithDevice:device endpoint:1 @@ -13988,7 +14011,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeChannelWithResponseH XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeChannelWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14007,7 +14030,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRoutingRoleWithRespo XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRoutingRoleWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14026,7 +14049,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeNetworkNameWithRespo XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeNetworkNameWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14045,7 +14068,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributePanIdWithResponseHan XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributePanIdWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14064,7 +14087,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeExtendedPanIdWithRes XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeExtendedPanIdWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14083,7 +14106,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeMeshLocalPrefixWithR XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeMeshLocalPrefixWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14102,7 +14125,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeOverrunCountWithResp XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeOverrunCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14121,7 +14144,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeNeighborTableListWit XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeNeighborTableListWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14140,7 +14163,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRouteTableListWithRe XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRouteTableListWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14159,7 +14182,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributePartitionIdWithRespo XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributePartitionIdWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14178,7 +14201,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeWeightingWithRespons XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeWeightingWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14197,7 +14220,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeDataVersionWithRespo XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeDataVersionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14216,7 +14239,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeStableDataVersionWit XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeStableDataVersionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14235,7 +14258,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeLeaderRouterIdWithRe XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeLeaderRouterIdWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14254,7 +14277,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeDetachedRoleCountWit XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeDetachedRoleCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14273,7 +14296,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeChildRoleCountWithRe XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeChildRoleCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14292,7 +14315,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRouterRoleCountWithR XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRouterRoleCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14311,7 +14334,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeLeaderRoleCountWithR XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeLeaderRoleCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14330,7 +14353,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeAttachAttemptCountWi XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeAttachAttemptCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14349,7 +14372,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributePartitionIdChangeCou XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributePartitionIdChangeCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14368,7 +14391,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeBetterPartitionAttac XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeBetterPartitionAttachAttemptCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14387,7 +14410,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeParentChangeCountWit XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeParentChangeCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14406,7 +14429,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxTotalCountWithResp XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxTotalCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14425,7 +14448,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxUnicastCountWithRe XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxUnicastCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14444,7 +14467,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxBroadcastCountWith XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxBroadcastCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14463,7 +14486,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxAckRequestedCountW XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxAckRequestedCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14482,7 +14505,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxAckedCountWithResp XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxAckedCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14501,7 +14524,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxNoAckRequestedCoun XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxNoAckRequestedCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14520,7 +14543,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxDataCountWithRespo XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxDataCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14539,7 +14562,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxDataPollCountWithR XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxDataPollCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14558,7 +14581,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxBeaconCountWithRes XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxBeaconCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14577,7 +14600,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxBeaconRequestCount XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxBeaconRequestCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14596,7 +14619,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxOtherCountWithResp XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxOtherCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14615,7 +14638,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxRetryCountWithResp XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxRetryCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14634,7 +14657,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxDirectMaxRetryExpi XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxDirectMaxRetryExpiryCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14653,7 +14676,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxIndirectMaxRetryEx XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxIndirectMaxRetryExpiryCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14672,7 +14695,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxErrCcaCountWithRes XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxErrCcaCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14691,7 +14714,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxErrAbortCountWithR XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxErrAbortCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14710,7 +14733,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeTxErrBusyChannelCoun XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeTxErrBusyChannelCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14729,7 +14752,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxTotalCountWithResp XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxTotalCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14748,7 +14771,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxUnicastCountWithRe XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxUnicastCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14767,7 +14790,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxBroadcastCountWith XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxBroadcastCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14786,7 +14809,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxDataCountWithRespo XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxDataCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14805,7 +14828,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxDataPollCountWithR XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxDataPollCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14824,7 +14847,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxBeaconCountWithRes XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxBeaconCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14843,7 +14866,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxBeaconRequestCount XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxBeaconRequestCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14862,7 +14885,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxOtherCountWithResp XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxOtherCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14881,7 +14904,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxAddressFilteredCou XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxAddressFilteredCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14900,7 +14923,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxDestAddrFilteredCo XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxDestAddrFilteredCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14919,7 +14942,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxDuplicatedCountWit XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxDuplicatedCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14938,7 +14961,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxErrNoFrameCountWit XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxErrNoFrameCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14957,7 +14980,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxErrUnknownNeighbor XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxErrUnknownNeighborCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14976,7 +14999,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxErrInvalidSrcAddrC XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxErrInvalidSrcAddrCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -14995,7 +15018,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxErrSecCountWithRes XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxErrSecCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -15014,7 +15037,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxErrFcsCountWithRes XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxErrFcsCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -15033,7 +15056,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeRxErrOtherCountWithR XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeRxErrOtherCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -15052,7 +15075,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeActiveTimestampWithR XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeActiveTimestampWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -15071,7 +15094,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributePendingTimestampWith XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributePendingTimestampWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -15090,7 +15113,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeDelayWithResponseHan XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeDelayWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -15109,7 +15132,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeSecurityPolicyWithRe XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeSecurityPolicyWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -15128,7 +15151,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeChannelMaskWithRespo XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeChannelMaskWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -15147,7 +15170,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeOperationalDatasetCo XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeOperationalDatasetComponentsWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -15166,7 +15189,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeActiveNetworkFaultsL XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeActiveNetworkFaultsListWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -15185,7 +15208,7 @@ - (void)testSendClusterThreadNetworkDiagnosticsReadAttributeClusterRevisionWithR XCTestExpectation * expectation = [self expectationWithDescription:@"ThreadNetworkDiagnosticsReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPThreadNetworkDiagnostics * cluster = [[CHIPThreadNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -15204,7 +15227,7 @@ - (void)testSendClusterWakeOnLanReadAttributeWakeOnLanMacAddressWithResponseHand XCTestExpectation * expectation = [self expectationWithDescription:@"WakeOnLanReadAttributeWakeOnLanMacAddressWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWakeOnLan * cluster = [[CHIPWakeOnLan alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -15222,7 +15245,7 @@ - (void)testSendClusterWakeOnLanReadAttributeClusterRevisionWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"WakeOnLanReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWakeOnLan * cluster = [[CHIPWakeOnLan alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -15241,7 +15264,7 @@ - (void)testSendClusterWiFiNetworkDiagnosticsReadAttributeBssidWithResponseHandl XCTestExpectation * expectation = [self expectationWithDescription:@"WiFiNetworkDiagnosticsReadAttributeBssidWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -15260,7 +15283,7 @@ - (void)testSendClusterWiFiNetworkDiagnosticsReadAttributeSecurityTypeWithRespon XCTestExpectation * expectation = [self expectationWithDescription:@"WiFiNetworkDiagnosticsReadAttributeSecurityTypeWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -15279,7 +15302,7 @@ - (void)testSendClusterWiFiNetworkDiagnosticsReadAttributeWiFiVersionWithRespons XCTestExpectation * expectation = [self expectationWithDescription:@"WiFiNetworkDiagnosticsReadAttributeWiFiVersionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -15298,7 +15321,7 @@ - (void)testSendClusterWiFiNetworkDiagnosticsReadAttributeChannelNumberWithRespo XCTestExpectation * expectation = [self expectationWithDescription:@"WiFiNetworkDiagnosticsReadAttributeChannelNumberWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -15317,7 +15340,7 @@ - (void)testSendClusterWiFiNetworkDiagnosticsReadAttributeRssiWithResponseHandle XCTestExpectation * expectation = [self expectationWithDescription:@"WiFiNetworkDiagnosticsReadAttributeRssiWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -15336,7 +15359,7 @@ - (void)testSendClusterWiFiNetworkDiagnosticsReadAttributeBeaconLostCountWithRes XCTestExpectation * expectation = [self expectationWithDescription:@"WiFiNetworkDiagnosticsReadAttributeBeaconLostCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -15355,7 +15378,7 @@ - (void)testSendClusterWiFiNetworkDiagnosticsReadAttributeBeaconRxCountWithRespo XCTestExpectation * expectation = [self expectationWithDescription:@"WiFiNetworkDiagnosticsReadAttributeBeaconRxCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -15374,7 +15397,7 @@ - (void)testSendClusterWiFiNetworkDiagnosticsReadAttributePacketMulticastRxCount XCTestExpectation * expectation = [self expectationWithDescription:@"WiFiNetworkDiagnosticsReadAttributePacketMulticastRxCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -15393,7 +15416,7 @@ - (void)testSendClusterWiFiNetworkDiagnosticsReadAttributePacketMulticastTxCount XCTestExpectation * expectation = [self expectationWithDescription:@"WiFiNetworkDiagnosticsReadAttributePacketMulticastTxCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -15412,7 +15435,7 @@ - (void)testSendClusterWiFiNetworkDiagnosticsReadAttributePacketUnicastRxCountWi XCTestExpectation * expectation = [self expectationWithDescription:@"WiFiNetworkDiagnosticsReadAttributePacketUnicastRxCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -15431,7 +15454,7 @@ - (void)testSendClusterWiFiNetworkDiagnosticsReadAttributePacketUnicastTxCountWi XCTestExpectation * expectation = [self expectationWithDescription:@"WiFiNetworkDiagnosticsReadAttributePacketUnicastTxCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -15450,7 +15473,7 @@ - (void)testSendClusterWiFiNetworkDiagnosticsReadAttributeCurrentMaxRateWithResp XCTestExpectation * expectation = [self expectationWithDescription:@"WiFiNetworkDiagnosticsReadAttributeCurrentMaxRateWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -15469,7 +15492,7 @@ - (void)testSendClusterWiFiNetworkDiagnosticsReadAttributeOverrunCountWithRespon XCTestExpectation * expectation = [self expectationWithDescription:@"WiFiNetworkDiagnosticsReadAttributeOverrunCountWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -15488,7 +15511,7 @@ - (void)testSendClusterWiFiNetworkDiagnosticsReadAttributeClusterRevisionWithRes XCTestExpectation * expectation = [self expectationWithDescription:@"WiFiNetworkDiagnosticsReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWiFiNetworkDiagnostics * cluster = [[CHIPWiFiNetworkDiagnostics alloc] initWithDevice:device endpoint:0 queue:queue]; XCTAssertNotNil(cluster); @@ -15506,7 +15529,7 @@ - (void)testSendClusterWindowCoveringReadAttributeTypeWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"WindowCoveringReadAttributeTypeWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -15525,7 +15548,7 @@ - (void)testSendClusterWindowCoveringReadAttributeCurrentPositionLiftWithRespons XCTestExpectation * expectation = [self expectationWithDescription:@"WindowCoveringReadAttributeCurrentPositionLiftWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -15544,7 +15567,7 @@ - (void)testSendClusterWindowCoveringReadAttributeCurrentPositionTiltWithRespons XCTestExpectation * expectation = [self expectationWithDescription:@"WindowCoveringReadAttributeCurrentPositionTiltWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -15563,7 +15586,7 @@ - (void)testSendClusterWindowCoveringReadAttributeConfigStatusWithResponseHandle XCTestExpectation * expectation = [self expectationWithDescription:@"WindowCoveringReadAttributeConfigStatusWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -15582,7 +15605,7 @@ - (void)testSendClusterWindowCoveringReadAttributeCurrentPositionLiftPercentageW XCTestExpectation * expectation = [self expectationWithDescription:@"WindowCoveringReadAttributeCurrentPositionLiftPercentageWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -15601,7 +15624,7 @@ - (void)testSendClusterWindowCoveringReadAttributeCurrentPositionTiltPercentageW XCTestExpectation * expectation = [self expectationWithDescription:@"WindowCoveringReadAttributeCurrentPositionTiltPercentageWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -15620,7 +15643,7 @@ - (void)testSendClusterWindowCoveringReadAttributeOperationalStatusWithResponseH XCTestExpectation * expectation = [self expectationWithDescription:@"WindowCoveringReadAttributeOperationalStatusWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -15639,7 +15662,7 @@ - (void)testSendClusterWindowCoveringReadAttributeTargetPositionLiftPercent100th XCTestExpectation * expectation = [self expectationWithDescription:@"WindowCoveringReadAttributeTargetPositionLiftPercent100thsWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -15658,7 +15681,7 @@ - (void)testSendClusterWindowCoveringReadAttributeTargetPositionTiltPercent100th XCTestExpectation * expectation = [self expectationWithDescription:@"WindowCoveringReadAttributeTargetPositionTiltPercent100thsWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -15677,7 +15700,7 @@ - (void)testSendClusterWindowCoveringReadAttributeEndProductTypeWithResponseHand XCTestExpectation * expectation = [self expectationWithDescription:@"WindowCoveringReadAttributeEndProductTypeWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -15696,7 +15719,7 @@ - (void)testSendClusterWindowCoveringReadAttributeCurrentPositionLiftPercent100t XCTestExpectation * expectation = [self expectationWithDescription:@"WindowCoveringReadAttributeCurrentPositionLiftPercent100thsWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -15715,7 +15738,7 @@ - (void)testSendClusterWindowCoveringReadAttributeCurrentPositionTiltPercent100t XCTestExpectation * expectation = [self expectationWithDescription:@"WindowCoveringReadAttributeCurrentPositionTiltPercent100thsWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -15734,7 +15757,7 @@ - (void)testSendClusterWindowCoveringReadAttributeInstalledOpenLimitLiftWithResp XCTestExpectation * expectation = [self expectationWithDescription:@"WindowCoveringReadAttributeInstalledOpenLimitLiftWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -15753,7 +15776,7 @@ - (void)testSendClusterWindowCoveringReadAttributeInstalledClosedLimitLiftWithRe XCTestExpectation * expectation = [self expectationWithDescription:@"WindowCoveringReadAttributeInstalledClosedLimitLiftWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -15772,7 +15795,7 @@ - (void)testSendClusterWindowCoveringReadAttributeInstalledOpenLimitTiltWithResp XCTestExpectation * expectation = [self expectationWithDescription:@"WindowCoveringReadAttributeInstalledOpenLimitTiltWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -15791,7 +15814,7 @@ - (void)testSendClusterWindowCoveringReadAttributeInstalledClosedLimitTiltWithRe XCTestExpectation * expectation = [self expectationWithDescription:@"WindowCoveringReadAttributeInstalledClosedLimitTiltWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -15809,7 +15832,7 @@ - (void)testSendClusterWindowCoveringReadAttributeModeWithResponseHandler { XCTestExpectation * expectation = [self expectationWithDescription:@"WindowCoveringReadAttributeModeWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -15827,7 +15850,7 @@ - (void)testSendClusterWindowCoveringWriteAttributeModeWithValue { XCTestExpectation * expectation = [self expectationWithDescription:@"WindowCoveringWriteAttributeModeWithValue"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -15847,7 +15870,7 @@ - (void)testSendClusterWindowCoveringReadAttributeSafetyStatusWithResponseHandle XCTestExpectation * expectation = [self expectationWithDescription:@"WindowCoveringReadAttributeSafetyStatusWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster); @@ -15866,7 +15889,7 @@ - (void)testSendClusterWindowCoveringReadAttributeClusterRevisionWithResponseHan XCTestExpectation * expectation = [self expectationWithDescription:@"WindowCoveringReadAttributeClusterRevisionWithResponseHandler"]; - CHIPDevice * device = GetPairedDevice(kDeviceId); + CHIPDevice * device = GetConnectedDevice(); dispatch_queue_t queue = dispatch_get_main_queue(); CHIPWindowCovering * cluster = [[CHIPWindowCovering alloc] initWithDevice:device endpoint:1 queue:queue]; XCTAssertNotNil(cluster);