Navigation

    • Register
    • Login
    • Search
    • OpenHardware.io
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Tags
    3. watchdog
    Log in to post

    • CrankyCoder

      Watchdog on 2.0
      General Discussion • mqtt watchdog 2.0 • • CrankyCoder  

      19
      0
      Votes
      19
      Posts
      9588
      Views

      Artemiy117

      wdt.h is included on Arduino IDE. This example show how it's work: #include <avr/wdt.h> int counter=0; void setup(){ wdt_disable(); Serial.begin(9600); Serial.println("Starting..."); delay(1000); wdt_enable(WDTO_8S); } void loop(){ wdt_reset(); Serial.println(counter); counter++; if(counter==5){ while(true){} } delay(500); }```
    • dzairo

      Reboot Node
      General Discussion • node id watchdog reboot • • dzairo  

      2
      0
      Votes
      2
      Posts
      1596
      Views

      AWI

      @dzairo search the Web for rebooting arduino from code. There are many ways each with its own (dis) advantages.
    • BulldogLowell

      Watchdog on Ethernet Gateway
      General Discussion • ethernetgateway watchdog attiny45 • • BulldogLowell  

      32
      0
      Votes
      32
      Posts
      20566
      Views

      Dan S.

      @NeverDie All I can say is that after adding the watchdog I have not had a lockup in 2+ months. Before that, like you, I had random lockups. Based on this positive experience I also added a watchdog to the one repeater I have in my system. Had a brief power outage the other day and everything came back online by itself with no problems.
    • dzairo

      How does it work? Sleep , WDG ..
      General Discussion • watchdog sleep time • • dzairo  

      10
      0
      Votes
      10
      Posts
      3974
      Views

      dzairo

      yeah , I will test it .. thanks . If button change then send packet with ACK , and wait .. if not ack received then error .. rebards