RxFitbitGatt / com.fitbit.bluetooth.fbgatt.rx / KnownGattConnectionFinder / find

find

fun find(names: List<String> = emptyList(), filterPredicate: (GattConnection) -> Boolean = { true }): Single<List<GattConnection>>

Finds known GattConnections matching given device names and filterPredicate filter

Parameters

names - list of device names to match, if empty known connections will not be filtered by device names

filterPredicate - filter to apply to known GattConnection, if no predicate provided will return all known connections

Return
Returns a Single that will emit all known GattConnection