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

revise description of readValue in GattDescriptor
(Rename Permissions as GattPermissions.)
(revise description of readValue in GattDescriptor)
 
Line 76: Line 76:


; Description
; Description
: Read the descriptor value from the remote device. The cached value property is also updated after retrieving the value.
: Read the descriptor value from either remote device (client role) or the local device (server role). In client mode, the cached value property is also updated after retrieving the value from the remote GATT server.


; Return
; Return
: A Promise to indicate whether the operation is resolved or rejected. The Promise is resolved along with the value retrieved from the remote device.
: A Promise to indicate whether the operation is resolved or rejected. The Promise is resolved along with the value retrieved from the remote device or local device.


=== writeValue(ArrayBuffer value) ===
=== writeValue(ArrayBuffer value) ===
120

edits