mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 08:19:52 +03:00
disable MQTT last will. dont think anyone was using it
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user