Changes

Jump to: navigation, search

B2G/Bluetooth/WebBluetooth-v2/BluetoothGattServer

5 bytes removed, 06:25, 27 August 2015
Refine the argument of BluetoothGattServer.notifyCharacteristicChanged()
[NewObject] Promise<void> [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattServer#addService.28BluetoothGattService_service.29|addService(BluetoothGattService service)]];
[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_DOMString_uuid.2C_int_instanceId2C_BluetoothGattCharacteristic_characteristic.2C_bool_confirm.29|notifyCharacteristicChanged(DOMString address, DOMString uuid, int instanceIdBluetoothGattCharacteristic characteristic, bool confirm)]];
[NewObject] Promise<void> [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattServer#sendResponse.28DOMString_address.2C_int_status.2C_int_requestId.2C_ArrayBuffer_value.29|sendResponse(DOMString address, int status, int requestId)]];
};
* [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattServer#addService.28BluetoothGattService_service.29|BluetoothGattServer.addService(BluetoothGattService service)]]
* [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattServer#removeService.28BluetoothGattService_service.29|BluetoothGattServer.removeService(BluetoothGattService service)]]
* [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattServer#notifyCharacteristicChanged.28DOMString_address.2C_DOMString_uuid.2C_int_instanceId2C_BluetoothGattCharacteristic_characteristic.2C_bool_confirm.29|BluetoothGattServer.notifyCharacteristicChanged(DOMString address, DOMString uuid, int instanceIdBluetoothGattCharacteristic characteristic, bool confirm)]]
* [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattServer#sendResponse.28DOMString_address.2C_int_status.2C_int_requestId.29|BluetoothGattServer.sendResponse(DOMString address, int status, int requestId)]]
: A Promise to indicate whether the operation is resolved or rejected. If the Promise is resolved, property [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattServer#services|services]] is also updated without the removed service.
=== notifyCharacteristicChanged(DOMString address, DOMString uuid, int instanceIdBluetoothGattCharacteristic characteristic, bool confirm) ===
; Description
: The method sends a notification/indication that a local characteristic has been updated.
: ''address''
:: The address of remote LE device to notify.
: ''uuid'':: UUID of the updated characteristic.: ''instanceId'':: Instance id of the The updated characteristic.
: ''confirm''
:: Whether to request confirmation from the client (indication) or not (notification).
39
edits

Navigation menu