Skip to content

Add bulk read temperature method #120

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SimonInOps
Copy link

Hi,
I've created a synchronous method to implement bulk read temperature operation.
It increases efficiency to get all sensors' temperature in time of a longest single sensor cycle.
Tested with 5 sensors with a 12bit resolution, I've reduced the time from:
4.016239s using traditional get_temperature() with a for loop,
to
0.897658s using bulk read capability.
Let me know if I'm missing something.

Solves: #115

@timofurrer timofurrer self-requested a review February 14, 2025 11:45
@timofurrer
Copy link
Owner

@SimonInOps this is nice work! I'll need some time to review it. I also don't have sensors handy to actually give this a try.

If anyone wants to double check on their system feel free to do so and leave a comment :)

Pinging you because you've showed interest in #115: @CJKohler @then3rd @h-wissing

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

Successfully merging this pull request may close these issues.

2 participants