mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
fixed issue when default value is set for qos
This commit is contained in:
parent
01edaeeab4
commit
f3a729204e
@ -116,7 +116,7 @@ public class MQTTBrokerConnectionConfiguration {
|
||||
keepAlive = MQTTEventAdapterConstants.ADAPTER_CONF_DEFAULT_KEEP_ALIVE;
|
||||
}
|
||||
String qosVal = globalProperties.get(MQTTEventAdapterConstants.ADAPTER_MESSAGE_QOS);
|
||||
if (qosVal == null || qosVal.isEmpty()) {
|
||||
if (qosVal != null && !qosVal.isEmpty()) {
|
||||
this.qos = Integer.parseInt(qosVal);
|
||||
} else {
|
||||
qosVal = eventAdapterConfiguration.getStaticProperties().get(MQTTEventAdapterConstants.ADAPTER_MESSAGE_QOS);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user