From 3002e0dfac137e15692998b14b1a50af326d1fee Mon Sep 17 00:00:00 2001 From: proddy Date: Tue, 24 Dec 2019 08:09:21 +0100 Subject: [PATCH] rollback MQTT last will change --- src/MyESP.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/MyESP.cpp b/src/MyESP.cpp index d587bba0b..1a5afe520 100644 --- a/src/MyESP.cpp +++ b/src/MyESP.cpp @@ -501,19 +501,10 @@ void MyESP::_mqtt_setup() { mqttClient.setCleanSession(false); // last will - - /**************** - * - * disabling last will, since version 1.9.5 - * - if (_hasValue(_mqtt_will_topic)) { - mqttClient.setWill(_mqttTopic(_mqtt_will_topic), 1, true, - _mqtt_will_offline_payload); // retain always true + mqttClient.setWill(_mqttTopic(_mqtt_will_topic), 1, true, _mqtt_will_offline_payload); // retain always true } - */ - // set credentials if we have them if (_hasValue(_mqtt_user)) { mqttClient.setCredentials(_mqtt_user, _mqtt_password);