<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Service Discovery GAP EVT equivalent</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/6490/service-discovery-gap-evt-equivalent</link><description>Hi, I would just like to know if there&amp;#39;s an equivalent to &amp;quot;BLE_GAP_EVT_CONNECTED&amp;quot; for services discovered. There&amp;#39;s some stored data I want to send in a loop only after services are discovered.
Thanks.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 14 Apr 2015 15:05:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/6490/service-discovery-gap-evt-equivalent" /><item><title>RE: Service Discovery GAP EVT equivalent</title><link>https://devzone.nordicsemi.com/thread/22662?ContentTypeID=1</link><pubDate>Tue, 14 Apr 2015 15:05:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:956656d1-624b-41ca-b673-362f55a621f8</guid><dc:creator>Kosidinma</dc:creator><description>&lt;p&gt;well that&amp;#39;s a shame that it doesn&amp;#39;t give dedicated notifications on service discovery. Thanks .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Service Discovery GAP EVT equivalent</title><link>https://devzone.nordicsemi.com/thread/22661?ContentTypeID=1</link><pubDate>Tue, 14 Apr 2015 11:20:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a847dcde-258a-47cd-af4d-cf23db29bd40</guid><dc:creator>shibshab</dc:creator><description>&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;However, by enabling a feature called &amp;quot;authorization&amp;quot; on an attribute, you will get an event on both read and write operations to that attribute. &lt;a href="http://developer.nordicsemi.com/nRF51_SDK/nRF51_SDK_v8.x.x/doc/8.0.0/s110/html/a00916.html"&gt;Here&lt;/a&gt; you can see how it works.&lt;/p&gt;
&lt;p&gt;You enable authentication on an attribute by setting &lt;code&gt;attr_md.rd_auth = 1;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;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.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>