<?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>Interface inconsistency when discovering multiple services</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25308/interface-inconsistency-when-discovering-multiple-services</link><description>registered_handler_get() in ble_db_discovery.c searches a table for the appropriate handler to call for a given UUID. 
 However, ble_db_discovery_evt_register() assigns the same handler for all UUIDs: 
 uint32_t ble_db_discovery_evt_register(ble_uuid_t</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 20 Sep 2017 13:18:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25308/interface-inconsistency-when-discovering-multiple-services" /><item><title>RE: Interface inconsistency when discovering multiple services</title><link>https://devzone.nordicsemi.com/thread/99733?ContentTypeID=1</link><pubDate>Wed, 20 Sep 2017 13:18:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:acf1b15e-bb73-41b3-844d-294d914da6b2</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;All events from the database discovery module is dispatched a single handler.&lt;/p&gt;
&lt;p&gt;You can have a look at ble_app_hrs, where you have&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;/**@brief Function for handling database discovery events.
 *
 * @details This function is callback function to handle events from the database discovery module.
 *          Depending on the UUIDs that are discovered, this function should forward the events
 *          to their respective services.
 *
 * @param[in] p_event  Pointer to the database discovery event.
 */
static void db_disc_handler(ble_db_discovery_evt_t * p_evt)
{
    ble_hrs_on_db_disc_evt(&amp;amp;m_hrs_c, p_evt);
    ble_bas_on_db_disc_evt(&amp;amp;m_bas_c, p_evt);
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>