hammerspoon2-docs
    Preparing search index...

    Function createPortAtPath

    • Creates a serial port object for an arbitrary device path. Unlike createPortNamed(), the path does not need to correspond to a port currently discoverable via IOKit — it is only validated when you call open().

      Parameters

      • path: string

        The device path (e.g. "/dev/cu.usbserial-1420")

      Returns HSSerialPort

      A new HSSerialPort