Hi there,
I am going to use software Watchdog to reboot my Netduino after a constant time. I know it is a simple question, but may I ask your help to do it?
The code that I developed is like that, but it doesn't work:
using System;using System.Net;using System.Net.Sockets;using System.Threading;using Microsoft.SPOT;using Microsoft.SPOT.Hardware;using SecretLabs.NETMF.Hardware;using SecretLabs.NETMF.Hardware.NetduinoPlus;namespace NetduinoPlusApplication1{ public class Program { public static void Main() { bool error = true; Watchdog.Timeout = new TimeSpan(0, 1, 0); //Timeout = 1 minute. Watchdog.Enabled = true; Debug.Print(Watchdog.Timeout.ToString()); while (error) { Debug.Print("There is a systematic error, so the system needs to reboot"); Thread.Sleep(2000); } } }}
and the Debug.Print(Watchdog.Timeout.ToString()); prints "00:00:00".
Thanks in advance,
Mohammad