service

suspend fun Flow<ConnectableDevice?>.service(serviceUUID: String): RemoteService

Provides access to RemoteService by service string uuids. The method will suspend until services have been discovered.

Return

the RemoteService associated with serviceUUID

Parameters

serviceUUID

string service uuid representation

Throws

if the service cannot be found after discovery.