<?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>Filtering advertisement packets using UUIDs</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96812/filtering-advertisement-packets-using-uuids</link><description>Hello everybody, I am working with a nRF52840 acting as a BLE central and I wan to scan (and connect) some specific peripherals. At first, I was using a whitelist; however, a new device for integration came and it was incompatible with this method of</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Feb 2023 16:49:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96812/filtering-advertisement-packets-using-uuids" /><item><title>RE: Filtering advertisement packets using UUIDs</title><link>https://devzone.nordicsemi.com/thread/411184?ContentTypeID=1</link><pubDate>Tue, 21 Feb 2023 16:49:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7d8d08b-196b-4638-a507-75f10299c1ad</guid><dc:creator>Daniela_A</dc:creator><description>&lt;p&gt;Hello Hung, &lt;br /&gt;&lt;br /&gt;You are totally right. I was scanning for both UUIDs with type set as BLE_UUID_TYPE_VENDOR_BEGIN. I fixed that and set the second UUID type as BLE_UUID_TYPE_VENDOR_BEGIN +1 and it works well &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Thank you very much!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Filtering advertisement packets using UUIDs</title><link>https://devzone.nordicsemi.com/thread/410916?ContentTypeID=1</link><pubDate>Mon, 20 Feb 2023 13:50:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a24f68f-c487-4fa9-884d-5ed3dc07e45e</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Daniela,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you show us how you setup the UUID to feed into&amp;nbsp;nrf_ble_scan_filter_set() ?&amp;nbsp;&lt;br /&gt;Please note that if you have 2 UUIDs you would need to match the .type with&amp;nbsp;what returned in&amp;nbsp;sd_ble_uuid_vs_add() for each of them. They will not have the same value. Most likely the first one will have&amp;nbsp;BLE_UUID_TYPE_VENDOR_BEGIN and the second one will have&amp;nbsp;BLE_UUID_TYPE_VENDOR_BEGIN+1&amp;nbsp;&lt;br /&gt;This may explain why you only can scan for the first one you declare.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>