program stops when onewire device disconnects or fails

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
MoPy
Posts: 1
Joined: Sun Mar 05, 2017 12:41 am

program stops when onewire device disconnects or fails

Postby MoPy » Mon Mar 20, 2017 8:22 am

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?

Return to “ESP8266 boards”

Who is online

Users browsing this forum: No registered users and 3 guests