Attribute

constructor(initialValue: ByteArray? = null, emitNewAction: (DeviceConnectionManager.Event.AddAction) -> Unit, parentLogTag: String, logger: Logger)

Parameters

ReadAction

the DeviceAction.Read associated with the attribute

WriteAction

the DeviceAction.Write associated with the attribute

initialValue

the initial ByteArray value of the attribute

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 attribute

logger

the Logger to use for logging.