Commit 0ec32bb3 authored by Michael Ott's avatar Michael Ott
Browse files

InfluxDB: user measurement as mqttpart if none is given

parent cb13a825
...@@ -110,6 +110,10 @@ void Configuration::readAdditionalBlocks(boost::property_tree::iptree& cfg) { ...@@ -110,6 +110,10 @@ void Configuration::readAdditionalBlocks(boost::property_tree::iptree& cfg) {
} }
} }
} }
if (measurement.mqttPart.size() == 0) {
// if no mqttpart is given, we use the measurement
measurement.mqttPart = MQTTChecker::formatTopic(global.second.data());
}
influxSettings.measurements[global.second.data()] = measurement; influxSettings.measurements[global.second.data()] = measurement;
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment