RxFitbitGatt / com.fitbit.bluetooth.fbgatt.rx / com.fitbit.bluetooth.fbgatt.GattConnection / getRemoteGattServiceSingle

getRemoteGattServiceSingle

fun GattConnection.getRemoteGattServiceSingle(uuid: UUID): Single<BluetoothGattService>

Reactive extension function to return BluetoothGattService for given service uuid

Exceptions

GattServiceNotFoundException - if remote service is NOT found OR peripheral is not connected

Return
Single BluetoothGattService if remote service is found, else emmits exception