CYW20719: Thread sleep

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

cross mob
Anonymous
Not applicable

Is it possible to force the current thread to sleep for some amount of ms?

0 Likes
1 Solution
ShengY_96
Employee
Employee
10 sign-ins 5 sign-ins Welcome!

Try this: wiced_rtos_delay_milliseconds(x_ms,ALLOW_THREAD_TO_SLEEP);

And we need to include the "wiced_rtos.h" file to use the RTOS function.

View solution in original post

1 Reply
ShengY_96
Employee
Employee
10 sign-ins 5 sign-ins Welcome!

Try this: wiced_rtos_delay_milliseconds(x_ms,ALLOW_THREAD_TO_SLEEP);

And we need to include the "wiced_rtos.h" file to use the RTOS function.