From 5a0b095f071b9bce467db7d4fae9dc1f9bbcad75 Mon Sep 17 00:00:00 2001 From: tictrick <117273857+tictrick@users.noreply.github.com> Date: Tue, 9 Apr 2024 12:21:02 +0200 Subject: [PATCH] Update zeroExport.h discard change --- src/plugins/zeroExport/zeroExport.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/zeroExport/zeroExport.h b/src/plugins/zeroExport/zeroExport.h index ff961f05..83c8fad6 100644 --- a/src/plugins/zeroExport/zeroExport.h +++ b/src/plugins/zeroExport/zeroExport.h @@ -474,11 +474,12 @@ class ZeroExport { */ void onMqttMessage(JsonObject obj) { if (!mIsInitialized) return; - mLog["t"] = "onMqttMessage"; String topic = String(obj["topic"]); if (!topic.indexOf("/zero/set/")) return; + mLog["t"] = "onMqttMessage"; + if (obj["path"] == "zero" && obj["cmd"] == "set") { int8_t topicGroup = getGroupFromTopic(topic.c_str()); mLog["topicGroup"] = topicGroup;