Functions

Link copied to clipboard
abstract fun close()
Link copied to clipboard
abstract fun connect()
Link copied to clipboard
abstract fun isConnected(): Boolean
Link copied to clipboard
abstract fun publish(topic: String, message: String)
abstract fun <T> publish(topic: String, serializer: KSerializer<T>, value: T)
Link copied to clipboard
abstract fun register(topic: String, listener: DashMqttMessageListener)

Register a listener to receive incoming messages for a topic.

Link copied to clipboard
abstract fun setCallback(callback: DashMqttCallback?)
Link copied to clipboard
abstract fun subscribe(vararg topics: String)

Subscribe to a topic.

Link copied to clipboard
abstract fun unregister(topic: String, listener: DashMqttMessageListener)

Unregister a listener for a topic.