Syntax
VMBOOL vm_pwr_scheduled_startup(
    const vm_date_time_t* time, 
    VM_PWR_STARTUP_OPTION option
);
ContentsIndex
PreviousUpNext
vm_pwr_scheduled_startup
Example
Syntax
VMBOOL vm_pwr_scheduled_startup(
    const vm_date_time_t* time, 
    VM_PWR_STARTUP_OPTION option
);
Description

this interface will set device auto power on option, include time and check rules. the option will not save always, you need set it again after device reboot.

Parameters
Parameters 
Description 
const vm_date_time_t* time 
[IN] auto power on time 
VM_PWR_STARTUP_OPTION option 
[IN] check rules, refer VM_PWR_STARTUP_OPTION 
Returns

TRUE : set success 

FALSE : failed

Example

if current time is 2015/1/1 12:12:12, and you set reboot time is 2015/1/2 12:12:12. 

1, Use check rule VM_PWR_STARTUP_ENABLE_CHECK_S, then power off, device will auto power on 2015/1/1 12:13:12. 

2, Use check rule VM_PWR_STARTUP_ENABLE_CHECK_MS, then power off, device will auto power on 2015/1/1 13:12:12. 

3, Use check rule VM_PWR_STARTUP_ENABLE_CHECK_YMDHMS, then power off, device will auto power on 2015/1/2 12:12:12.

File

vmpwr.h

Group
Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at support@toolsfactory.com.