hammerspoon2-docs
    Preparing search index...

    Function peripheral

    • Looks up a BLE peripheral by its identifier.

      Hammerspoon must have seen the peripheral in a scan, or Bluetooth must already be in use, for it to be found. This lookup doesn't start Bluetooth itself, so it never shows the permission prompt.

      Parameters

      • identifier: string

        The peripheral's identifier, a UUID

      Returns HSBluetoothPeripheral | null

      The HSBluetoothPeripheral, or null if it isn't known