BluetoothRemoteGATTDescriptor

Limited availability

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

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

The BluetoothRemoteGATTDescriptor interface of the Web Bluetooth API provides a GATT Descriptor, which provides further information about a characteristic's value.

Instance properties

BluetoothRemoteGATTDescriptor.characteristic Read only

Returns the BluetoothRemoteGATTCharacteristic this descriptor belongs to.

BluetoothRemoteGATTDescriptor.uuid Read only

Returns the UUID of the characteristic descriptor, for example "00002902-0000-1000-8000-00805f9b34fb" for the Client Characteristic Configuration descriptor.

BluetoothRemoteGATTDescriptor.value Read only

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

Instance methods

BluetoothRemoteGATTDescriptor.readValue()

Returns a Promise that resolves to an ArrayBuffer holding a duplicate of the value property if it is available and supported. Otherwise it throws an error.

BluetoothRemoteGATTDescriptor.writeValue()

Sets the value property to the bytes contained in an ArrayBuffer and returns a Promise.

Specifications

Specification
Web Bluetooth
# bluetoothgattdescriptor-interface

Browser compatibility

desktop mobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
BluetoothRemoteGATTDescriptor
Experimental
Chrome – Partial support
Chrome 57 – 69 (Release date: 2017-03-09)
footnote Partial support
footnote Only supported on macOS.
Chrome – Partial support
Chrome 70 (Release date: 2018-10-16)
footnote Partial support
footnote Linux support is not enabled by default.
Edge – Partial support
Edge 79 (Release date: 2020-01-15)
footnote Partial support
footnote Linux support is not enabled by default.
Firefox – No support
Firefox
footnote
footnote See bug 674737
Opera – Partial support
Opera 44 – 56 (Release date: 2017-03-21)
footnote Partial support
footnote Only supported on macOS.
Opera – Partial support
Opera 57 (Release date: 2018-11-28)
footnote Partial support
footnote Linux support is not enabled by default.
Safari – No support
Safari
footnote
footnote See bug 101034
Chrome Android – Full support
Chrome Android 57 (Release date: 2017-03-16)
footnote Full support
Firefox for Android – No support
Firefox for Android
footnote
footnote See bug 674737
Opera Android – Full support
Opera Android 44 (Release date: 2017-12-11)
footnote Full support
Safari on iOS – No support
Safari on iOS
footnote
footnote See bug 101034
Samsung Internet – Full support
Samsung Internet 7 (Release date: 2018-03-16)
footnote Full support
WebView Android – No support
WebView Android
footnote
footnote See bug 40703318
WebView on iOS – No support
WebView on iOS
footnote
footnote See bug 101034
characteristic
Experimental
Chrome – Full support
Chrome 57 (Release date: 2017-03-09)
footnote Full support
Edge – Full support
Edge 79 (Release date: 2020-01-15)
footnote Full support
Firefox – No support
Firefox
footnote
footnote See bug 674737
Opera – Full support
Opera 44 (Release date: 2017-03-21)
footnote Full support
Safari – No support
Safari
footnote
footnote See bug 101034
Chrome Android – Full support
Chrome Android 57 (Release date: 2017-03-16)
footnote Full support
Firefox for Android – No support
Firefox for Android
footnote
footnote See bug 674737
Opera Android – Full support
Opera Android 44 (Release date: 2017-12-11)
footnote Full support
Safari on iOS – No support
Safari on iOS
footnote
footnote See bug 101034
Samsung Internet – Full support
Samsung Internet 7 (Release date: 2018-03-16)
footnote Full support
WebView Android – No support
WebView Android
footnote No support
WebView on iOS – No support
WebView on iOS
footnote
footnote See bug 101034
readValue
Experimental
Chrome – Full support
Chrome 57 (Release date: 2017-03-09)
footnote Full support
Edge – Full support
Edge 79 (Release date: 2020-01-15)
footnote Full support
Firefox – No support
Firefox
footnote
footnote See bug 674737
Opera – Full support
Opera 44 (Release date: 2017-03-21)
footnote Full support
Safari – No support
Safari
footnote
footnote See bug 101034
Chrome Android – Full support
Chrome Android 57 (Release date: 2017-03-16)
footnote Full support
Firefox for Android – No support
Firefox for Android
footnote
footnote See bug 674737
Opera Android – Full support
Opera Android 44 (Release date: 2017-12-11)
footnote Full support
Safari on iOS – No support
Safari on iOS
footnote
footnote See bug 101034
Samsung Internet – Full support
Samsung Internet 7 (Release date: 2018-03-16)
footnote Full support
WebView Android – No support
WebView Android
footnote No support
WebView on iOS – No support
WebView on iOS
footnote
footnote See bug 101034
uuid
Experimental
Chrome – Full support
Chrome 57 (Release date: 2017-03-09)
footnote Full support
Edge – Full support
Edge 79 (Release date: 2020-01-15)
footnote Full support
Firefox – No support
Firefox
footnote
footnote See bug 674737
Opera – Full support
Opera 44 (Release date: 2017-03-21)
footnote Full support
Safari – No support
Safari
footnote
footnote See bug 101034
Chrome Android – Full support
Chrome Android 57 (Release date: 2017-03-16)
footnote Full support
Firefox for Android – No support
Firefox for Android
footnote
footnote See bug 674737
Opera Android – Full support
Opera Android 44 (Release date: 2017-12-11)
footnote Full support
Safari on iOS – No support
Safari on iOS
footnote
footnote See bug 101034
Samsung Internet – Full support
Samsung Internet 7 (Release date: 2018-03-16)
footnote Full support
WebView Android – No support
WebView Android
footnote No support
WebView on iOS – No support
WebView on iOS
footnote
footnote See bug 101034
value
Experimental
Chrome – Full support
Chrome 57 (Release date: 2017-03-09)
footnote Full support
Edge – Full support
Edge 79 (Release date: 2020-01-15)
footnote Full support
Firefox – No support
Firefox
footnote
footnote See bug 674737
Opera – Full support
Opera 44 (Release date: 2017-03-21)
footnote Full support
Safari – No support
Safari
footnote
footnote See bug 101034
Chrome Android – Full support
Chrome Android 57 (Release date: 2017-03-16)
footnote Full support
Firefox for Android – No support
Firefox for Android
footnote
footnote See bug 674737
Opera Android – Full support
Opera Android 44 (Release date: 2017-12-11)
footnote Full support
Safari on iOS – No support
Safari on iOS
footnote
footnote See bug 101034
Samsung Internet – Full support
Samsung Internet 7 (Release date: 2018-03-16)
footnote Full support
WebView Android – No support
WebView Android
footnote No support
WebView on iOS – No support
WebView on iOS
footnote
footnote See bug 101034
writeValue
Experimental
Chrome – Full support
Chrome 57 (Release date: 2017-03-09)
footnote Full support
Edge – Full support
Edge 79 (Release date: 2020-01-15)
footnote Full support
Firefox – No support
Firefox
footnote
footnote See bug 674737
Opera – Full support
Opera 44 (Release date: 2017-03-21)
footnote Full support
Safari – No support
Safari
footnote
footnote See bug 101034
Chrome Android – Full support
Chrome Android 57 (Release date: 2017-03-16)
footnote Full support
Firefox for Android – No support
Firefox for Android
footnote
footnote See bug 674737
Opera Android – Full support
Opera Android 44 (Release date: 2017-12-11)
footnote Full support
Safari on iOS – No support
Safari on iOS
footnote
footnote See bug 101034
Samsung Internet – Full support
Samsung Internet 7 (Release date: 2018-03-16)
footnote Full support
WebView Android – No support
WebView Android
footnote No support
WebView on iOS – No support
WebView on iOS
footnote
footnote See bug 101034

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.