BluetoothRemoteGATTDescriptor

Experimental: これは実験的な機能です。
本番で使用する前にブラウザー互換性一覧表をチェックしてください。

Web Bluetooth APIBluetoothRemoteGATTDescriptor は、GATT ディスクリプターを提供します。これは、キャラクタリスティックの値に関する詳細情報を提供します。

インスタンスプロパティ

BluetoothRemoteGATTDescriptor.characteristic 読取専用 Experimental

このディスクリプターが属する BluetoothRemoteGATTCharacteristic を返します。

BluetoothRemoteGATTDescriptor.uuid 読取専用 Experimental

このキャラクタリスティックディスクリプターの UUID を返します。たとえば、theClient Characteristic Configuration descriptor は「00002902-0000-1000-8000-00805f9b34fb」です。

BluetoothRemoteGATTDescriptor.value 読取専用 Experimental

現在キャッシュされているディスクリプターの値を返します。この値はディスクリプターの値が読まれると更新されます。

インスタンスメソッド

BluetoothRemoteGATTDescriptor.readValue() Experimental

利用可能で対応していれば value プロパティの複製が格納された ArrayBuffer で解決する Promise を返します。そうでない場合、エラーを投げます。

BluetoothRemoteGATTDescriptor.writeValue() Experimental

value プロパティを ArrayBuffer に格納されたバイト列に設定し、Promise を返します。

仕様書

Specification
Web Bluetooth
# bluetoothgattdescriptor-interface

ブラウザーの互換性

BCD tables only load in the browser