Commit 70facac4 authored by Micha Mueller's avatar Micha Mueller
Browse files

Tiny improvement to BACnet Plugin

parent 62974ab6
......@@ -98,6 +98,9 @@ bool BACnetConfigurator::readConfig(std::string cfgPath) {
deviceInstance = stoul(d.second.data());
} else if (boost::iequals(d.first, "mqttPart")) {
mqttPartDevice = d.second.data();
if (mqttPartDevice[mqttPartDevice.length()-1] != '/') {
mqttPartDevice.append("/");
}
} else if (boost::iequals(d.first, "object")) {
LOG(debug) << "Object \"" << d.second.data() << "\"";
if (!d.second.empty()) {
......@@ -108,6 +111,9 @@ bool BACnetConfigurator::readConfig(std::string cfgPath) {
objInstance = stoul(object.second.data());
} else if (boost::iequals(object.first, "mqttPart")) {
mqttPartObject = object.second.data();
if (mqttPartObject[mqttPartObject.length()-1] != '/') {
mqttPartObject.append("/");
}
} else if (boost::iequals(object.first, "property")) {
LOG(debug) << "Property \"" << object.second.data() << "\"";
if (!object.second.empty()) {
......
Supports Markdown
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