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.
In this article
Instance properties
BluetoothRemoteGATTDescriptor.characteristicRead onlyExperimentalReturns the
BluetoothRemoteGATTCharacteristicthis descriptor belongsto.BluetoothRemoteGATTDescriptor.uuidRead onlyExperimentalReturns the UUID of the characteristic descriptor, forexample
"00002902-0000-1000-8000-00805f9b34fb"for the ClientCharacteristic Configuration descriptor.BluetoothRemoteGATTDescriptor.valueRead onlyExperimentalReturns the currently cached descriptor value. This value gets updated when thevalue of the descriptor is read.
Instance methods
BluetoothRemoteGATTDescriptor.readValue()ExperimentalReturns a
Promisethat resolves toanArrayBufferholding a duplicate of thevaluepropertyif it is available and supported. Otherwise it throws an error.BluetoothRemoteGATTDescriptor.writeValue()ExperimentalSets the value property to the bytes contained in an
ArrayBufferandreturns aPromise.
Specifications
| Specification |
|---|
| Web Bluetooth> # bluetoothgattdescriptor-interface> |