characteristicOrNull

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

Provides access to RemoteCharacteristic by service and characteristic string uuids or null if not available.

Return

the RemoteCharacteristic associated with serviceUUID and characteristicUUID or null if not available

Parameters

serviceUUID

string service uuid representation

characteristicUUID

string characteristic uuid representation

Throws