-
Notifications
You must be signed in to change notification settings - Fork 334
Added powersaving to all ESP32 boards with RTC-supported DIO1 #1266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Added powersaving to all ESP32 boards with RTC-supported DIO1 #1266
Conversation
Added CLI to enable/disable powersaving
|
I'm using your modification since the first day and helped to improve with testing and suggestions. Your mod is running on 2x v4 and 3x v3 Repeaters without problems. One of the repeater is solar based with only 5W Panel and 6000mAh battery and installed on the roof. I had in 24h no noticeable battery draining, it was very cloudy and over the day I think it was enough to support the v3 and now over night the accu is still at 78% like it was before 12h earlier. Thank you for your work, heltec is since your modification a really good and cheap repeater. It should be integrated it official firmware for all esps, and the cli powersaving on / off is perfect also for those connected to AC power. Little question. Is when CLI powersaving on still active after reboot or plugging off from power? The last set should be saved and be active also after a reboot or power on |
Hi @SaschaKt, |
|
Thank you so much, this will help a lot of people. Very great work! |
Yah, it is helping many friends to survive winter now. The work is intially submitted by me. I hope we can have an initial "framework" to implement to powersaving to all MCUs and companions. At least, we have sleep() in the Mainboard for all boards to inherit now. Then we can move on and improve it further. Thanks a lot for reviewing. Merry Chirstmas. |
|
For consistency, the cli command should probably be |
|
See also IoTThinks#1 |
I already replied. |
The cli isn't very consistent to begin with. There are some commands that work without set/get and some that work with. 😂 |
|
@liamcottle Should we use "set powersaving on/off" and "get powersaving"? Or "powersaving" and "powersaving on/off"? |
Moved powersaving_enabled to match serialization order
|
@weebl2000 I merged and pushed your suggested changes to this PR.
For this one, I modified hasPendingWork() to return bool instead. |


Added powersaving to all ESP32 boards (Heltec v2, v3, v3, wsl3...) with RTC-supported DIO1
This is the old PR with all comments and discussion.
Thanks a lot for your supports, comments and reviews.
Merry Chirstmas to everyone.
#1107
This is CLI for powersaving.
