From 3d3315bf6161e950ffc6b5dcb7ef39d1ec3e8e32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Duda?= Date: Tue, 30 Jul 2019 07:53:10 +0200 Subject: [PATCH] [thci] remove unused methods (#4034) --- tools/harness-thci/OpenThread.py | 22 ------------------- tools/harness-thci/OpenThread_WpanCtl.py | 27 ------------------------ 2 files changed, 49 deletions(-) diff --git a/tools/harness-thci/OpenThread.py b/tools/harness-thci/OpenThread.py index 20bb89c98..019c95660 100644 --- a/tools/harness-thci/OpenThread.py +++ b/tools/harness-thci/OpenThread.py @@ -711,11 +711,6 @@ class OpenThread(IThci): 'setNetworkName() Error: ' + str(e) ) - def getNetworkName(self): - """get Thread Network name""" - print('%s call getNetworkname' % self.port) - return self.__sendCommand('networkname')[0] - def setChannel(self, channel=11): """set channel of Thread device operates on. @@ -900,11 +895,6 @@ class OpenThread(IThci): 'setNetworkkey() Error: ' + str(e) ) - def getNetworkKey(self): - """get the current Thread Network master key""" - print('%s call getNetwokKey' % self.port) - return self.networkKey - def addBlockedMAC(self, xEUI): """add a given extended address to the blacklist entry @@ -1268,11 +1258,6 @@ class OpenThread(IThci): except Exception as e: ModuleHelper.WriteIntoDebugLogger('setPANID() Error: ' + str(e)) - def getPANID(self): - """get current Thread Network PAN ID""" - print('%s call getPANID' % self.port) - return self.__sendCommand('panid')[0] - def reset(self): """factory reset""" print('%s call reset' % self.port) @@ -1373,13 +1358,6 @@ class OpenThread(IThci): print('%s call getDeviceConnectionStatus' % self.port) return self.deviceConnected - def getPollingRate(self): - """get data polling rate for sleepy end device (in milliseconds) - note: not used for now - """ - print('%s call getPollingRate' % self.port) - return self.__sendCommand('pollperiod')[0] - def setPollingRate(self, iPollingRate): """set data polling rate for sleepy end device diff --git a/tools/harness-thci/OpenThread_WpanCtl.py b/tools/harness-thci/OpenThread_WpanCtl.py index 2e1e6f6d8..fc691d810 100644 --- a/tools/harness-thci/OpenThread_WpanCtl.py +++ b/tools/harness-thci/OpenThread_WpanCtl.py @@ -970,14 +970,6 @@ class OpenThread_WpanCtl(IThci): 'setNetworkName() Error: ' + str(e) ) - def getNetworkName(self): - """get Thread Network name""" - print('%s call getNetworkname' % self.port) - networkName = self.__sendCommand( - WPANCTL_CMD + 'getprop -v Network:Name' - )[0] - return self.__stripValue(networkName) - def setChannel(self, channel=15): """set channel of Thread device operates on. @@ -1216,11 +1208,6 @@ class OpenThread_WpanCtl(IThci): 'setNetworkkey() Error: ' + str(e) ) - def getNetworkKey(self): - """get the current Thread Network master key""" - print('%s call getNetwokKey' % self.port) - return self.networkKey - def addBlockedMAC(self, xEUI): """add a given extended address to the blacklist entry @@ -1631,11 +1618,6 @@ class OpenThread_WpanCtl(IThci): except Exception as e: ModuleHelper.WriteIntoDebugLogger('setPANID() Error: ' + str(e)) - def getPANID(self): - """get current Thread Network PAN ID""" - print('%s call getPANID' % self.port) - return self.__sendCommand(WPANCTL_CMD + 'getprop -v Network:PANID')[0] - def reset(self): """factory reset""" print('%s call reset' % self.port) @@ -1740,15 +1722,6 @@ class OpenThread_WpanCtl(IThci): print('%s call getDeviceConnectionStatus' % self.port) return self.deviceConnected - def getPollingRate(self): - """get data polling rate for sleepy end device (in milliseconds) - note: not used for now - """ - print('%s call getPollingRate' % self.port) - return self.__sendCommand( - WPANCTL_CMD + 'getprop -v NCP:SleepyPollInterval' - )[0] - def setPollingRate(self, iPollingRate): """set data polling rate for sleepy end device