Skip to content

README.md - Retry values after 1/2 seconds returns cached values #34

@yashino91

Description

@yashino91

Hi there!

Thank you for providing this library :)

README.md states that you should try to get the values again ​​after 1/2 second, if a RuntimeError has occurred. However, the measurement function in your library has the delay_between_readings property, which is set to 2 seconds.
So if you try to read again within 2 seconds, the function does not update the temperature / humidity properties and returns cached values.

I don't know if that's exactly what you wanted to communicate, but for me it was not clear and caused some confusion. If you want a new reading after failure, you have to wait at least 2 seconds. That's totally ok, but maybe you update your readme to clarify this behaviour.

Best Regards,
Stefan

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions