.reboottoapp Method

Function:

Reboots the device and loads the specified compiled Tibbo BASIC/C application binary.

Syntax:

sys.reboottoapp(value as pl_app_num)

Returns:

---

See Also:

Dual Tibbo BASIC/C Apps, sys.reboot, sys.currentpll, sys.runmode, sys.resettype, sys.halt


Part

Description

value

Specifies the compiled Tibbo BASIC/C application binary to load after rebooting:

  • 0 — PL_APP_NUM_0
  • 1 — PL_APP_NUM_1 (default)

Details

Only available on the WM2000 and WS1102.

Like sys.reboot, this method will reboot the device, which will behave as after any other reboot: enter the PAUSE mode if your program was compiled for debugging or start execution if the program was compiled for release. However, sys.reboottoapp specifies which compiled Tibbo BASIC/C application binary to load at boot.

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


.reboottoapp Method

Details