BluetoothRemoteGATTCharacteristic: writeValue() メソッド
非推奨
この機能を新しいプロジェクトで使用することは避けてください。 この機能は、ウェブ標準やブラウザーから除去される可能性があります。>
かわりに BluetoothRemoteGATTCharacteristic.writeValueWithResponse() や BluetoothRemoteGATTCharacteristic.writeValueWithoutResponse() を使用してください。
BluetoothRemoteGATTCharacteristic.writeValue() メソッドは、BluetoothRemoteGATTCharacteristic オブジェクトの value プロパティを渡された ArrayBuffer に格納されたバイト列に設定し、WriteCharacteristicValue(this=this, value=value, response="optional") を呼び出し、結果の Promise を返します。
構文
js
writeValue(value)
引数
value-
ArrayBufferです。
返値
Promise です。
仕様書
| 仕様書 |
|---|
| WebBluetooth> # dom-bluetoothremotegattcharacteristic-writevalue> |