-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add timeouts in read functions for reliability (#2)
* Add timeouts in read functions for reliability Timeouts avoid getting stuck in infinite loops if the sensor does not respond as expected. Now if the sensor does not respond we return a DhtError::Timeout and the user can choose how to handle it. * Change polarity of the timeout function Co-authored-by: Mike <[email protected]> * Update examples and tidy documentation * Fix formatting Co-authored-by: Mike <[email protected]> Co-authored-by: Michael Beaumont <[email protected]>
- Loading branch information
1 parent
c18aaea
commit 28927cd
Showing
3 changed files
with
72 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters