From 927f623a9490e502d9f74c45a6a1028b19ec1147 Mon Sep 17 00:00:00 2001 From: Sleevezipper Date: Mon, 15 Mar 2021 22:38:51 +0100 Subject: [PATCH] rollback mqtt.net to 3.0.13 needed because https://github.com/chkr1011/MQTTnet/issues/1095 --- hass-workstation-service/Communication/MQTT/MqttPublisher.cs | 2 +- hass-workstation-service/Data/ConfigurationService.cs | 1 - hass-workstation-service/hass-workstation-service.csproj | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/hass-workstation-service/Communication/MQTT/MqttPublisher.cs b/hass-workstation-service/Communication/MQTT/MqttPublisher.cs index 93f82a5..bcdd12f 100644 --- a/hass-workstation-service/Communication/MQTT/MqttPublisher.cs +++ b/hass-workstation-service/Communication/MQTT/MqttPublisher.cs @@ -80,7 +80,7 @@ namespace hass_workstation_service.Communication // configure what happens on disconnect this._mqttClient.UseDisconnectedHandler(e => { - this._mqttClientMessage = e.Reason.ToString(); + this._mqttClientMessage = e.ReasonCode.ToString(); }); } diff --git a/hass-workstation-service/Data/ConfigurationService.cs b/hass-workstation-service/Data/ConfigurationService.cs index 208f252..db11c32 100644 --- a/hass-workstation-service/Data/ConfigurationService.cs +++ b/hass-workstation-service/Data/ConfigurationService.cs @@ -226,7 +226,6 @@ namespace hass_workstation_service.Data .WithTls(new MqttClientOptionsBuilderTlsParameters() { UseTls = configuredBroker.UseTLS, - SslProtocol = System.Security.Authentication.SslProtocols.Tls12, AllowUntrustedCertificates = true }) .WithCredentials(configuredBroker.Username, configuredBroker.Password.ToString()) diff --git a/hass-workstation-service/hass-workstation-service.csproj b/hass-workstation-service/hass-workstation-service.csproj index cf89a3f..5dd71b0 100644 --- a/hass-workstation-service/hass-workstation-service.csproj +++ b/hass-workstation-service/hass-workstation-service.csproj @@ -54,8 +54,8 @@ - - + +