dom / latest / bluetoothremotegattcharacteristic / writevaluewithresponse.html /

BluetoothRemoteGATTCharacteristic.writeValueWithResponse()

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

writeValueWithResponse(value)

Return value

A Promise.

Parameters

value

An ArrayBuffer.

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari WebView Android Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet
writeValueWithResponse
85
85
No
No
71
No
No
85
No
60
No
14.0

© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/BluetoothRemoteGATTCharacteristic/writeValueWithResponse