Profile

sealed class Profile

A class representing a Bluetooth LE profile.

The profiles are intended to separate the underlying GATT services and characteristics and the application logic and device API. For example, the profile can expose methods to turn a light ON or OFF, while internally it would use Bluetooth LE connection.

See also

Inheritors

Types

Link copied to clipboard
abstract class MultiService(requiredServiceUuids: List<Uuid>, optionalServiceUuids: List<Uuid> = emptyList(), name: String? = null) : Profile

A class representing a multiservice GATT profile.

Link copied to clipboard
abstract class Simple(serviceUuid: Uuid, name: String? = null) : Profile

A class representing a simple GATT profile, based on a single GATT service.

Properties

Link copied to clipboard
val name: String?

The name of the profile. This is for convenience, used only in logging.