B2G/Bluetooth/WebBluetooth-v2/BluetoothGattCharacteristicEvent

From MozillaWiki
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

characteristic

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