mqtt-starter
/
de.smartsquare.starter.mqtt
/
MqttProperties
Mqtt
Properties
@
Validated
()
@
ConstructorBinding
()
@
ConfigurationProperties
(
prefix =
mqtt
)
data class
MqttProperties
(host:
String
, port:
Int
, clientId:
String
?, username:
String
?, password:
String
?, ssl:
Boolean
, clean:
Boolean
, group:
String
?, version:
Int
)
Content copied to clipboard
Properties for connection to the mqtt broker.
Constructors
Properties
Sources
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)
Content copied to clipboard
Properties
clean
Link copied to clipboard
val
clean
:
Boolean
= true
Content copied to clipboard
If the client should connect with a clean session.
clientId
Link copied to clipboard
val
clientId
:
String
? = null
Content copied to clipboard
The client id this component should connect with.
group
Link copied to clipboard
val
group
:
String
? = null
Content copied to clipboard
The optional group subscriptions should be prefixed with.
host
Link copied to clipboard
val
host
:
String
Content copied to clipboard
The host the mqtt broker is available under.
password
Link copied to clipboard
val
password
:
String
? = null
Content copied to clipboard
The password this component should connect with.
port
Link copied to clipboard
@
Min
(
value =
0.toLong()
)
@
Max
(
value =
65535.toLong()
)
val
port
:
Int
= 1883
Content copied to clipboard
The port the mqtt broker is available under.
ssl
Link copied to clipboard
val
ssl
:
Boolean
= false
Content copied to clipboard
If ssl should be used for the connection to the mqtt broker.
username
Link copied to clipboard
val
username
:
String
? = null
Content copied to clipboard
The username this component should connect with.
version
Link copied to clipboard
val
version
:
Int
= 3
Content copied to clipboard
The mqtt protocol version to use.
Sources
jvm source
Link copied to clipboard