[NF] Mqtt library changed
This commit is contained in:
parent
f0f93a51c0
commit
c9d415b8f4
@ -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.
Loading…
Reference in New Issue
Block a user