RxFitbitGatt / com.fitbit.bluetooth.fbgatt.rx.client / BitGattPeer / getService

getService

fun getService(uuid: UUID): Maybe<BluetoothGattService>

Gets the service matching a specific UUID. Prior to this service discovery needs to be performed. This assumes we are connected to the peer.

Parameters

uuid - The UUID of the BluetoothGattService to get.

Return
A Maybe containing BluetoothGattService matching the uuid. Empty if not found.