BluetoothRemoteGATTCharacteristic: getDescriptor() method
MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونهکد
{{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}}