<?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>Discovery, get handle of first characteristic by Service UUID</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90594/discovery-get-handle-of-first-characteristic-by-service-uuid</link><description>We have a custom service on our server/peripheral devices, with a number of characteristics. 
 This service is implemented on a number of host platforms, including nRF devices, TI devices, uBlox devices, Android, iOS etc. Our custom service structure</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Aug 2022 13:49:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90594/discovery-get-handle-of-first-characteristic-by-service-uuid" /><item><title>RE: Discovery, get handle of first characteristic by Service UUID</title><link>https://devzone.nordicsemi.com/thread/380636?ContentTypeID=1</link><pubDate>Mon, 08 Aug 2022 13:49:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a41761c-077f-4e70-bcec-75857a2fcc37</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]Is this the DB Discovery library the most efficient way of doing what we want on the nRF platform or are there other alternatives? Secondly, how does it work/are there any indications on performance before we embark on the development?[/quote]
&lt;p&gt;Here you can see what happen on-air between the BLE UART peripheral and central examples, where the DB discovery module discovers the NUS service and enables the notifications. Also note that if you bond with the device, no service discovery is needed in&amp;nbsp;subsequent connections between the devices.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;(Sniffer trace captured&amp;nbsp;using &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nRF-Sniffer-for-Bluetooth-LE"&gt;nRF sniffer &lt;/a&gt;)&lt;/span&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/5826.pastedimage1659966342011v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;If you find that the DB Discovery library does not offer the performance you want, then perhaps using the SoftDevice API directly could be a solution.&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.3.0/group___b_l_e___g_a_t_t_c___f_u_n_c_t_i_o_n_s.html"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.3.0/group___b_l_e___g_a_t_t_c___f_u_n_c_t_i_o_n_s.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>