Read request from Central device

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

cross mob
urchc_1533771
Level 5
Level 5
5 likes given First like received First like given

I see that exist this event :

   

CYBLE_EVT_GATTS_WRITE_REQ: 
            /* This event is generated when the connected Central device sends a
            * Write request. The parameter contains the data written */

   

What a event generated when the connected Central device sends  request to read specific characteristic?

   


            

0 Likes
1 Solution
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

None, read requests are handled by the BLE stack automatically (and return the last value written to the characteristic)

View solution in original post

0 Likes
3 Replies
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

None, read requests are handled by the BLE stack automatically (and return the last value written to the characteristic)

0 Likes
urchc_1533771
Level 5
Level 5
5 likes given First like received First like given

So how I can get value that change all the time ? For example speed of running , distance I walked ....

   

I need receive current value in this moment I tap on button "Read".

0 Likes
HeLi_263931
Level 8
Level 8
100 solutions authored 50 solutions authored 25 solutions authored

You can use notifications to push changes to the GATT client.