BluetoothRemoteGATTDescriptor
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental: これは実験的な機能です。
本番で使用する前にブラウザー互換性一覧表をチェックしてください。
Web Bluetooth API の BluetoothRemoteGATTDescriptor
は、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 |
ブラウザーの互換性
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
BluetoothRemoteGATTDescriptor | ||||||||||||
characteristic | ||||||||||||
readValue | ||||||||||||
uuid | ||||||||||||
value | ||||||||||||
writeValue |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- Partial support
- Partial support
- No support
- No support
- Experimental. Expect behavior to change in the future.
- See implementation notes.
- Has more compatibility info.