QN9080-001-M17- “BleApp_ Senduartstream" delay sending

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

QN9080-001-M17- “BleApp_ Senduartstream" delay sending

555 Views
1758793535
Contributor I

I want to add a delay to the for loop. Every three seconds, execute "BleApp_ Senduartstream”

775Y[)58$J_$E]IBG[@6UV3.png

0 Kudos
1 Reply

530 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi @1758793535,

I hope you are doing great.

You could create a task that could help you with the timer.

 gAppTestTask1Id = OSA_TaskCreate(OSA_TASK(vfnTaskLedBlinkTest), NULL); //Task Creation 
void vfnTaskLedBlinkTest(void* param)
{
    uint16_t wTimeValue = 500; //500ms

    while(1)
    {
        LED_BLUE_TOGGLE();
        vTaskDelay(pdMS_TO_TICKS(wTimeValue));
    } 
}

 

Regards,

Mario

0 Kudos