code: def open_bled112(port, logger):
      
  
      if port is not None and port != '<auto>':
          logger.info("Using BLED112 adapter at %s", port)
          return serial.Serial(port, _BAUD_RATE, timeout=0.01, rtscts=True, exclusive=True)
  
      return _find_available_bled112(logger)
docs: Open a BLED112 adapter either by name or the first available.