characteristicOrNullFlow

fun Flow<ConnectableDevice?>.characteristicOrNullFlow(serviceUUID: String, characteristicUUID: String): Flow<RemoteCharacteristic?>

Provides access to RemoteCharacteristic's flow by service and characteristic string uuids. Emits null if the characteristic cannot be found.

Return

the Flow of the RemoteCharacteristic associated with serviceUUID and characteristicUUID or null if the characteristic is not available.

Parameters

serviceUUID

string service uuid representation

characteristicUUID

string characteristic uuid representation

Throws