W3cubDocs

/Web APIs

BluetoothRemoteGATTCharacteristic: writeValueWithResponse() method

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

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

js

writeValueWithResponse(value)

Parameters

Return value

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–2023 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