code:
int Count=0;
int led = 0;
void setup() {
Serial.begin(115200);
pinMode(led, OUTPUT);
}
void loop() {
digitalWrite(led, HIGH);
delay(500);
digitalWrite(led, LOW);
delay(500);
Count++;
Serial.print(Count);
Serial.println(" times");
}
Results:
1. Wireless Router LinkSys WRTU54G is On: Counter reaches 30 and WDT reset is executed
2. Wireless Router LinkSys WRTU54G is Off: Counter increases, no WDT reset is executed
What can I do for avoiding WDT Resets?