mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-09-14 22:24:07 +00:00
revert dev7 mqtt changes
This commit is contained in:
@@ -2207,7 +2207,7 @@ void EMSdevice::mqtt_ha_entity_config_create() {
|
|||||||
|
|
||||||
#ifndef EMSESP_STANDALONE
|
#ifndef EMSESP_STANDALONE
|
||||||
// always create minimum one config
|
// always create minimum one config
|
||||||
if (count && (heap_caps_get_free_size(MALLOC_CAP_INTERNAL) < 65 * 1024)) { // checks free Heap
|
if (count && (heap_caps_get_free_size(MALLOC_CAP_8BIT) < 65 * 1024)) { // checks free Heap+PSRAM
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -352,7 +352,6 @@ void Mqtt::reset_mqtt() {
|
|||||||
mqttClient_->disconnect(true); // force a disconnect
|
mqttClient_->disconnect(true); // force a disconnect
|
||||||
}
|
}
|
||||||
load_settings(); // reload MQTT settings
|
load_settings(); // reload MQTT settings
|
||||||
connectcount_ = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// load the settings from service
|
// load the settings from service
|
||||||
|
|||||||
Reference in New Issue
Block a user