Back to Content

BluetoothRemoteGATTCharacteristic: getDescriptor() method

files/en-us/web/api/bluetoothremotegattcharacteristic/getdescriptor/index.md

latest554 B
Original Source

{{APIRef("Bluetooth API")}}{{SeeCompatTable}}{{SecureContext_Header}}

The BluetoothRemoteGATTCharacteristic.getDescriptor() method returns a {{jsxref("Promise")}} that resolves to the first {{domxref("BluetoothRemoteGATTDescriptor")}} for a given descriptor UUID.

Syntax

js-nolint
getDescriptor(bluetoothDescriptorUUID)

Parameters

None.

Return value

A {{jsxref("Promise")}} that resolves to the first {{domxref("BluetoothRemoteGATTDescriptor")}}.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}