Improve power saving (#1024)

* Limit tasks in loop based on voltage

* Updated disconnect voltage limit

* Fixed 8266 build
This commit is contained in:
Gunnar Skjold
2025-10-02 12:59:47 +02:00
committed by GitHub
parent 6a75b0fe71
commit b06aa5f71b
4 changed files with 375 additions and 285 deletions

View File

@@ -166,7 +166,7 @@ bool AmsMqttHandler::connected() {
bool AmsMqttHandler::loop() {
bool ret = mqtt.loop();
delay(10);
delay(10); // Needed to preserve power. After adding this, the voltage is super smooth on a HAN powered device
yield();
#if defined(ESP32)
esp_task_wdt_reset();