Re: Example - measure temperature using 1-wire DS1820
Posted: Mon Aug 14, 2017 7:57 am
Nice example to get going with 1-wire, thanks!
I found that this doesn't work, though... the reason is, ow.reset_search always returns nil; that's its normal behaviour. What you need is ow.reset_search() and then addr = ow.search() - that combination works perfectly.
I found that this doesn't work, though... the reason is, ow.reset_search always returns nil; that's its normal behaviour. What you need is ow.reset_search() and then addr = ow.search() - that combination works perfectly.