- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Solved! Go to Solution.
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You may keep a track of the event to know how much data is read and estimate how much data is to be left.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You may keep a track of the event to know how much data is read and estimate how much data is to be left.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That's possible, but it seems like dirty (and unstable) hack!