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

    Enumeration Name

    Description

    { NO_SLEEP, , DEEP_SLEEP }

    Enumerates low power consumption modes.

    {   SYS_REBOOT_CAUSE_UNKNOWN = 0, , SYS_REBOOT_CAUSE_UPG, ,   SYS_REBOOT_CAUSE_WIFI_MODE, , SYS_REBOOT_CAUSE_USR0, ,   SYS_REBOOT_CAUSE_AT_BUSY, }

    Enumerates reboot causes.

    Details

    Enumeration Type Documentation

    LpcType

    Description:

    Enumerates low power consumption modes.

    Enumerator

    Description

    NO_SLEEP 

    No sleep

    LIGHT_SLEEP 

    Light sleep

    DEEP_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:

    Name

    Description

    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: