Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    LoPy WDT

    Scheduled Pinned Locked Moved LoPy
    wdt lopy
    3 Posts 2 Posters 1.6k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J Offline
      JD
      last edited by

      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 WDT

      I'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.

      1 Reply Last reply Reply Quote 2
      • J Offline
        jmarcelino
        last edited by

        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

        J 1 Reply Last reply Reply Quote 0
        • J Offline
          JD @jmarcelino
          last edited by

          @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.

          1 Reply Last reply Reply Quote 0

          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
          • 1 / 1
          • First post
            Last post

          Pycom on Twitter

          Pycom