This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

BLE_GATTS_EVT_WRITE event

I am unclear whether the soft radio takes care of updating the attribute when a write event occurs. I can see in the example codes that the notification flag is handled by the application. My question is does the application need to call sd_ble_gatts_value_set() or is this taken care of automatically?

Also, I am assuming when a read request is received, the soft radio automatically sends the value by calling sd_ble_gatts_value_get() without involving the application. If this is true, is there any way to break into this operation and update the attribute before it is transmitted? Notify approach doesn't quite do what I need.

Parents Reply Children
No Data
Related