Page 1 of 1

program stops when onewire device disconnects or fails

Posted: Mon Mar 20, 2017 8:22 am
by MoPy
I have a number of DS18B20's connected over a long wire. Sometimes while logging, a read fails intermittently and there is a convert or read error which exits the program. Is there a way to catch these errors and substitute or return a 0 or similar value to represent an error and continue on without interruption. If a try except is the answer, do they have to be executed in the onewire and ds18x20 modules?