mirror of
https://github.com/espressif/openthread.git
synced 2026-09-13 04:30:08 +00:00
THCI: Add long timeout for new joiner (#1469)
This commit is contained in:
@@ -1937,7 +1937,10 @@ class OpenThread(IThci):
|
|||||||
JoinerAddr = ModuleHelper.CalculateHashMac(xEUI)
|
JoinerAddr = ModuleHelper.CalculateHashMac(xEUI)
|
||||||
JoinerHashMac = hex(int(JoinerAddr)).rstrip("L").lstrip("0x")
|
JoinerHashMac = hex(int(JoinerAddr)).rstrip("L").lstrip("0x")
|
||||||
|
|
||||||
cmd = 'commissioner joiner add %s %s' % (JoinerHashMac, strPSKd)
|
# long timeout value to avoid automatic joiner removal (in seconds)
|
||||||
|
timeout = 500
|
||||||
|
|
||||||
|
cmd = 'commissioner joiner add %s %s %s' % (JoinerHashMac, strPSKd, str(timeout))
|
||||||
print cmd
|
print cmd
|
||||||
if self.__sendCommand(cmd)[0] == 'Done':
|
if self.__sendCommand(cmd)[0] == 'Done':
|
||||||
if self.logThreadStatus == self.logStatus['stop']:
|
if self.logThreadStatus == self.logStatus['stop']:
|
||||||
@@ -2533,3 +2536,6 @@ class OpenThread(IThci):
|
|||||||
cmd = 'delaytimermin %s' % iSeconds
|
cmd = 'delaytimermin %s' % iSeconds
|
||||||
print cmd
|
print cmd
|
||||||
return self.__sendCommand(cmd)[0] == 'Done'
|
return self.__sendCommand(cmd)[0] == 'Done'
|
||||||
|
|
||||||
|
def ValidateDeviceFirmware(self):
|
||||||
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user