BluetoothLeDeviceEvent

Tags: 2.5 Privileged

Description

The BluetoothLeDeviceEvent interface of the Bluetooth API provides access to an LE device BluetoothDevice object and its RSSI value and advertisement record, as the parameter of a devicefound event handler (see BluetoothDiscoveryHandle.ondevicefound), when fired.

Interface overview

[CheckAnyPermissions="bluetooth"]
interface BluetoothLeDeviceEvent : Event
{
  readonly attribute BluetoothDevice? device;
  readonly attribute short rssi;
  [Throws] readonly attribute ArrayBuffer? scanRecord;
};

Properties