cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4 MCU

Anonymous
Not applicable

Hi,

   

I am trying to use CyBle_GattsNotification() to keep sending data,

   

however, it turns out that this function can only be used continuously for 10 times, with 20 bytes data each time.

   

Data sent after the 10th time would be lost.

   

I am guessing it might be a problem with buffer that need a push to send first.

   

Could anyone tell me how could I figure this problem out?

   

Thank you!

0 Likes
1 Solution
Anonymous
Not applicable

Hi Sen,

   

 

   

If you keep on using GattsNotification API without the notification actually being sent to the connected device, the internal buffer will fill and no more notifications can be pushed.

   

Ensure that:

   

1) You are connected to a client device.

   

2) The client device has enabled notifications through CCCD

   

3) You are calling the CyBle_ProcessEvents() after each GattsNotification call.

View solution in original post

0 Likes
3 Replies
Anonymous
Not applicable

Hi Sen,

   

 

   

If you keep on using GattsNotification API without the notification actually being sent to the connected device, the internal buffer will fill and no more notifications can be pushed.

   

Ensure that:

   

1) You are connected to a client device.

   

2) The client device has enabled notifications through CCCD

   

3) You are calling the CyBle_ProcessEvents() after each GattsNotification call.

View solution in original post

0 Likes
Anonymous
Not applicable

Thank you, Roit!

   

I made it! 

   

10 K Bytes/s, perfect speed for me to receive data OTA from my Optical Flow Sensor.

Anonymous
Not applicable

Awesome!!

0 Likes