16.11.2020, 10:57
Hello, I have LM5 Re:actor without 1-wire, and I need to connect 1-wire sensors through 1-wire USB adapter ds9490r
Where can I get info on how to get the list of connected sensors and its values?
I've found some outdated info that there must be owserver start in the init script
But the reading is implemented through owread shell command (which is not present at my LM). Maybe there is additional package for owread?
Another stuff I found is the code like this:
But in my case the return value for value is always nil. Is there any way I can debug it? How can I define that I've connected everything correctly?
Thanks!
Where can I get info on how to get the list of connected sensors and its values?
I've found some outdated info that there must be owserver start in the init script
Code:
os.execute('owserver -u -s 127.0.0.1:4304')
Another stuff I found is the code like this:
Code:
require('ow')
value = ow.readfile('28.FF7B2C211605', 'temperature', true)
Thanks!