<?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 add  the two mac address to  nrf_ble_scan_filter_set</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58334/how-to-add-the-two-mac-address-to-nrf_ble_scan_filter_set</link><description>Hi ... i want central to connect to the two different peripheral mac address , i am using ble_app_uart_c example version 15.2 .. using scan_filter_address i can abe to connect to the one peripheral , now i want to add one more address to filter how to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 28 Feb 2020 14:46:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58334/how-to-add-the-two-mac-address-to-nrf_ble_scan_filter_set" /><item><title>RE: how to add  the two mac address to  nrf_ble_scan_filter_set</title><link>https://devzone.nordicsemi.com/thread/237189?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2020 14:46:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2207c303-b4ba-4dcb-a679-a9e278d39533</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Yes. It seems like a user in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/58044/multilink-central-nus-client"&gt;this post&amp;nbsp;&lt;/a&gt;started on implementing multilink NUS_C, maybe you can find the code snippets there useful. And if it&amp;#39;s actually a NUS relay you are implementing, then you might find &lt;a href="https://github.com/NordicPlayground/nrf52-ble-app-uart-relay"&gt;this example here&lt;/a&gt; useful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to add  the two mac address to  nrf_ble_scan_filter_set</title><link>https://devzone.nordicsemi.com/thread/237015?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2020 06:14:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcd7df37-8bd1-407e-b09a-b7f89e481866</guid><dc:creator>ps_anu</dc:creator><description>&lt;p&gt;are you sure ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to add  the two mac address to  nrf_ble_scan_filter_set</title><link>https://devzone.nordicsemi.com/thread/236883?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2020 13:38:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f643309-a4da-4345-91d9-16358dbd0090</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Unfortunately, the ble_app_uart_c example only supports to be connected to 1 NUS peripheral. I&amp;#39;m not aware of any Multilink NUS_C example. You will need to take a look at the&amp;nbsp;ble_app_multilink_central on how to implement that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to add  the two mac address to  nrf_ble_scan_filter_set</title><link>https://devzone.nordicsemi.com/thread/236485?ContentTypeID=1</link><pubDate>Wed, 26 Feb 2020 10:40:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da793092-34a7-48af-8aa9-95ccc20970cb</guid><dc:creator>ps_anu</dc:creator><description>&lt;p&gt;thankyoy for your response, yes but i want to add another address how to add ?&amp;nbsp; i tried this , but didn&amp;#39;t worked . only last&lt;/p&gt;
&lt;p&gt;one getting connected to the central&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static ble_gap_addr_t m_target_periph_first =
{
.addr_type = BLE_GAP_ADDR_TYPE_RANDOM_STATIC,
.addr = {0x74, 0xCC, 0x89, 0x45, 0x98, 0xD7},

};

static ble_gap_addr_t m_target_periph_second =
{
.addr_type = BLE_GAP_ADDR_TYPE_RANDOM_STATIC,
.addr = {0xED, 0x6E, 0x76, 0xAE, 0x33, 0xFD} // This matches what nRF Connect shows via Scan, for peripheral
};


     err_code = nrf_ble_scan_filter_set(&amp;amp;m_scan, SCAN_ADDR_FILTER, m_target_periph_first.addr);
    APP_ERROR_CHECK(err_code);
       err_code = nrf_ble_scan_filter_set(&amp;amp;m_scan, SCAN_ADDR_FILTER, m_target_periph_second.addr);
    APP_ERROR_CHECK(err_code);&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to add  the two mac address to  nrf_ble_scan_filter_set</title><link>https://devzone.nordicsemi.com/thread/236475?ContentTypeID=1</link><pubDate>Wed, 26 Feb 2020 10:08:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17244d69-f939-480e-b79f-4a60c39fbb10</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Set NRF_BLE_SCAN_ADDRESS_CNT in sdk_config.h to 2, and call&amp;nbsp;nrf_ble_scan_filter_set() again with the&amp;nbsp;second address.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>