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

requestConnectionPriority

fun requestConnectionPriority(priority: Int): Single<Boolean>

Requests connection priority as described in the BluetoothGatt object. This assumes we are connected to the peer.

Parameters

priority - Connection priority BluetoothGatt.CONNECTION_PRIORITY_LOW_POWER, BluetoothGatt.CONNECTION_PRIORITY_BALANCED or BluetoothGatt.CONNECTION_PRIORITY_HIGH.

Return
A Single emitting a boolean depending with the result of the boolean (true -> success, false -> failure).