B2G/Bluetooth/WebBluetooth-v2/BluetoothGattCharacteristicEvent

From MozillaWiki
< B2G‎ | Bluetooth‎ | WebBluetooth-v2
Revision as of 08:29, 22 August 2014 by Btian (talk | contribs) (Created page with "== Overview == '''BluetoothLeDeviceEvent''' is carried as the parameter of remote LE device found event handler ([[B2G/Bluetooth/WebBluetooth-v2/BluetoothDiscoveryHandle#ondev...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Overview

BluetoothLeDeviceEvent is carried as the parameter of remote LE device found event handler (discoveryHandle.ondevicefound). Applications can get the BluetoothDevice object, RSSI value, and advertisement record of the found remote LE device.

Interface

[CheckPermissions="bluetooth"]
interface BluetoothCharacteristicEvent : Event
{
  readonly attribute BluetoothDevice? device;
};

Properties

device

Description
The changed characteristic.
Value type
BluetoothCharacteristic