Service

sealed interface Service<C : Characteristic<*>>

Interface representing a Bluetooth GATT service.

Inheritors

Types

Link copied to clipboard
object Uuids

Properties

Link copied to clipboard
abstract val characteristics: List<C>

List of characteristics of this service.

Link copied to clipboard

List of included secondary services.

Link copied to clipboard
abstract val instanceId: Int

Instance id of a characteristic.

Link copied to clipboard
abstract val uuid: Uuid

Uuid of a service.

Functions

Link copied to clipboard
open fun isRestricted(): Boolean

Returns whether the service is restricted and accessing it will result in a SecurityException.