MDN self-hosted library · e01.org

BluetoothRemoteGATTCharacteristic: writeValueWithResponse() method

Bluetooth API

no runnable cells web-api-instance-method upstream source

Bluetooth API

The BluetoothRemoteGATTCharacteristic.writeValueWithResponse() method sets a BluetoothRemoteGATTCharacteristic object's value property to the bytes contained in a given ArrayBuffer, TypedArray, or DataView, writes the characteristic value with required response, and returns the resulting Promise.

Syntax

writeValueWithResponse(value)

Parameters

  • value
  • : An ArrayBuffer, TypedArray, or DataView.

Return value

A Promise.

Specifications

Browser compatibility