Back to Content

BluetoothRemoteGATTCharacteristic: readValue() method

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

latest542 B
Original Source

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

The BluetoothRemoteGATTCharacteristic.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}}