IncludedService

abstract fun IncludedService(uuid: Uuid, builder: ServiceScope.() -> Unit)

Declares an inner service with the given UUID.

Inner services are services that are included in the primary service.

Sample code:

Service(<Some UUID>) {
Characteristic(...)
InnerService(<Some UUID>) {
Characteristic(...)
Characteristic(...)
)
)

Parameters

uuid

The UUID of the inner service.

builder

Scope of the inner service.


open fun IncludedService(shortUuid: Int, builder: ServiceScope.() -> Unit)

Declares an inner service with the given 16 or 32 bit short UUID.

Parameters

shortUuid

The 16 or 32 bit short UUID of the inner service.

builder

Scope of the inner service.

See also