cancel
Showing results for 
Search instead for 
Did you mean: 

BLE Events with sequencer

MahmoudAhmed11
Associate II

Hello,

I am using P-Nucleo-WB55. I have made a simple BLE server example that receives data from a client and it's working well. But whenever I add sequencer tasks, while these tasks are running, if I send any data from the client (ST BLE App), the nucleo doesn't receive it immediately. I have to wait until the tasks are finished.
I try to minimize the task time so that the sequencer can run whatever is related to the events, but it also doesn't work. I have to wait until all the tasks are finished and there are no set tasks, so that the event handler is called and the action that happens when I send data happens.

 

I am trying now with this example mahmoudahmedibrahim5/BLE_Receive_example, so that I can add that to a real application, so this is just an example.

This example has 1 service with 1 characteristic. When the client sends data, the event handler calls Custom_STM_App_Notification and it checks the data and blinks different LEDs based on that data. It has only one task that blinks the LED 50 times. 

 

I want it to be able to receive the data while the task is repeated.

 

Thanks in advance.

0 REPLIES 0