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

Jump to navigation Jump to search
edit write descriptor value for both server and client
(Change "Promise<ArrayBuffer> writeValue(ArrayBuffer value)" to "Promise<void> writeValue(ArrayBuffer value)")
(edit write descriptor value for both server and client)
Line 84: Line 84:


; Description
; Description
: Write the descriptor value to the remote device.
: Write the descriptor value to the GATT server. If the local device is the GATT client, the value will be written to the remote GATT server. On the other hand, if the local device is the GATT server, the value will be written to [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattDescriptor#value|value]].


; Parameter
; Parameter
: ''value''
: ''value''
:: Desired value to be written to the remote device.
:: Desired value to be written to the GATT server.


; Return
; Return
: A Promise to indicate whether the operation is resolved or rejected. The Promise is resolved along with the descriptor value after this write operation.
: A Promise to indicate whether the operation is resolved or rejected. The Promise is resolved along with the descriptor value after this write operation.
120

edits

Navigation menu