MqttProperties

data class MqttProperties(host: String, port: Int, clientId: String?, username: String?, password: String?, ssl: Boolean, clean: Boolean, group: String?, version: Int)

Properties for connection to the mqtt broker.

Constructors

MqttProperties
Link copied to clipboard
fun MqttProperties(host: String = "localhost", port: Int = 1883, clientId: String? = null, username: String? = null, password: String? = null, ssl: Boolean = false, clean: Boolean = true, group: String? = null, version: Int = 3)

Properties

clean
Link copied to clipboard
val clean: Boolean = true
If the client should connect with a clean session.
clientId
Link copied to clipboard
val clientId: String? = null
The client id this component should connect with.
group
Link copied to clipboard
val group: String? = null
The optional group subscriptions should be prefixed with.
host
Link copied to clipboard
val host: String
The host the mqtt broker is available under.
password
Link copied to clipboard
val password: String? = null
The password this component should connect with.
port
Link copied to clipboard
@Min(value = 0.toLong())
@Max(value = 65535.toLong())
val port: Int = 1883
The port the mqtt broker is available under.
ssl
Link copied to clipboard
val ssl: Boolean = false
If ssl should be used for the connection to the mqtt broker.
username
Link copied to clipboard
val username: String? = null
The username this component should connect with.
version
Link copied to clipboard
val version: Int = 3
The mqtt protocol version to use.

Sources

jvm source
Link copied to clipboard