You are here

Custom Profile , process of enable notification for send data | Cypress Semiconductor

Custom Profile , process of enable notification for send data

Summary: 1 Reply, Latest post by hli on 26 Dec 2015 03:55 PM PST
Verified Answers: 1
Last post
Log in to post new comments.
singh.amit5757_1546876's picture
12 posts


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.

user_78878863's picture
2553 posts

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?

Log in to post new comments.