[NF] Mqtt library changed

This commit is contained in:
BlubbFish 2018-04-01 17:31:18 +00:00
parent f0f93a51c0
commit c9d415b8f4
4 changed files with 2 additions and 2 deletions

View File

@ -89,7 +89,7 @@ namespace BlubbFish.BosmonMqtt {
private void Connect() { private void Connect() {
if (this.pluginconfig.Enable) { if (this.pluginconfig.Enable) {
try { try {
this.client = new MqttClient(this.pluginconfig.Server, this.pluginconfig.Port, false, null); this.client = new MqttClient(this.pluginconfig.Server, this.pluginconfig.Port, false, null, null, MqttSslProtocols.None);
if (this.pluginconfig.User == "" || this.pluginconfig.Password == "") { if (this.pluginconfig.User == "" || this.pluginconfig.Password == "") {
this.client.Connect("bosmon-" + Guid.NewGuid().ToString()); this.client.Connect("bosmon-" + Guid.NewGuid().ToString());
} else { } else {

View File

@ -90,7 +90,7 @@ namespace BlubbFish.BosmonMqtt.Views {
})); }));
throw new Exception(); throw new Exception();
} }
MqttClient client = new MqttClient(this._server, port, false, null); MqttClient client = new MqttClient(this._server, port, false, null, null, MqttSslProtocols.None);
if (this.pluginconfig.User == "" || this.pluginconfig.Password == "") { if (this.pluginconfig.User == "" || this.pluginconfig.Password == "") {
client.Connect("bosmon-" + Guid.NewGuid().ToString()); client.Connect("bosmon-" + Guid.NewGuid().ToString());
} else { } else {

Binary file not shown.