This commit is contained in:
parent
cf4622392c
commit
bff9aa5f24
@ -28,6 +28,8 @@ class MqttSubscriber : MqttCallbackExtended {
|
||||
fun connect() {
|
||||
val connOpts = MqttConnectOptions()
|
||||
connOpts.isCleanSession = true
|
||||
connOpts.userName = "birbnetes"
|
||||
connOpts.password = "de4d2182".toCharArray()
|
||||
mqttClient.setCallback(MqttSubscriber())
|
||||
mqttClient.connect(connOpts)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user