mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 00:39:50 +03:00
rollback MQTT last will change
This commit is contained in:
@@ -501,19 +501,10 @@ 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