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

From MozillaWiki
Jump to navigation Jump to search
Line 6: Line 6:
  interface BluetoothGattCharacteristicEvent : 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]];
  };
  };



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