Back to Content

BluetoothRemoteGATTCharacteristic: getDescriptors() method

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

latest608 B
Original Source

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

The BluetoothRemoteGATTCharacteristic.getDescriptors() method returns a {{jsxref("Promise")}} that resolves to an {{jsxref("Array")}} of all {{domxref("BluetoothRemoteGATTDescriptor")}} objects for a given descriptor UUID.

Syntax

js-nolint
getDescriptors(bluetoothDescriptorUUID)

Parameters

None.

Return value

A {{jsxref("Promise")}} that resolves to an {{jsxref("Array")}} of {{domxref("BluetoothRemoteGATTDescriptor")}} objects.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}