mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 16:29:51 +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);
|
mqttClient.setCleanSession(false);
|
||||||
|
|
||||||
// last will
|
// last will
|
||||||
|
|
||||||
|
/****************
|
||||||
|
*
|
||||||
|
* disabling last will, since version 1.9.5
|
||||||
|
*
|
||||||
|
|
||||||
if (_hasValue(_mqtt_will_topic)) {
|
if (_hasValue(_mqtt_will_topic)) {
|
||||||
mqttClient.setWill(_mqttTopic(_mqtt_will_topic), 1, true,
|
mqttClient.setWill(_mqttTopic(_mqtt_will_topic), 1, true,
|
||||||
_mqtt_will_offline_payload); // retain always true
|
_mqtt_will_offline_payload); // retain always true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
// set credentials if we have them
|
// set credentials if we have them
|
||||||
if (_hasValue(_mqtt_user)) {
|
if (_hasValue(_mqtt_user)) {
|
||||||
mqttClient.setCredentials(_mqtt_user, _mqtt_password);
|
mqttClient.setCredentials(_mqtt_user, _mqtt_password);
|
||||||
|
|||||||
Reference in New Issue
Block a user