From 56d69285d01143fc969b79bcefcfc1f3bb7717ec Mon Sep 17 00:00:00 2001 From: Sven Carstensen Date: Tue, 5 Mar 2024 12:09:44 +0100 Subject: [PATCH] #443 --- lib/tools/mqtt_core.dart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/tools/mqtt_core.dart b/lib/tools/mqtt_core.dart index 8fe3e3f..1a8065b 100644 --- a/lib/tools/mqtt_core.dart +++ b/lib/tools/mqtt_core.dart @@ -153,7 +153,7 @@ class MqttCore { try { publishText(_toServerTopic, json); } catch (e) { - _enqueueMessage(topic, jsonEncode(payloadContainer.toJson())); + _enqueueMessage(_toServerTopic, jsonEncode(payloadContainer.toJson())); } } @@ -495,8 +495,6 @@ class MqttCore { message.received.ver = job.ver; message.received.utc = DateTime.now().millisecondsSinceEpoch; - var json = jsonEncode(message.toJson()); - MqttCore.instance.publishPayloadMessage('job', message.toJson()); } }