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

From MozillaWiki
Jump to navigation Jump to search
Line 10: Line 10:


== Properties ==
== Properties ==
* [[B2G/Bluetooth/WebBluetooth-v2/BluetoothCharacteristicEvent#characteristic|BluetoothCharacteristicEvent.characteristic]]
* [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattCharacteristicEvent#characteristic|BluetoothGattCharacteristicEvent.characteristic]]


=== characteristic ===
=== characteristic ===
Line 17: Line 17:


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

Revision as of 08:31, 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
BluetoothGattCharacteristic