Battery drain when MQTT-Broker is not reachable #1

Closed
opened 2025-10-27 18:52:53 +01:00 by OMGeeky · 3 comments
Owner

Originally created by @OMGeeky on GitHub (Jun 2, 2025).

@jetbrains-junie suggest a strategy to keep battery consumption low if the server is not reachable continuously but make sure it reconnects at some point (at least 4 tries per day). Consider that after each cycle the esp32 goes into deep sleep to consume less power, so memory is mostly reset

Originally created by @OMGeeky on GitHub (Jun 2, 2025). @jetbrains-junie suggest a strategy to keep battery consumption low if the server is not reachable continuously but make sure it reconnects at some point (at least 4 tries per day). Consider that after each cycle the esp32 goes into deep sleep to consume less power, so memory is mostly reset
Author
Owner

@OMGeeky commented on GitHub (Jun 7, 2025):

@jetbrains-junie

@OMGeeky commented on GitHub (Jun 7, 2025): @jetbrains-junie
Author
Owner

@jetbrains-junie[bot] commented on GitHub (Jun 7, 2025):

Hey, it’s Junie by JetBrains! I started processing your request 🚀

@jetbrains-junie[bot] commented on GitHub (Jun 7, 2025): Hey, it’s Junie by JetBrains! I started processing your [request](https://github.com/OMGeeky/homecontrol.esp-sensors/actions/runs/15506997345) 🚀
Author
Owner

@jetbrains-junie[bot] commented on GitHub (Jun 7, 2025):

The reconnection strategy was implemented to ensure at least four connection attempts per day while conserving battery life through state persistence in a configuration file.

@jetbrains-junie[bot] commented on GitHub (Jun 7, 2025): The reconnection strategy was implemented to ensure at least four connection attempts per day while conserving battery life through state persistence in a configuration file.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: OMGeeky/homecontrol.esp-sensors#1
No description provided.