Version: Smart Feature Phone 3.0

BluetoothLeDeviceEvent

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#

  • BluetoothLeDeviceEvent.device

      Returns a BluetoothDevice representing the discovered remote LE device.

  • BluetoothLeDeviceEvent.rssi

      Returns the RSSI value for the remote LE device as reported by the bluetooth hardware. The value is given as 0 if no RSSI value is available.

  • BluetoothLeDeviceEvent.scanRecord

      Returns an ArrayBuffer representing the content of the advertisement record offered by the remote LE device.