Skip to content

Add bulk read temperature method#120

Open
SimonInOps wants to merge 1 commit intotimofurrer:masterfrom
SimonInOps:master
Open

Add bulk read temperature method#120
SimonInOps wants to merge 1 commit intotimofurrer:masterfrom
SimonInOps:master

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