@@ -758,7 +758,7 @@ - (void)test004_Subscribe
758
758
MTRBaseDevice * device = GetConnectedDevice ();
759
759
dispatch_queue_t queue = dispatch_get_main_queue ();
760
760
761
- __auto_type * params = [[MTRSubscribeParams alloc ] initWithMinInterval: @(2 ) maxInterval: @(10 )];
761
+ __auto_type * params = [[MTRSubscribeParams alloc ] initWithMinInterval: @(0 ) maxInterval: @(10 )];
762
762
[device subscribeToAttributesWithEndpointID: @1
763
763
clusterID: @6
764
764
attributeID: @0
@@ -958,7 +958,7 @@ - (void)test008_SubscribeFailure
958
958
MTRBaseDevice * device = GetConnectedDevice ();
959
959
dispatch_queue_t queue = dispatch_get_main_queue ();
960
960
961
- __auto_type * params = [[MTRSubscribeParams alloc ] initWithMinInterval: @(2 ) maxInterval: @(10 )];
961
+ __auto_type * params = [[MTRSubscribeParams alloc ] initWithMinInterval: @(0 ) maxInterval: @(10 )];
962
962
params.resubscribeAutomatically = NO ;
963
963
[device subscribeToAttributesWithEndpointID: @10000
964
964
clusterID: @6
@@ -1039,7 +1039,7 @@ - (void)test010_SubscribeWithNoParams
1039
1039
1040
1040
// Subscribe
1041
1041
XCTestExpectation * subscribeExpectation = [self expectationWithDescription: @" subscribe OnOff attribute" ];
1042
- __auto_type * params = [[MTRSubscribeParams alloc ] initWithMinInterval: @(2 ) maxInterval: @(10 )];
1042
+ __auto_type * params = [[MTRSubscribeParams alloc ] initWithMinInterval: @(0 ) maxInterval: @(10 )];
1043
1043
[device subscribeToAttributesWithEndpointID: @1
1044
1044
clusterID: @6
1045
1045
attributeID: @0
@@ -1064,7 +1064,7 @@ - (void)test010_SubscribeWithNoParams
1064
1064
1065
1065
// Setup 2nd subscriber
1066
1066
subscribeExpectation = [self expectationWithDescription: @" subscribe CurrentLevel attribute" ];
1067
- params = [[MTRSubscribeParams alloc ] initWithMinInterval: @(2 ) maxInterval: @(10 )];
1067
+ params = [[MTRSubscribeParams alloc ] initWithMinInterval: @(0 ) maxInterval: @(10 )];
1068
1068
[device subscribeToAttributesWithEndpointID: @1
1069
1069
clusterID: @8
1070
1070
attributeID: @0
@@ -1212,7 +1212,7 @@ - (void)test011_SubscribeWithParams
1212
1212
1213
1213
// Subscribe
1214
1214
XCTestExpectation * subscribeExpectation = [self expectationWithDescription: @" subscribe OnOff attribute" ];
1215
- __auto_type * params = [[MTRSubscribeParams alloc ] initWithMinInterval: @(2 ) maxInterval: @(10 )];
1215
+ __auto_type * params = [[MTRSubscribeParams alloc ] initWithMinInterval: @(0 ) maxInterval: @(10 )];
1216
1216
[device subscribeToAttributesWithEndpointID: @1
1217
1217
clusterID: @6
1218
1218
attributeID: @0
@@ -1236,7 +1236,7 @@ - (void)test011_SubscribeWithParams
1236
1236
[self waitForExpectations: @[ subscribeExpectation ] timeout: kTimeoutInSeconds ];
1237
1237
1238
1238
// Setup 2nd subscriber
1239
- MTRSubscribeParams * myParams = [[MTRSubscribeParams alloc ] initWithMinInterval: @(2 ) maxInterval: @(10 )];
1239
+ MTRSubscribeParams * myParams = [[MTRSubscribeParams alloc ] initWithMinInterval: @(0 ) maxInterval: @(10 )];
1240
1240
myParams.replaceExistingSubscriptions = YES ;
1241
1241
subscribeExpectation = [self expectationWithDescription: @" subscribe CurrentLevel attribute" ];
1242
1242
[device subscribeToAttributesWithEndpointID: @1
@@ -1393,7 +1393,7 @@ - (void)test012_SubscribeKeepingPreviousSubscription
1393
1393
1394
1394
// Subscribe
1395
1395
XCTestExpectation * subscribeExpectation = [self expectationWithDescription: @" subscribe OnOff attribute" ];
1396
- __auto_type * params = [[MTRSubscribeParams alloc ] initWithMinInterval: @(2 ) maxInterval: @(10 )];
1396
+ __auto_type * params = [[MTRSubscribeParams alloc ] initWithMinInterval: @(0 ) maxInterval: @(10 )];
1397
1397
[device subscribeToAttributesWithEndpointID: @1
1398
1398
clusterID: @6
1399
1399
attributeID: @0
@@ -1418,7 +1418,7 @@ - (void)test012_SubscribeKeepingPreviousSubscription
1418
1418
1419
1419
// Setup 2nd subscriber
1420
1420
subscribeExpectation = [self expectationWithDescription: @" subscribe CurrentLevel attribute" ];
1421
- MTRSubscribeParams * myParams = [[MTRSubscribeParams alloc ] initWithMinInterval: @(2 ) maxInterval: @(10 )];
1421
+ MTRSubscribeParams * myParams = [[MTRSubscribeParams alloc ] initWithMinInterval: @(0 ) maxInterval: @(10 )];
1422
1422
myParams.replaceExistingSubscriptions = NO ;
1423
1423
[device subscribeToAttributesWithEndpointID: @1
1424
1424
clusterID: @8
@@ -1622,7 +1622,7 @@ - (void)test013_TimedWriteAttribute
1622
1622
// subscribe, which should get the new value at the timeout
1623
1623
expectation = [self expectationWithDescription:@"Subscribed"];
1624
1624
__block void (^reportHandler)(id _Nullable values, NSError * _Nullable error);
1625
- __auto_type * params = [[MTRSubscribeParams alloc] initWithMinInterval:@(2 ) maxInterval:@(10)];
1625
+ __auto_type * params = [[MTRSubscribeParams alloc] initWithMinInterval:@(0 ) maxInterval:@(10)];
1626
1626
[device subscribeToAttributesWithEndpointID:@1
1627
1627
clusterID:@8
1628
1628
attributeID:@17
0 commit comments