• Scan for BLE devices

    Parameters

    • handler: ((devices: BleDevice[]) => void)

      A function that will be called with an array of devices found during the scan

        • (devices): void
        • Parameters

          Returns void

    • timeout: Number

      The scan timeout in milliseconds

    Returns Promise<void>