<?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>using two different UUID</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/87698/using-two-different-uuid</link><description>Hi, 
 I&amp;#39;m uisng pca10100, nrf52833. 
 
 My project have both scanning and advertising. And I want to using two different custom UUID per each scan and advertise. 
 I define each uuid, each function and each data. But it&amp;#39;s only work one UUID which I define</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 09 May 2022 13:15:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/87698/using-two-different-uuid" /><item><title>RE: using two different UUID</title><link>https://devzone.nordicsemi.com/thread/366959?ContentTypeID=1</link><pubDate>Mon, 09 May 2022 13:15:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3947192-87d9-4e07-942a-68f6c775b52c</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Lyrics,&lt;/p&gt;
&lt;p&gt;The two snippets where you initialize scanning and advertising immediately looks OK, though I don&amp;#39;t see where&amp;nbsp;m_wdw_uuid and&amp;nbsp;m_adv_uuids comes from. Also, you have some SVCALL definition that immediately looks very suspicious (the SoftDevice use supervisor calls, but these are not SoftDevice functions, so I am very unsure about what this is. Does this code really work with one UUID?&lt;/p&gt;
&lt;p&gt;If you want to see how to add custom UUIDs I suggest you refer to the NUS implementation&amp;nbsp; &amp;lt;SDK&amp;gt;\components\ble\ble_services\ble_nus\ble_nus.c (you may also need to adjust the NRF_SDH_BLE_VS_UUID_COUNT in sdk_config.h).&lt;/p&gt;
&lt;p&gt;You do not write in which way this doe snot fail, and I do not see enough of your code or config to suggest anything with confidence. However, if you want to filter on multiple UUIDs with the BLE Scan module you need to set&amp;nbsp;NRF_BLE_SCAN_UUID_CNT in sdk_config.h to a higher number.&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>