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

(Created page with "== Overview == '''BluetoothLeDeviceEvent''' is carried as the parameter of remote LE device found event handler ([[B2G/Bluetooth/WebBluetooth-v2/BluetoothDiscoveryHandle#ondev...")
 
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Overview ==
== Overview ==
'''BluetoothLeDeviceEvent''' is carried as the parameter of remote LE device found event handler ([[B2G/Bluetooth/WebBluetooth-v2/BluetoothDiscoveryHandle#ondevicefound|discoveryHandle.ondevicefound]]). Applications can get the [[B2G/Bluetooth/WebBluetooth-v2/BluetoothDevice#BluetoothDevice|BluetoothDevice]] object, RSSI value, and advertisement record of the found remote LE device.
'''BluetoothGattCharacteristicEvent''' is carried as the parameter of event handler [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGatt#oncharacteristicchanged|gatt.oncharacteristicchanged]]. Applications can get the updated [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattCharacteristic#BluetoothGattCharacteristic|BluetoothGattCharacteristic]] object.


== Interface ==
== Interface ==
  [CheckPermissions="bluetooth"]
  [CheckPermissions="bluetooth"]
  interface BluetoothCharacteristicEvent : Event
  interface BluetoothGattCharacteristicEvent : Event
  {
  {
   readonly attribute [[B2G/Bluetooth/WebBluetooth-v2/BluetoothDevice#BluetoothDevice|BluetoothDevice]]? [[B2G/Bluetooth/WebBluetooth-v2/BluetoothDeviceEvent#device|device]];
   readonly attribute [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattCharacteristic#BluetoothGattCharacteristic|BluetoothGattCharacteristic]] [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattCharacteristicEvent#characteristic|characteristic]];
  };
  };


== Properties ==
== Properties ==
* [[B2G/Bluetooth/WebBluetooth-v2/BluetoothCharacteristicEvent#characteristic|BluetoothCharacteristicEvent.characteristic]]
* [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattCharacteristicEvent#characteristic|BluetoothGattCharacteristicEvent.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/BluetoothGattCharacteristic#BluetoothGattCharacteristic|BluetoothGattCharacteristic]]

Latest revision as of 09:03, 22 August 2014

Overview

BluetoothGattCharacteristicEvent is carried as the parameter of event handler gatt.oncharacteristicchanged. Applications can get the updated BluetoothGattCharacteristic object.

Interface

[CheckPermissions="bluetooth"]
interface BluetoothGattCharacteristicEvent : Event
{
  readonly attribute BluetoothGattCharacteristic characteristic;
};

Properties

characteristic

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