web api instance method
BluetoothRemoteGATTCharacteristic: writeValue() method
Secure context
Use writeValueWithResponse() and 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, orDataView.
- : An
Return value
A Promise.
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.