descriptor

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

Provides access to RemoteDescriptor by service, characteristic and descriptor string uuids. The method will suspend if descriptor is not available.

Return

the RemoteDescriptor associated with serviceUUID, characteristicUUID, and descriptorUUID

Parameters

serviceUUID

string service uuid representation

characteristicUUID

string characteristic uuid representation

descriptorUUID

string descriptor uuid representation

Throws

if the descriptor cannot be found after discovery.