.sleep Method

Function:

Reboots the device from a low-power state at the specified date and time.

Syntax:

sys.sleep(daycount as word, mincount as word, seconds as byte)

Returns:

---

See Also:

sys.reboot, sys.reboottoapp, sys.currentpll, sys.runmode, sys.resettype, and sys.halt


Part

Description

daycount

Number of elapsed days.

mincount

Number of elapsed minutes.

seconds

Number of elapsed seconds.

Details

Only available on the WM2000 and subsequent platforms.

This method is similar to sys.reboot, in that it will reboot the device, which will behave as after any other reboot: enter the PAUSE state if your program was compiled for debugging, or start execution if the program was compiled for release. However, this reboot is scheduled by specifying the days, minutes, and seconds in relative terms (see the rtc. object). If improperly configured, the device might not "wake" at the desired time.

The PLL mode will change after the reboot if you requested the changed through sys.newpll method.