From bff9aa5f240d3d5d5fb43e31966eb7652aa8aefe Mon Sep 17 00:00:00 2001 From: Torma Date: Wed, 21 Oct 2020 17:30:17 +0200 Subject: [PATCH] cred --- src/main/kotlin/MQTTSubscriber.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/kotlin/MQTTSubscriber.kt b/src/main/kotlin/MQTTSubscriber.kt index 016536b..cfea40b 100644 --- a/src/main/kotlin/MQTTSubscriber.kt +++ b/src/main/kotlin/MQTTSubscriber.kt @@ -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) }