Hi, I would just like to know if there's an equivalent to "BLE_GAP_EVT_CONNECTED" for services discovered. There's some stored data I want to send in a loop only after services are discovered. Thanks.
Hi, I would just like to know if there's an equivalent to "BLE_GAP_EVT_CONNECTED" for services discovered. There's some stored data I want to send in a loop only after services are discovered. Thanks.
BLE is designed so that the slave/peripheral does not need to be made aware of any read operations. As the service discovery procedure consists solely of read operations, you will not by default get any notification about this.
However, by enabling a feature called "authorization" on an attribute, you will get an event on both read and write operations to that attribute. Here you can see how it works.
You enable authentication on an attribute by setting attr_md.rd_auth = 1;
I'm not sure how this will work with the specific read operations used by the service discovery procedure, but i recon this is the way you need to go.
well that's a shame that it doesn't give dedicated notifications on service discovery. Thanks .