<?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 confing non-connectable advertise</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10015/how-to-confing-non-connectable-advertise</link><description>In s110 sdk 8, peripheral can connect one master and advertise in a non-connectable state simultaneously by here 
but I did not find out how to confing non-connectable advertise ,
any one can help ?
Thanks!</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 05 Nov 2015 12:22:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10015/how-to-confing-non-connectable-advertise" /><item><title>RE: how to confing non-connectable advertise</title><link>https://devzone.nordicsemi.com/thread/37102?ContentTypeID=1</link><pubDate>Thu, 05 Nov 2015 12:22:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24feb703-168f-4cbc-be0c-d5aaef7fb78f</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;There is no connection request event, you have the BLE_GAP_EVT_CONNECTED event, but you will never get this if you are doing non-connectable advertising.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to confing non-connectable advertise</title><link>https://devzone.nordicsemi.com/thread/37101?ContentTypeID=1</link><pubDate>Thu, 05 Nov 2015 03:05:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:634a5ed5-27b0-45b4-8569-a213c26e01d0</guid><dc:creator>qoboty</dc:creator><description>&lt;p&gt;Yes, it works well now, thank you !
By the way, now I can get scan request event, if I want to get connect request event,
does it exist  and how to get?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to confing non-connectable advertise</title><link>https://devzone.nordicsemi.com/thread/37100?ContentTypeID=1</link><pubDate>Tue, 03 Nov 2015 09:59:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec491415-1498-4c91-9711-e04138f8fe59</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Does it work if you use BLE_GAP_ADV_TYPE_ADV_SCAN_IND instead of BLE_GAP_ADV_TYPE_ADV_NONCONN_IND?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to confing non-connectable advertise</title><link>https://devzone.nordicsemi.com/thread/37099?ContentTypeID=1</link><pubDate>Tue, 03 Nov 2015 05:38:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a9708cc0-dcdd-464c-9252-01002cd75ad7</guid><dc:creator>qoboty</dc:creator><description>&lt;p&gt;Thank you, I configure as you said,now I can advertise in non-connectable mode when connect one master, HoweVer scan request report can not work in  non-connectable mode  on the event &amp;quot;BLE_GAP_EVT_SCAN_REQ_REPORT&amp;quot;, How to fix it ? thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to confing non-connectable advertise</title><link>https://devzone.nordicsemi.com/thread/37098?ContentTypeID=1</link><pubDate>Mon, 02 Nov 2015 14:04:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97abf334-d008-4337-b8f4-a627e068854b</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Simply call sd_ble_gap_adv_start(). You must advertise in non-connectable mode when in connection. And note that when advertise in non-connectable mode you would need to have advertising interval of minimum 100ms. Something like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;// Initialize advertising parameters (used when starting advertising).
memset(&amp;amp;m_adv_params, 0, sizeof(m_adv_params));

m_adv_params.type        = BLE_GAP_ADV_TYPE_ADV_NONCONN_IND;
m_adv_params.p_peer_addr = NULL;                             
m_adv_params.fp          = BLE_GAP_ADV_FP_ANY;
m_adv_params.interval    = NON_CONNECTABLE_ADV_INTERVAL; // &amp;gt;100 ms
m_adv_params.timeout     = APP_CFG_NON_CONN_ADV_TIMEOUT;

uint32_t err_code;

err_code = sd_ble_gap_adv_start(&amp;amp;m_adv_params);
APP_ERROR_CHECK(err_code);
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>