Power
Overview
Provides device power management functions.
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
Functions
LpcInit (void) |
|
LpcSetType (LpcType type) |
|
RebootDevice (RebootCause cause) |
Details
Enumeration Type Documentation
LpcType
enum [LpcType]($api-api-LinkIoT-Power.md#gaa6139ca73fa81742134fe74345ccb748)
Description:
Enumerates low power consumption modes.
NO_SLEEP | |
LIGHT_SLEEP | |
DEEP_SLEEP |
RebootCause
enum [RebootCause]($api-api-LinkIoT-Power.md#gaeac1b873015f5b0a8aa7f3c068507426)
Description:
Enumerates reboot causes.
Function Documentation
LpcInit()
unsigned int LpcInit (void )
Description:
Initializes low power consumption.
Returns:
Returns WIFI_IOT_SUCCESS if the operation is successful; Returns an error code defined in wifiiot_errno.h otherwise.
LpcSetType()
unsigned int LpcSetType ([LpcType]($api-api-LinkIoT-Power.md#gaa6139ca73fa81742134fe74345ccb748) type)
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 wifiiot_errno.h otherwise.
RebootDevice()
void RebootDevice ([RebootCause]($api-api-LinkIoT-Power.md#gaeac1b873015f5b0a8aa7f3c068507426) cause)
Description:
Reboots the device using different causes.
Parameters:
cause | Indicates the reboot cause. |