This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Event processing

Hi guys, I actually dunno how bluetooth process these events. I got few questions about it:

1.  Actually, how this function work? uint16 SimpleBLEPeripheral_ProcessEvent( uint8 task_id, uint16 events ) . How the program know when to come in to this function? 

2. Do this function need to call or it is already call in simpleBLEperipheral.c there?

  • See the software developer's guide for more information on this:

    You can see where it's referenced in IAR by right clicking on the function name and clicking 'Find All References to' and follow the chain to see how it's used.

    You'll see that that function is in the tasksArr, I'll leave the exercise to you to find out how that array is used.

    Note: Build the project before using 'Find All References to'!

    Regards,
    Rebel