Two questions:
1) Where can I see the status of bugs filed (ie: MERT-xxxx)?
2) Is the Watchdog functional for the Windows emulator on Java ME Embedded 8 EA?
This code simply exits immediately, rather than waiting the 60 seconds. Subsequent starts indicate the
Watchdog caused the reboot.
public class WatchdogIMlet extends MIDlet {
private WatchdogTimer watchDog;
private final String watchDogName = "WDG";
private final int watchDogID = 30;
private final long watchDogTimeout = 60000; // 1 minute
@Override
public void startApp() {
// Open the watch dog device
try {
watchDog = PeripheralManager.open(watchDogName, WatchdogTimer.class, (String[]) null);
if (watchDog.causedLastReboot()) {
System.out.println("Reboot was the result a watch dog timeout!");
}
System.out.println("Starting WatchDog Timer....");
watchDog.start(watchDogTimeout);
} catch (IOException ex) {
System.out.println("IOException creating/starting watchDog: " + ex.getMessage());
}
new Timer().schedule(task, 30000);
}
....