BluetoothRemoteGATTDescriptor: writeValue() method

فهرست فصل‌ها دانلود آرشیوناشر

MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونه‌کد

{{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}}