87. Watchdog Fundamentals

Question.3

Consider the following code:

Which of the following options is correct?

#include <avr/wdt.h>

void setup() {
  Serial.begin(115200);
  wdt_enable(8);
}

void loop() {
  Serial.println("Watchdog reset!");
  delay(8000);
  wdt_reset();  
}

 

Select Answer