def __init__(self, baudrate=None): try: self.ports = [p for p, _, _ in s.get_ports()] if baudrate not in BAUD_LIST: self.choose_baud = False self.baudrate = baudrate except TypeError: pass
def __init__(self): try: self.ports = [p for p, _, _ in s.get_ports()] if self.ports: self.port = self.ports[0] self.bauds = [4800, 9600, 19200, 38400, 43000, 56000, 57600, 115200] except TypeError: pass
def refresh_ports(self): """ This method refreshes the port list """ try: self.ports = [p for p, _, _ in s.get_ports()] except TypeError: pass
def refresh_ports(self): """ This method refreshes the port list """ try: self.ports = [p for p, _, _ in s.get_ports()] except TypeError: pass
def __init__(self): try: self.ports = [p for p, _, _ in s.get_ports()] if self.ports: self.port = self.ports[0] self.bauds = [ 4800, 9600, 19200, 38400, 43000, 56000, 57600, 115200 ] except TypeError: pass
def __init__(self, baudrate=None): self.is_tcpip = False self.capture_thread = DicoverThread() self.capture_thread.wants_abort = False self.capture_thread.display = self.display self.capture_thread.start() try: self.ports = [p for p, _, _ in s.get_ports()] self.ports.append("TCP/IP") if baudrate not in BAUD_LIST: self.choose_baud = False self.baudrate = baudrate except TypeError: pass
def __init__(self): try: self.ports = [p for p, _, _ in serial_link.get_ports()] except TypeError: pass
def __init__(self): try: self.ports = [p for p, _, _ in s.get_ports()] except TypeError: pass