From 253dcc142f22780d1e0c03a8105b4545027eeea7 Mon Sep 17 00:00:00 2001 From: john30 Date: Fri, 2 Apr 2021 12:28:51 +0200 Subject: [PATCH] adjust to new OutputFormat --- src/ebusd/mqtthandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ebusd/mqtthandler.cpp b/src/ebusd/mqtthandler.cpp index 873e7e958..38ae49bd6 100755 --- a/src/ebusd/mqtthandler.cpp +++ b/src/ebusd/mqtthandler.cpp @@ -91,7 +91,7 @@ static vector g_topicStrs; /** the MQTT topic field parts. */ static vector g_topicFields; static bool g_retain = false; //!< whether to retail all topics -static OutputFormat g_publishFormat = 0; //!< the OutputFormat for publishing messages +static OutputFormat g_publishFormat = OF_NONE; //!< the OutputFormat for publishing messages #if (LIBMOSQUITTO_VERSION_NUMBER >= 1003001) static bool g_logFromLib = false; //!< log library events #endif @@ -875,7 +875,7 @@ string MqttHandler::getTopic(const Message* message, const string& suffix, const if (g_topicFields[i] == "field") { ret << fieldName; } else { - message->dumpField(g_topicFields[i], false, &ret); + message->dumpField(g_topicFields[i], false, OF_NONE, &ret); } } }