code: def create_rflink_connection(port=None, host=None, baud=57600, protocol=RflinkProtocol,
                               packet_callback=None, event_callback=None,
                               disconnect_callback=None, ignore=None, loop=None):
      
      # use default protocol if not specified
      protocol = partial(
          protocol,
          loop=loop if loop else asyncio.get_event_loop(),
          packet_callback=packet_callback,
          event_callback=event_callback,
          disconnect_callback=disconnect_callback,
          ignore=ignore if ignore else [],
      )
  
      # setup serial connection if no transport specified
      if host:
          conn = loop.create_connection(protocol, host, port)
      else:
          baud = baud
          conn = create_serial_connection(loop, protocol, port, baud)
  
      return conn
docs: Create Rflink manager class, returns transport coroutine.