BluetoothRemoteGATTCharacteristic: writeValueWithResponse() 方法
BluetoothRemoteGATTCharacteristic.writeValueWithResponse() 方法将 BluetoothRemoteGATTCharacteristic 对象的 value 属性设置为给定 ArrayBuffer 中包含的字节,写入需要响应的特征值,并返回结果 Promise。
语法
js
writeValueWithResponse(value)
参数
value-
一个
ArrayBuffer。
返回值
一个Promise。
规范
| 规范 |
|---|
| Web Bluetooth # dom-bluetoothremotegattcharacteristic-writevaluewithresponse |
浏览器兼容性
BCD 表格仅在启用 JavaScript 的浏览器中加载。