basic stress tester

This commit is contained in:
geeksville
2020-05-01 19:28:01 -07:00
parent 74d134d96a
commit 6df00038bc
6 changed files with 164 additions and 21 deletions

16
meshtastic/util.py Normal file
View File

@@ -0,0 +1,16 @@
import serial
import serial.tools.list_ports
def findPorts():
"""Find all ports that might have meshtastic devices
Returns:
list -- a list of device paths
"""
l = list(map(lambda port: port.device,
filter(lambda port: port.vid != None,
serial.tools.list_ports.comports())))
l.sort()
return l