Back to Content

BluetoothRemoteGATTDescriptor: readValue() method

files/en-us/web/api/bluetoothremotegattdescriptor/readvalue/index.md

latest538 B
Original Source

{{APIRef("Bluetooth API")}}{{SeeCompatTable}}{{SecureContext_Header}}

The BluetoothRemoteGATTDescriptor.readValue() method returns a {{jsxref("Promise")}} that resolves to a {{jsxref("DataView")}} holding a duplicate of the value property if it is available and supported. Otherwise it throws an error.

Syntax

js-nolint
readValue()

Parameters

None.

Return value

A {{jsxref("Promise")}} that resolves to a {{jsxref("DataView")}}.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}