RxFitbitGatt / com.fitbit.bluetooth.fbgatt.rx.client / PeerGattServiceSubscriber / subscribe

subscribe

fun subscribe(peer: BitGattPeer, serviceUuid: UUID, characteristicUUID: UUID, isIndication: Boolean = false): Completable

Subscribe to given characteristic hosted on remote device

Parameters

peer - connected peer device

serviceUuid - GATT service hosting the characteristic to subscribe to

characteristicUUID - GATT characteristic to subscribe to

isIndication - whether the notification type is indication (by default, it's set to notification)

Exceptions

GattServiceNotFoundException - if given service is not found