MqttClientHandler

Constructors

Link copied to clipboard
constructor(flags: GenericFlags)

Properties

Link copied to clipboard
abstract val mqttPrefix: String
Link copied to clipboard
abstract val name: String

Name of the source

Link copied to clipboard
abstract val server: String

Functions

Link copied to clipboard
open fun addCallback(callback: (MQTTMessageEntry) -> Unit)
Link copied to clipboard
open fun close()
Link copied to clipboard
open fun connect()
Link copied to clipboard
open fun init()

Initialize the meter source.

Link copied to clipboard
abstract fun sendMqttMsg(prefix: String = mqttPrefix, topic: String, content: String)
Link copied to clipboard
open fun sendStatusEvent(event: StatusEvent)

Asynchronous method for broadcasting MQTT status events.

Link copied to clipboard
open fun status(): String

Meter source status