B2G/Bluetooth/WebBluetooth-v2/BluetoothGattCharacteristicEvent: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(Created page with "== Overview == '''BluetoothLeDeviceEvent''' is carried as the parameter of remote LE device found event handler ([[B2G/Bluetooth/WebBluetooth-v2/BluetoothDiscoveryHandle#ondev...")
 
Line 12: Line 12:
* [[B2G/Bluetooth/WebBluetooth-v2/BluetoothCharacteristicEvent#characteristic|BluetoothCharacteristicEvent.characteristic]]
* [[B2G/Bluetooth/WebBluetooth-v2/BluetoothCharacteristicEvent#characteristic|BluetoothCharacteristicEvent.characteristic]]


=== device ===
=== characteristic ===
; Description
; Description
: The changed characteristic.
: The characteristic that has been updated as a result of a remote notification event.


; Value type
; Value type
: [[B2G/Bluetooth/WebBluetooth-v2/BluetoothCharacteristic#BluetoothCharacteristic|BluetoothCharacteristic]]
: [[B2G/Bluetooth/WebBluetooth-v2/BluetoothCharacteristic#BluetoothCharacteristic|BluetoothCharacteristic]]

Revision as of 08:30, 22 August 2014

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

characteristic

Description
The characteristic that has been updated as a result of a remote notification event.
Value type
BluetoothCharacteristic