25.01.2021, 13:14
First you need to find the unique ID of the 1-Wire device. It is shown in the UI or you can use a script to log all connected devices:
Read counter values (change id value to your device ID):
Code:
require('ow')
list = ow.list()
log(list)
Read counter values (change id value to your device ID):
Code:
require('ow')
id = 'ABCDEF123456'
c1, err1 = ow.readfile(id, 'counters.A', true)
c2, err2 = ow.readfile(id, 'counters.B', true)
log(c1, c2, err1, err2)