mirror of
https://github.com/espressif/openthread.git
synced 2026-08-21 01:49:52 +00:00
Add timeout parameter to NodeAPI's ping function (#1440)
* Added timeout variable to API's ping function (WIN only).
This commit is contained in:
committed by
Jonathan Hui
parent
5cd94ef937
commit
83918bc76f
@@ -429,7 +429,7 @@ class otCli:
|
||||
|
||||
return results
|
||||
|
||||
def ping(self, ipaddr, num_responses=1, size=None):
|
||||
def ping(self, ipaddr, num_responses=1, size=None, timeout=5000):
|
||||
cmd = 'ping ' + ipaddr
|
||||
if size != None:
|
||||
cmd += ' ' + str(size)
|
||||
|
||||
Reference in New Issue
Block a user