adafruit / Adafruit_CircuitPython_DHT

CircuitPython support for DHT11 and DHT22 type temperature/humidity devices
MIT License
182 stars 64 forks source link

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

Closed yashino91 closed 4 years ago

yashino91 commented 4 years ago

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

ladyada commented 4 years ago

true! wanna submit a typo fix PR ? :)