@@ -1453,8 +1453,8 @@ async def TestSubscriptionResumptionCapacityStep1(self, nodeid: int, endpoint: i
1453
1453
1454
1454
return True
1455
1455
1456
- def TestSubscriptionResumptionCapacityStep2 (self , nodeid : int , endpoint : int , remote_ip : str , ssh_port : int ,
1457
- remote_server_app : str , subscription_capacity : int ):
1456
+ async def TestSubscriptionResumptionCapacityStep2 (self , nodeid : int , endpoint : int , remote_ip : str , ssh_port : int ,
1457
+ remote_server_app : str , subscription_capacity : int ):
1458
1458
try :
1459
1459
self .logger .info ("Restart remote deivce" )
1460
1460
extra_agrs = f"--thread --discriminator 3840 --subscription-capacity { subscription_capacity } "
@@ -1468,8 +1468,9 @@ def TestSubscriptionResumptionCapacityStep2(self, nodeid: int, endpoint: int, re
1468
1468
self .logger .info ("Send a new subscription request from the second controller" )
1469
1469
# Close previous session so that the second controller will res-establish the session with the remote device
1470
1470
self .devCtrl .CloseSession (nodeid )
1471
- self .devCtrl .ZCLSubscribeAttribute (
1472
- "BasicInformation" , "NodeLabel" , nodeid , endpoint , 1 , 50 , keepSubscriptions = True , autoResubscribe = False )
1471
+ await self .devCtrl .ReadAttribute (nodeid , [(endpoint , Clusters .BasicInformation .Attributes .NodeLabel )], None ,
1472
+ False , reportInterval = (1 , 50 ),
1473
+ keepSubscriptions = True , autoResubscribe = False )
1473
1474
1474
1475
if restartRemoteThread .is_alive ():
1475
1476
# Thread join timed out
0 commit comments