From 35f3a291be262d4feca4c31f0524e3a48dcf35f6 Mon Sep 17 00:00:00 2001 From: Paul Date: Mon, 23 Dec 2019 20:27:51 +0100 Subject: [PATCH] disable MQTT last will. dont think anyone was using it --- src/MyESP.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/MyESP.cpp b/src/MyESP.cpp index eba5cde68..d587bba0b 100644 --- a/src/MyESP.cpp +++ b/src/MyESP.cpp @@ -501,11 +501,19 @@ 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 } + */ + // set credentials if we have them if (_hasValue(_mqtt_user)) { mqttClient.setCredentials(_mqtt_user, _mqtt_password);