cancel
Showing results for 
Search instead for 
Did you mean: 

WICED Studio Bluetooth

NaDo_1344206
New Contributor

Hi,

I had attached snapshot of error I am getting in WICED studio, below are the instructions.

     wiced_hal_gpio_set_pin_output(WICED_GPIO_PIN_LED_2,0);

     wiced_rtos_delay_milliseconds(500,KEEP_THREAD_ACTIVE );

    

     wiced_hal_gpio_set_pin_output(WICED_GPIO_PIN_LED_2,1);

     wiced_rtos_delay_milliseconds(500,KEEP_THREAD_ACTIVE );

This program is to toggle LED using delay function.

Please help me to resolve same.

Thanks.

0 Likes
Reply
1 Solution
AnjanaM_61
Moderator
Moderator

Hi Nainesh,

Can you please confirm if you are using CYBT-343026 or not?

wiced_rtos_delay_milliseconds function is not exposed/ supported for 20706 . You may have to use timers for delay.

Please refer to gpio snip ( /20706-A2_Bluetooth/apps/snip/hal/gpio ) as reference for toggling LED .

Also please note, don't use while(1) loop inside Application_start.

Thanks,

Anjana

View solution in original post

2 Replies
NaDo_1344206
New Contributor

My WICED-SDK Version : Wiced_006.002.001.0002.

0 Likes
Reply
AnjanaM_61
Moderator
Moderator

Hi Nainesh,

Can you please confirm if you are using CYBT-343026 or not?

wiced_rtos_delay_milliseconds function is not exposed/ supported for 20706 . You may have to use timers for delay.

Please refer to gpio snip ( /20706-A2_Bluetooth/apps/snip/hal/gpio ) as reference for toggling LED .

Also please note, don't use while(1) loop inside Application_start.

Thanks,

Anjana

View solution in original post