Changes

Jump to: navigation, search

B2G/Bluetooth/WebBluetooth-v2/BluetoothGattServer

362 bytes added, 08:54, 24 November 2014
Event Handlers
};
: DOMString ''address''
:: Address of the connected/disconnected remote LE device.
: boolean ''connected''
:: Whether the remote LE device is connected (true) or disconnected (false).
; Argument
[CheckPermissions="bluetooth"]
interface BluetoothGattAttributeReadEvent BluetoothGattAttributeEvent : Event
{
readonly attribute DOMString address;
: A handler to trigger when a remote client has requested to write a local characteristic or descriptor.
; Arguments in eventArgument [CheckPermissions="bluetooth"] interface BluetoothGattAttributeEvent : Event { readonly attribute DOMString address; readonly attribute short requestId; readonly attribute BluetoothGattCharacteristic? characteristic; readonly attribute BluetoothGattDescriptor? descriptor; }; : ''address''
:: Address of the remote client.
: short ''requestId''
:: Request id of the attribute write request.
: BluetoothGattCharacteristic ''characteristic?''
:: The characteristic requested to write. Null if remote client requests to write a local descriptor.
: BluetoothGattDescriptor ''descriptor?''
:: The descriptor requested to write. Null if remote client requests to write a local characteristic.
: A handler to trigger when a remote client has requested to execute all pending write operations.
; Arguments in eventArgument [CheckPermissions="bluetooth"] interface BluetoothExecuteWriteEvent : Event { readonly attribute DOMString address; readonly attribute short requestId; readonly attribute boolean execute; }; : ''address''
:: Address of the remote client.
: short ''requestId''
:: Request id of the attribute read request.
: boolean ''execute''
:: Whether to execute all pending write operations (true) or not (false).
Confirm
891
edits

Navigation menu