<?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>Disable Scan Req</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37070/disable-scan-req</link><description>Hi, 
 
 Where are scan requests sent? I&amp;#39;m trying to find the function that does this because I would like to disable it. 
 
 I only want to connect with a peripheral based strictly on its advertising data. I do not want any scan requests sent. 
 
 Thanks</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 02 Aug 2018 14:58:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37070/disable-scan-req" /><item><title>RE: Disable Scan Req</title><link>https://devzone.nordicsemi.com/thread/142663?ContentTypeID=1</link><pubDate>Thu, 02 Aug 2018 14:58:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4e957a0-d12e-4174-af09-c3a44ea05398</guid><dc:creator>Mia</dc:creator><description>&lt;p&gt;Kristin,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;That worked perfect. Thanks for the explanation!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;-Mia&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable Scan Req</title><link>https://devzone.nordicsemi.com/thread/142501?ContentTypeID=1</link><pubDate>Thu, 02 Aug 2018 06:41:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84855e33-014e-4a94-afa9-e338ddd500d4</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;A scanner that sends scan requests is called an active scanner.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;ble_app_hrs_c, main.c:

static void scan_start(void)
{
  ...  

    m_scan_param.active   = 0; // Setting &amp;quot;active&amp;quot; to 0, will disable scan requests. 
    m_scan_param.interval = SCAN_INTERVAL;
    m_scan_param.window   = SCAN_WINDOW;

  ...
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It is defined the following way:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;ble_gap.h

/**@brief GAP scanning parameters. */
typedef struct
{
 ...
  uint8_t               active                 : 1; /**&amp;lt; If 1, perform active scanning by sending scan requests.
                                                         This parameter is ignored when used with @ref sd_ble_gap_connect. */
  ...
} ble_gap_scan_params_t;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>