characteristicFlow
fun Flow<ConnectableDevice?>.characteristicFlow(serviceUUID: String, characteristicUUID: String): Flow<RemoteCharacteristic>
Provides access to RemoteCharacteristic's flow by service and characteristic string uuids. Only emits after services have been discovered.
Return
the Flow of the RemoteCharacteristic associated with serviceUUID and characteristicUUID. Flow throws NoSuchElementException if the characteristic cannot be found after discovery.
Parameters
serviceUUID
string service uuid representation
characteristicUUID
string characteristic uuid representation
Throws
if serviceUUID or characteristicUUID is not valid