title | short-title | slug | page-type | status | browser-compat | |
---|---|---|---|---|---|---|
BluetoothRemoteGATTService: getCharacteristics() method |
getCharacteristics() |
Web/API/BluetoothRemoteGATTService/getCharacteristics |
web-api-instance-method |
|
api.BluetoothRemoteGATTService.getCharacteristics |
{{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).
getCharacteristics(characteristics)
characteristics
- : The UUID of a characteristic, for
example
'00002a37-0000-1000-8000-00805f9b34fb'
for the Heart Rate Measurement characteristic.
- : The UUID of a characteristic, for
example
A {{jsxref("Promise")}} to an {{jsxref("Array")}} of {{domxref("BluetoothRemoteGATTCharacteristic")}} instances.
{{Specifications}}
{{Compat}}
{{APIRef("Web Bluetooth")}}