ServiceData

abstract fun ServiceData(uuid: Uuid, data: ByteArray)

Adds the service data to the advertising data.

It is possible to add multiple different services by calling this method multiple times.

Parameters

uuid

The 128-bit service UUID.

data

The service data.


abstract fun ServiceData(shortUuid: Int, data: ByteArray)

Adds the service data to the advertising data.

It is possible to add multiple different services by calling this method multiple times.

Parameters

shortUuid

The 16-bit or 32-bit service UUID.

data

The service data.