adam-markovics commented on code in PR #1432:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1432#discussion_r1019185396


##########
extensions/mqtt/processors/AbstractMQTTProcessor.cpp:
##########
@@ -20,51 +20,49 @@
 #include <utility>
 
 #include "utils/StringUtils.h"
+#include "utils/ProcessorConfigUtils.h"
 #include "core/ProcessContext.h"
 
 namespace org::apache::nifi::minifi::processors {
 
 void AbstractMQTTProcessor::onSchedule(const 
std::shared_ptr<core::ProcessContext> &context, const 
std::shared_ptr<core::ProcessSessionFactory>& /*factory*/) {
   if (auto value = context->getProperty(BrokerURI)) {
     uri_ = std::move(*value);
-    logger_->log_debug("AbstractMQTTProcessor: BrokerURI [%s]", uri_);
   }
+  logger_->log_debug("AbstractMQTTProcessor: BrokerURI [%s]", uri_);
+
+  mqtt_version_ = 
MqttVersions{utils::parsePropertyWithAllowableValuesOrThrow(*context, 
MqttVersion.getName(), MqttVersions::values())};

Review Comment:
   Thanks, used it!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to