Having issues with trying to catch "OneWireError" exception

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
kevinkk525
Posts: 969
Joined: Sat Feb 03, 2018 7:02 pm

Re: Having issues with trying to catch "OneWireError" exception

Post by kevinkk525 » Fri Apr 02, 2021 7:33 am

ds.scan() is unlikely to throw an exception.

In my application I catch oneWire errors on conversion and any type of error on reading:

https://github.com/kevinkk525/pysmartno ... 18.py#L148

https://github.com/kevinkk525/pysmartno ... 18.py#L159
Kevin Köck
Micropython Smarthome Firmware (with Home-Assistant integration): https://github.com/kevinkk525/pysmartnode

davef
Posts: 811
Joined: Thu Apr 30, 2020 1:03 am
Location: Christchurch, NZ

Re: Having issues with trying to catch "OneWireError" exception

Post by davef » Fri Apr 02, 2021 7:45 am

Thank you for comment and links to your code.

Post Reply