BluetoothRemoteGATTService: getCharacteristics() method
MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونهکد
{{APIRef("Bluetooth API")}}{{SeeCompatTable}}{{SecureContext_Header}}
The **BluetoothGATTService.getCharacteristics()** method returns a {{jsxref("Promise")}} to a list of {{domxref("BluetoothRemoteGATTCharacteristic")}} instances for a given universally unique identifier (UUID).
Syntax
js-nolint
getCharacteristics(characteristics)Parameters
characteristics- : The UUID of a characteristic, for
example '00002a37-0000-1000-8000-00805f9b34fb' for the Heart Rate Measurement characteristic.
Return value
A {{jsxref("Promise")}} to an {{jsxref("Array")}} of {{domxref("BluetoothRemoteGATTCharacteristic")}} instances.
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}