hammerspoon2-docs
    Preparing search index...

    Function createPortNamed

    • Creates a serial port object for a port discovered via availablePortNames().

      Parameters

      • name: string

        The port name, as returned by availablePortNames()

      Returns HSSerialPort | null

      A new HSSerialPort, or null if no port with that name is currently connected