GATT server event when long read completes

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

How can my GATT server know when a long read is completed? Is there an event for that? Or is there another way?

   

 

   

For normal reads, the event CYBLE_EVT_GATTS_READ_CHAR_VAL_ACCESS_REQ  is triggered, and the parameter of type CYBLE_GATTS_CHAR_VAL_READ_REQ_T tells me which Handle the client wants to read (and FYI: you can respond to the client's read attempt by writing to this parameter's gattErrorCode field). But if the client does a long read on the Characteristic, the event is triggered multiple times.

0 Likes
1 Solution
Anonymous
Not applicable

You may keep a track of the event to know how much data is read and estimate how much data is to be left.

View solution in original post

0 Likes
2 Replies
Anonymous
Not applicable

You may keep a track of the event to know how much data is read and estimate how much data is to be left.

0 Likes
Anonymous
Not applicable

That's possible, but it seems like dirty (and unstable) hack!

0 Likes