- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
I create a custom server profile, after creating connection with client I send notify from client , I got event CYBLE_EVT_GATTS_WRITE_REQ , in this event I just send data to client using CyBle_GattsNotification() method , once it sent to client but after that again when I sent data it not sent. Is there anything I missed in these process which I have to enable or disable anywhere in my code. if there then please prove API for that. Thanks in advance.
Solved! Go to Solution.
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What do you want to do? The only reason to do something with a write request is to enable notifications for a certain attribute.
Normally you just set an attribute to a new value, and the client will read it once in a while. If notifications are enabled, use the notification call to send the updated value directly (at the cost of battery life). As long as you regularly process the BLE events in you main loop, everything is fine.
Maybe have a look at the sample projects?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What do you want to do? The only reason to do something with a write request is to enable notifications for a certain attribute.
Normally you just set an attribute to a new value, and the client will read it once in a while. If notifications are enabled, use the notification call to send the updated value directly (at the cost of battery life). As long as you regularly process the BLE events in you main loop, everything is fine.
Maybe have a look at the sample projects?