1. 開発者向けのウェブ技術
  2. Web API
  3. BluetoothRemoteGATTDescriptor

このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。

View in English Always switch to English

BluetoothRemoteGATTDescriptor

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

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

ブラウザーの互換性

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.

AltStyle によって変換されたページ (->オリジナル) /