observe

abstract fun observe(characteristic: BleCharacteristic): Flow<ByteArray>(source)

Observes notifications/indications from the characteristic.


open fun observe(characteristic: BleCharacteristic, onSubscription: suspend () -> Unit): Flow<ByteArray>(source)

Observes notifications/indications from the characteristic with an onSubscription action that fires after notifications are enabled (CCCD written).

The onSubscription is re-invoked on every reconnect while the returned Flow is active. The default implementation invokes onSubscription eagerly on flow start so non-Kable implementations still signal readiness.