Skip to content
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

Battery drain when wifi is not available #55

Open
tibaultbordeaux opened this issue Oct 10, 2023 · 2 comments
Open

Battery drain when wifi is not available #55

tibaultbordeaux opened this issue Oct 10, 2023 · 2 comments

Comments

@tibaultbordeaux
Copy link

Hello all,

my Badger W is battery operated and works fine. Thanks! In normal operation the Badger does its job and then goes into power saving mode.

Just one thing: Whenever the Badger tries to reconnect to the local WLAN and the WLAN is offline and not available, the power saving mode is not reached.

After quite a short time, the battery is empty.

How could I avoid this?

Thanks a lot!

@exussum12
Copy link

Which example is doing this?

def __init__(self, country="GB", client_timeout=60, access_point_timeout=5, status_handler=None, error_handler=None):

The code has a timeout so you can handle it if its custom code your running

@tibaultbordeaux
Copy link
Author

Could you give me a tip on how to handle the error to halt the system when the timeout is reached? Thanks a lot in advance!

The badger should try to reconnect after a certain time, for example three hours.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants