Power
This module is used to reboot the device and set low power consumption for the device.
Since:
1.0
Version:
1.0
Summary
Files
Enumerations
{ NO_SLEEP, , DEEP_SLEEP } |
|
{ SYS_REBOOT_CAUSE_UNKNOWN = 0, , SYS_REBOOT_CAUSE_UPG, , SYS_REBOOT_CAUSE_WIFI_MODE, , SYS_REBOOT_CAUSE_USR0, , SYS_REBOOT_CAUSE_AT_BUSY, } |
Details
Enumeration Type Documentation
LpcType
Description:
Enumerates low power consumption modes.
NO_SLEEP | |
LIGHT_SLEEP | |
DEEP_SLEEP |
Description:
Enumerates reboot causes.
Function Documentation
LpcInit()
Description:
Initializes low power consumption.
Returns:
Returns WIFI_IOT_SUCCESS if the operation is successful; Returns an error code defined in otherwise.
LpcSetType()
Description:
Sets low power consumption for the device.
Parameters:
type | Indicates the low power consumption mode to set. |
Returns:
Returns WIFI_IOT_SUCCESS if the operation is successful; Returns an error code defined in otherwise.
Description:
Reboots the device using different causes.
Parameters: