adjust to new OutputFormat
This commit is contained in:
@@ -91,7 +91,7 @@ static vector<string> g_topicStrs;
|
|||||||
/** the MQTT topic field parts. */
|
/** the MQTT topic field parts. */
|
||||||
static vector<string> g_topicFields;
|
static vector<string> g_topicFields;
|
||||||
static bool g_retain = false; //!< whether to retail all topics
|
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)
|
#if (LIBMOSQUITTO_VERSION_NUMBER >= 1003001)
|
||||||
static bool g_logFromLib = false; //!< log library events
|
static bool g_logFromLib = false; //!< log library events
|
||||||
#endif
|
#endif
|
||||||
@@ -875,7 +875,7 @@ string MqttHandler::getTopic(const Message* message, const string& suffix, const
|
|||||||
if (g_topicFields[i] == "field") {
|
if (g_topicFields[i] == "field") {
|
||||||
ret << fieldName;
|
ret << fieldName;
|
||||||
} else {
|
} else {
|
||||||
message->dumpField(g_topicFields[i], false, &ret);
|
message->dumpField(g_topicFields[i], false, OF_NONE, &ret);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user