Skip to content

Commit

Permalink
adjust to new OutputFormat
Browse files Browse the repository at this point in the history
  • Loading branch information
john30 committed Apr 2, 2021
1 parent 36b947a commit 253dcc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ebusd/mqtthandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ static vector<string> g_topicStrs;
/** the MQTT topic field parts. */
static vector<string> 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
Expand Down Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit 253dcc1

Please sign in to comment.