BluetoothRemoteGATTCharacteristic.writeValueWithResponse()

TheBluetoothRemoteGATTCharacteristic.writeValueWithResponse() method sets a BluetoothRemoteGATTCharacteristic object’s value property to the bytes contained in a given ArrayBuffer, calls WriteCharacteristicValue(this=this, value=value, response="required"), and returns the resulting Promise.

Syntax

BluetoothRemoteGATTCharacteristic.writeValueWithResponse(value).then(function() { ... })

Returns

A Promise.

Parameters

value
An ArrayBuffer

Specifications

Specification
Web Bluetooth
# dom-bluetoothremotegattcharacteristic-writevaluewithresponse

Browser compatibility

BCD tables only load in the browser