Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
dcdb
dcdb
Commits
0ec32bb3
Commit
0ec32bb3
authored
Nov 13, 2020
by
Michael Ott
Browse files
InfluxDB: user measurement as mqttpart if none is given
parent
cb13a825
Changes
1
Show whitespace changes
Inline
Side-by-side
collectagent/configuration.cpp
View file @
0ec32bb3
...
...
@@ -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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment