Confirmed users
891
edits
| Line 191: | Line 191: | ||
; Description | ; 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 | : 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 [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattService#BluetoothGattService|BluetoothGattService]] objects of given service UUID exist, the first [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattService#BluetoothGattService|BluetoothGattService]] object of the service is returned. | ||
; Return | ; Return | ||
: [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattService#BluetoothGattService|BluetoothGattService]] object of given service UUID. | : A [[B2G/Bluetooth/WebBluetooth-v2/BluetoothGattService#BluetoothGattService|BluetoothGattService]] object of given service UUID. | ||
; Sample | ; Sample | ||