Skip to content

timeout for not reachable sensors #169

Description

@Rello

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions