From daf771e6d397bc14dfc9a25ba1b6e9de08494a2d Mon Sep 17 00:00:00 2001 From: john30 Date: Sat, 3 Feb 2018 15:27:12 +0100 Subject: [PATCH] fix for /get topic not being interpreted when topic is on field level --- src/ebusd/mqtthandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ebusd/mqtthandler.cpp b/src/ebusd/mqtthandler.cpp index 84433a43..32ea72d5 100755 --- a/src/ebusd/mqtthandler.cpp +++ b/src/ebusd/mqtthandler.cpp @@ -481,7 +481,7 @@ void MqttHandler::notifyTopic(const string& topic, const string& data) { circuit = field; } else if (fieldName == "name") { name = field; - } else if (fieldName == "fields") { + } else if (fieldName == "field") { // field = field; // TODO add support for writing a single field } else { return;