mirror of
https://github.com/zyphlar/LanternPowerMonitor.git
synced 2024-03-08 14:07:47 +00:00
Might work better if I pass in the password as the password and not the username. Oops.
This commit is contained in:
parent
ea07715c46
commit
23026d055f
|
@ -23,7 +23,7 @@ public class MqttPoster {
|
|||
if (NullUtils.isNotEmpty(_config.getMqttUserName()))
|
||||
options.setUserName(_config.getMqttUserName());
|
||||
if (NullUtils.isNotEmpty(_config.getMqttPassword()))
|
||||
options.setUserName(_config.getMqttPassword());
|
||||
options.setPassword(_config.getMqttPassword().toCharArray());
|
||||
c.connect(options);
|
||||
} catch (MqttException e) {
|
||||
LOG.error("Failed to create MQTT client", e);
|
||||
|
|
Loading…
Reference in New Issue
Block a user