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