Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. BluetoothRemoteGATTDescriptor

BluetoothRemoteGATTDescriptor

Limited availability

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

Experimental:This is anexperimental technology
Check theBrowser compatibility table carefully before using this in production.

Secure context: This feature is available only insecure contexts (HTTPS), in some or allsupporting browsers.

TheBluetoothRemoteGATTDescriptor interface of theWeb Bluetooth API provides a GATT Descriptor,which provides further information about a characteristic's value.

Instance properties

BluetoothRemoteGATTDescriptor.characteristicRead onlyExperimental

Returns theBluetoothRemoteGATTCharacteristic this descriptor belongsto.

BluetoothRemoteGATTDescriptor.uuidRead onlyExperimental

Returns the UUID of the characteristic descriptor, forexample"00002902-0000-1000-8000-00805f9b34fb" for the ClientCharacteristic Configuration descriptor.

BluetoothRemoteGATTDescriptor.valueRead onlyExperimental

Returns the currently cached descriptor value. This value gets updated when thevalue of the descriptor is read.

Instance methods

BluetoothRemoteGATTDescriptor.readValue()Experimental

Returns aPromise that resolves toanArrayBuffer holding a duplicate of thevalue propertyif it is available and supported. Otherwise it throws an error.

BluetoothRemoteGATTDescriptor.writeValue()Experimental

Sets the value property to the bytes contained in anArrayBuffer andreturns aPromise.

Specifications

Specification
Web Bluetooth
# bluetoothgattdescriptor-interface

Browser compatibility

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp