RxFitbitGatt / com.fitbit.bluetooth.fbgatt.rx / PeripheralDisconnector

PeripheralDisconnector

class PeripheralDisconnector

Utility to disconnect a peripheral

Constructors

<init>

PeripheralDisconnector(fitbitGatt: FitbitGatt = FitbitGatt.getInstance(), clientTransactionProvider: ClientTransactionProvider = ClientTransactionProvider())

Utility to disconnect a peripheral

Functions

disconnect

fun disconnect(bluetoothAddress: String): Completable
fun disconnect(connection: GattConnection): Completable

Disconnect given device if its connected