w1thermsensor icon indicating copy to clipboard operation
w1thermsensor copied to clipboard

Add bulk read temperature method

Open SimonInOps opened this issue 11 months ago • 1 comments

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

SimonInOps avatar Feb 13 '25 16:02 SimonInOps

@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

timofurrer avatar Feb 14 '25 11:02 timofurrer