<?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>How to select a peripheral among severals (BLE CENTRAL)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/78061/how-to-select-a-peripheral-among-severals-ble-central</link><description>Hi, what I want to achieve is to do a list of devices that I may want to connect to, choose one and pair/bond it (at this point, the central is paired with only one peripheral through its lifetime until some reason makes a new pairing with another peripheral</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Aug 2021 12:22:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/78061/how-to-select-a-peripheral-among-severals-ble-central" /><item><title>RE: How to select a peripheral among severals (BLE CENTRAL)</title><link>https://devzone.nordicsemi.com/thread/322867?ContentTypeID=1</link><pubDate>Mon, 02 Aug 2021 12:22:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76056aa4-bfb3-4322-85dd-574858505685</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Dagon,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I assume you were looking at the ble_app_hrs_c example not ble_app_hrs example.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the example the&amp;nbsp;nrf_ble_scan_on_ble_evt() in nrf_ble_scan.c is used to observe and handle the&amp;nbsp;BLE_GAP_EVT_ADV_REPORT event. It&amp;#39;s registered by&amp;nbsp;NRF_SDH_BLE_OBSERVER() macro inside nrf_ble_scan.h&lt;/p&gt;
&lt;p&gt;So when you set&amp;nbsp;connect_if_match = false you will then&amp;nbsp;receive NRF_BLE_SCAN_EVT_FILTER_MATCH event inside&amp;nbsp;scan_evt_handler() for each advertising packet that matched the filter. You can use the data provided in the event to find if it&amp;#39;s the device you want to connect to. The information about the advertiser is inside&amp;nbsp;p_scan_evt-&amp;gt;filter_match.p_adv_report that you can parse.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>