[nikohomecontrol] Switch off hostname validation. (#10652)
Signed-off-by: Mark Herwege <mark.herwege@telenet.be>pull/10669/head
parent
e3973698ab
commit
703b1d288d
|
@ -158,7 +158,7 @@ public class NhcMqttConnection2 implements MqttActionCallback {
|
|||
}
|
||||
|
||||
private MqttBrokerConnection createMqttConnection() throws MqttException {
|
||||
MqttBrokerConnection connection = new MqttBrokerConnection(cocoAddress, port, true, clientId);
|
||||
MqttBrokerConnection connection = new MqttBrokerConnection(cocoAddress, port, true, false, clientId);
|
||||
connection.setTrustManagers(trustManagers);
|
||||
connection.setCredentials(profile, token);
|
||||
connection.setQos(1);
|
||||
|
|
Loading…
Reference in New Issue