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

timeout for not reachable sensors #169

Open
Rello opened this issue Jan 17, 2022 · 0 comments
Open

timeout for not reachable sensors #169

Rello opened this issue Jan 17, 2022 · 0 comments

Comments

@Rello
Copy link

Rello commented Jan 17, 2022

Hello,
thank you for your library!

I am looping several sensors and try to poll them

poller = MiFloraPoller(options["mac"], BluepyBackend)
try:
        value=(poller.parameter_value(MI_MOISTURE))
        battery=(poller.parameter_value(MI_BATTERY))
except Exception:
        continue

when a sensor is not available, it takes pretty long until the loop gets the next one.
Is there a possibility to define a timeout to shorten this?

I found cache_timeout in the poller, but this seems to be doing something else.

Thank you very much!

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

1 participant