Add timeout parameter to NodeAPI's ping function (#1440)

* Added timeout variable to API's ping function (WIN only).
This commit is contained in:
Vitalii Kozhukhivskyi
2017-03-09 14:33:27 -08:00
committed by Jonathan Hui
parent 5cd94ef937
commit 83918bc76f
5 changed files with 12 additions and 9 deletions
+1 -1
View File
@@ -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)