Is this implemented in 4.3.1 on a plus 2? I have the following simple code but it does not appear to be working.
OutputPort led = new OutputPort(Pins.ONBOARD_LED, false);
led.Write(true); // Start with led on, off after initialization
Debug.Print("Sleeping for 5");
Thread.Sleep(5000); // sleep five seconds
led.Write(false);
Debug.Print("Enabling Watchdog at 100");
Watchdog.Timeout = new TimeSpan(100);
Watchdog.Behavior = WatchdogBehavior.SoftReboot;
Watchdog.Enabled = true;
Debug.Print("Sleeping for 1");
Thread.Sleep(1000); // Should reboot before here
Debug.Print("Waking Up, not rebooted");
Thread.Sleep(5000); // Should reboot before here
Debug.Print("Terminating program");
I thought I would see the board reboot before the "Waking Up..." output, but it does not reboot. Thanks.