[NF] Mqtt library changed
This commit is contained in:
@@ -89,7 +89,7 @@ namespace BlubbFish.BosmonMqtt {
|
||||
private void Connect() {
|
||||
if (this.pluginconfig.Enable) {
|
||||
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 == "") {
|
||||
this.client.Connect("bosmon-" + Guid.NewGuid().ToString());
|
||||
} else {
|
||||
|
||||
@@ -90,7 +90,7 @@ namespace BlubbFish.BosmonMqtt.Views {
|
||||
}));
|
||||
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 == "") {
|
||||
client.Connect("bosmon-" + Guid.NewGuid().ToString());
|
||||
} else {
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user