BluetoothRemoteGATTCharacteristic: writeValue() method
Bluetooth API
Bluetooth API
Use BluetoothRemoteGATTCharacteristic.writeValueWithResponse() and BluetoothRemoteGATTCharacteristic.writeValueWithoutResponse() instead.
The BluetoothRemoteGATTCharacteristic.writeValue() method sets a BluetoothRemoteGATTCharacteristic object's value property to the bytes contained in a given ArrayBuffer, TypedArray, or DataView, writes the characteristic value with optional response, and returns the resulting Promise.
Syntax
writeValue(buffer)
Parameters
value- : An ArrayBuffer, TypedArray, or DataView.
Return value
A Promise.