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

Line 67: Line 67:
: A handler to trigger when a remote client has requested to read a local characteristic or descriptor.
: A handler to trigger when a remote client has requested to read a local characteristic or descriptor.


; Arguments in event
; Argument
: DOMString ''address''
[CheckPermissions="bluetooth"]
interface BluetoothGattAttributeReadEvent : Event
{
  readonly attribute DOMString address;
  readonly attribute short requestId;
  readonly attribute BluetoothGattCharacteristic? characteristic;
  readonly attribute BluetoothGattDescriptor? descriptor;
};
 
: ''address''
:: Address of the remote client.
:: Address of the remote client.
: short ''requestId''
: ''requestId''
:: Request id of the attribute read request.
:: Request id of the attribute read request.
: BluetoothGattCharacteristic ''characteristic?''
: ''characteristic''
:: The characteristic requested to read. Null if remote client requests to read a local descriptor.
:: The characteristic requested to read. Null if remote client requests to read a local descriptor.
: BluetoothGattDescriptor ''descriptor?''
: ''descriptor''
:: The descriptor requested to read. Null if remote client requests to read a local characteristic.
:: The descriptor requested to read. Null if remote client requests to read a local characteristic.


Confirmed users
891

edits