Back to Content

BluetoothRemoteGATTDescriptor: writeValue() method

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

latest557 B
Original Source

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

The BluetoothRemoteGATTDescriptor.writeValue() method sets the value property to the bytes contained in an {{jsxref("ArrayBuffer")}}, {{jsxref("TypedArray")}}, or {{jsxref("DataView")}} and returns a {{jsxref("Promise")}}.

Syntax

js-nolint
writeValue(buffer)

Parameters

  • buffer
    • : Sets the value with the bytes contained in the buffer.

Return value

A {{jsxref("Promise")}}.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}