Bluetooth Options interface

interface BluetoothOptions {
    allowAllDevices?: boolean;
    deviceFound?: (device: BluetoothDevice, selectFn: () => void) => boolean;
    referringDevice?: BluetoothDevice;
    scanTime?: number;
}

Properties

allowAllDevices?: boolean

Optional flag to automatically allow all devices

deviceFound?: (device: BluetoothDevice, selectFn: () => void) => boolean

A device found callback function to allow the user to select a device

referringDevice?: BluetoothDevice

An optional referring device

scanTime?: number

The amount of seconds to scan for the device (default is 10)