From b65be4e9137e18f1ff16580deb7cc41b44b53c96 Mon Sep 17 00:00:00 2001 From: Torma Date: Wed, 21 Oct 2020 18:38:27 +0200 Subject: [PATCH] oh my god I get it now --- src/main/kotlin/MQTTSubscriber.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/MQTTSubscriber.kt b/src/main/kotlin/MQTTSubscriber.kt index 8cda5d4..5eebd05 100644 --- a/src/main/kotlin/MQTTSubscriber.kt +++ b/src/main/kotlin/MQTTSubscriber.kt @@ -15,7 +15,7 @@ class MqttSubscriber() : MqttCallbackExtended { connOpts.userName = "birbnetes" connOpts.password = "de4d2182".toCharArray() connOpts.isAutomaticReconnect = true - mqttClient.setCallback(MqttSubscriber()) + mqttClient.setCallback(this) } override fun connectionLost(arg0: Throwable) {