LoPy WDT
-
Trying to use the watchdog timer, I run the code straight from the example in the Firmware API Reference;
from machine import WDT
wdt = WDT(timeout=2000) # enable it with a timeout of 2s
wdt.feed()and I get;
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name WDTI'm running 1.6.12.b1
(sysname='LoPy', nodename='LoPy', release='1.6.12.b1', version='v1.8.6-593-g8e4ed0fa on 2017-04-12', machine='LoPy with ESP32', lorawan='1.0.0')
Any help would be appreciated.
-
I don't think the LoPy has a WDT module, at least not yet. That part of the documentation seems to have been copied over from the older v1 boards (by mistake?)
The documentation says "Availability of this class: pyboard, WiPy."
https://docs.pycom.io/pycom_esp32/library/machine.WDT.html -
@jmarcelino thanks for your response, hopefully they will implement the WDT in the LoPy soon. I might try and do something with the internal interrupts in the meantime.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login