From 326933eed9a69a38a368e4743ae4d40b3c902539 Mon Sep 17 00:00:00 2001 From: Patrick Balsiger Date: Mon, 19 Nov 2018 21:41:57 +0100 Subject: [PATCH] fallback publish --- src/MqttPlugin.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/MqttPlugin.cpp b/src/MqttPlugin.cpp index 1aa1a13..dadfa20 100644 --- a/src/MqttPlugin.cpp +++ b/src/MqttPlugin.cpp @@ -109,7 +109,9 @@ void MqttPlugin::downstreamHandler(char *topic, uint8_t *payload, unsigned int l publish(localTopic, msg); PRINT_MSG(Serial, "MQTT", (String("publish mediator: ") + localTopic).c_str()); } + return; } } - + publish(topicStr, msg); + PRINT_MSG(Serial, "MQTT", (String("publish mediator: ") + topicStr).c_str()); }