descriptorOrNullFlow

fun Flow<ConnectableDevice?>.descriptorOrNullFlow(serviceUUID: String, characteristicUUID: String, descriptorUUID: String): Flow<RemoteDescriptor?>

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

Return

the Flow of the RemoteDescriptor associated with serviceUUID, characteristicUUID, and descriptorUUID or null if the descriptor is not available.

Parameters

serviceUUID

string service uuid representation

characteristicUUID

string characteristic uuid representation

descriptorUUID

string descriptor uuid representation

Throws