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: { seconds?: number } | null

        How to search

        • { seconds?: number }
          • Optionalseconds?: number

            How long to search for, from 1 to 255. Defaults to 10

        • null

      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