hammerspoon2-docs
    Preparing search index...

    Function inquiry

    • Searches for discoverable classic Bluetooth devices nearby, such as headphones in pairing mode. Only one search can run at a time.

      This interrupts the audio of connected Bluetooth headphones while it runs.

      Parameters

      • Optionaloptions: Record<string, any> | null

        An object with seconds (number, default 10, at most 255): how long to search for

      Returns Promise<HSBluetoothDevice[]>

      A Promise resolving to the devices found when the search ends, or when stopInquiry() is called. Rejects if a search is already running, the options are invalid, or the search fails