Service

class Service(service: ServiceWrapper, emitNewAction: (DeviceConnectionManager.Event.AddAction) -> Unit, parentLogTag: String, logger: Logger)

A Bluetooth Service

Parameters

service

the ServiceWrapper to access the platform service

emitNewAction

method to call when a new DeviceConnectionManager.Event.AddAction event should take place

parentLogTag

the log tag used to modify the log tag of this service

logger

the Logger to use for logging.

Constructors

Link copied to clipboard
constructor(service: ServiceWrapper, emitNewAction: (DeviceConnectionManager.Event.AddAction) -> Unit, parentLogTag: String, logger: Logger)

Properties

Link copied to clipboard

The list of Characteristic associated with the service

Link copied to clipboard
val uuid: UUID

The UUID of the service