About Sleep Functionality

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
HiIg_4537276
Level 3
Level 3
10 replies posted 5 replies posted 5 questions asked

Hello

Function processing in the functions of Wiced

Please tell me the sleep function.

What we want to realize is as follows.

------------------------------------

(1) The monitoring target flag is initially OFF.

(2) The function starts processing. Check the status of the monitoring target flag.

(3) Sleeps for 60 seconds if the monitoring target flag is not ON.

(4) After 60 seconds, check the monitoring target flag again.

(5) Repeat steps (2) ~ (4) until it is confirmed that the monitoring target flag is ON.

(6) If it is confirmed that the monitoring target flag is ON, the subsequent processing is performed.

------------------------------------

Thank you

0 Likes
1 Solution

Hi,

wiced_rtos_delay_milliseconds() function can be used for sleep mode. You can check this in the ping_powersave app present in the directory : 43xxx_Wi-Fi/apps/snip/ping_powersave/ping_powersave.c.

Please define PLATFORM_MCU_POWERSAVE_MODE_INIT=PLATFORM_MCU_POWERSAVE_MODE_SLEEP in your application make file for the system to enter sleep state.

Thanks.

View solution in original post

14 Replies