getCharacteristic()

This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The BluetoothGATTService.getCharacteristic() method returns a Promise to an instance of BluetoothGATTCharacteristic for a given universally unique identifier (UUID). 

Syntax

bluetoothGATTServiceInstance.getCharacteristic(characteristic).then(function(BluetoothGATTCharacteristic) { ... } )

Returns

Promise to an instance of BluetoothGATTCharacteristic

Parameters

characteristic
The UUID of a characteristic, for example '00002a37-0000-1000-8000-00805f9b34fb' for the Heart Rate Measurement characteristic.

Specifications

Specification Status Comment
Web Bluetooth
The definition of 'getCharacteristic()' in that specification.
Draft Initial definition.

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support451 ? ? ? ? ?
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support No No ? ? ? ? ?

1. Behind a preference flag in Chrome OS.

Document Tags and Contributors

Contributors to this page: ExE-Boss, fscholz, chrisdavidmills, jpmedley, rolfedh
Last updated by: ExE-Boss,