Changes

Jump to: navigation, search

B2G/Bluetooth/WebBluetooth-v2/BluetoothGatt

162 bytes added, 07:54, 22 August 2014
findService(DOMString serviceUuid)
; Description
: The method is a helper to find the [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattService#BluetoothGattService|BluetoothGattService]] object of given service UUID from the offered GATT services list (i.e., property [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGatt#services|services]]). If multiple instances [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattService#BluetoothGattService|BluetoothGattService]] objects of the same service (as identified by given service UUID) exist, the first instance [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattService#BluetoothGattService|BluetoothGattService]] object of the service is returned.
; Return
: A [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattService#BluetoothGattService|BluetoothGattService]] object of given service UUID.
; Sample
Confirm
891
edits

Navigation menu