Changes

Jump to: navigation, search

B2G/Bluetooth/WebBluetooth-v2/BluetoothGattServer

205 bytes added, 06:28, 2 September 2015
use unsigned short for status and unsigned long for requestId
[NewObject] Promise<void> [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattServer#removeService.28BluetoothGattService_service.29|removeService(BluetoothGattService service)]];
[NewObject] Promise<void> [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattServer#notifyCharacteristicChanged.28DOMString_address.2C_BluetoothGattCharacteristic_characteristic.2C_bool_confirm.29|notifyCharacteristicChanged(DOMString address, BluetoothGattCharacteristic characteristic, bool confirm)]];
[NewObject] Promise<void> [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattServer#sendResponse.28DOMString_address.2C_int_status2C_unsigned_short_status.2C_int_requestId2C_unsigned_long_requestId.29|sendResponse(DOMString address, int unsigned short status, int unsigned long requestId)]];
};
{
readonly attribute DOMString address;
readonly attribute short unsigned long requestId;
readonly attribute BluetoothGattCharacteristic? characteristic;
readonly attribute BluetoothGattDescriptor? descriptor;
:: The descriptor requested to read. Null if remote client requests to read a local characteristic.
: ''needRsp''
:: Indicate whether a response is needed or not. If needRsp is true, application needs to explicitly call [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattServer#sendResponse.28DOMString_address.2C_int_status2C_unsigned_short_status.2C_int_requestId2C_unsigned_long_requestId.29|sendResponse(DOMString address, int unsigned short status, int unsigned long requestId)]].
=== onattributewritereq ===
{
readonly attribute DOMString address;
readonly attribute short unsigned long requestId;
readonly attribute BluetoothGattCharacteristic? characteristic;
readonly attribute BluetoothGattDescriptor? descriptor;
:: The descriptor requested to write. Null if remote client requests to write a local characteristic.
: ''needRsp''
:: Indicate whether a response is needed or not. If needRsp is true, application needs to explicitly call [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattServer#sendResponse.28DOMString_address.2C_int_status2C_unsigned_short_status.2C_int_requestId2C_unsigned_long_requestId.29|sendResponse(DOMString address, int unsigned_short status, int unsigned long requestId)]].
<!--
=== onexecutewritereq ===
* [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattServer#removeService.28BluetoothGattService_service.29|BluetoothGattServer.removeService(BluetoothGattService service)]]
* [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattServer#notifyCharacteristicChanged.28DOMString_address.2C_BluetoothGattCharacteristic_characteristic.2C_bool_confirm.29|BluetoothGattServer.notifyCharacteristicChanged(DOMString address, BluetoothGattCharacteristic characteristic, bool confirm)]]
* [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattServer#sendResponse.28DOMString_address.2C_int_status2C_unsigned_short_status.2C_int_requestId2C_unsigned_long_requestId.29|BluetoothGattServer.sendResponse(DOMString address, int unsigned short status, int unsigned long requestId)]]
=== connect(DOMString address) ===
: A Promise to indicate whether the operation is resolved or rejected.
=== sendResponse(DOMString address, int unsigned short status, int unsigned long requestId) ===
; Description
120
edits

Navigation menu