- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
Solved! Go to Solution.
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you, Roit!
I made it!
10 K Bytes/s, perfect speed for me to receive data OTA from my Optical Flow Sensor.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Awesome!!