<?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>Advertising and Scanning</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/44832/advertising-and-scanning</link><description>SDK 15.2 API 6.1 
 I am advertising with 1 nRF module and trying to scan with a second nRF module and connect. 
 the advertiser 
 
 the scanner 
 
 When i start the advertiser and engage the scanner, the switch statement in the scan_evt_handler for p_scan_evt</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 Mar 2019 15:26:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/44832/advertising-and-scanning" /><item><title>RE: Advertising and Scanning</title><link>https://devzone.nordicsemi.com/thread/176257?ContentTypeID=1</link><pubDate>Thu, 14 Mar 2019 15:26:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94fd767c-24fc-42a3-976d-cd79d72304cd</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Looks like 18 is due to:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define NRF_ERROR_CONN_COUNT                  (NRF_ERROR_BASE_NUM + 18) ///&amp;lt; Maximum connection count exceeded.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;What is&amp;nbsp;NRF_SDH_BLE_CENTRAL_LINK_COUNT set to?&amp;nbsp;&lt;/p&gt;
[quote user="dmleone"]Reviewing the ble_app_blinky they have advertising parameters but ble_app_uart does not. what is the purpose of the paramters and why does one use and the other does not[/quote]
&lt;p&gt;Looks like the ble_app_uart use the softdevice api directly (and thereby need to encode data manually), while the ble_app_blinky use the advertisement module (which wrap around encoding of data and softdevice calls). I think using the advertisement module may be the preferred.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising and Scanning</title><link>https://devzone.nordicsemi.com/thread/176185?ContentTypeID=1</link><pubDate>Thu, 14 Mar 2019 12:58:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:991ee4a3-368a-4b0f-8b13-404c2e933e8a</guid><dc:creator>dmleone</dc:creator><description>&lt;p&gt;i have used the ble_app_hrs and ble_app_uart examples. I have examined the one you requested and i may have had a reverse of code lines. but now i am getting a connecting error&amp;nbsp;NRF_BLE_SCAN_EVT_CONNECTING_ERROR. the errror returned is 18 but i cannot find what this code is for on the website.&lt;/p&gt;
&lt;p&gt;Reviewing the ble_app_blinky they have advertising parameters but ble_app_uart does not. what is the purpose of the paramters and why does one use and the other does not&lt;/p&gt;
&lt;p&gt;Also the blinky app also does ble_adv_encode whereas uart does not. What is reason&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising and Scanning</title><link>https://devzone.nordicsemi.com/thread/176174?ContentTypeID=1</link><pubDate>Thu, 14 Mar 2019 12:30:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:102fd78b-8e7f-4b8c-8355-4559b4cc7918</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Have you studied these two examples that should do what you want to do:&lt;/p&gt;
&lt;p&gt;peripheral:&amp;nbsp;\examples\ble_peripheral\ble_app_blinky&lt;br /&gt;central:&amp;nbsp;\examples\ble_central\ble_app_blinky_c&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>