subscribeToService

abstract suspend fun subscribeToService(serviceUuid: ServiceUuid, listener: ConnectivityClientServiceListener): Boolean

Subscribes to the service with the specified serviceUuid. The specified listener will receive events for the service. Returns true on success, false if the service was already subscribed or if close was already called.

Note: That only one subscription can exist to a particular service at a particular time.