<?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>BLE/NRF51: how to not stop advertising on connect</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/1953/ble-nrf51-how-to-not-stop-advertising-on-connect</link><description>The way i understood GAP, it&amp;#39;s supposed to be some sort of stateless key/value protocol. 
 In order to get GAP working with an ibeacon, i took the ibeacon example, and changed m_adv_params.type from BLE_GAP_ADV_TYPE_ADV_NONCONN_IND to BLE_GAP_ADV_TYPE_ADV_IND</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 21 Mar 2014 09:48:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/1953/ble-nrf51-how-to-not-stop-advertising-on-connect" /><item><title>RE: BLE/NRF51: how to not stop advertising on connect</title><link>https://devzone.nordicsemi.com/thread/8406?ContentTypeID=1</link><pubDate>Fri, 21 Mar 2014 09:48:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02f9261e-12c6-4b34-9da8-272048fb7339</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;I can&amp;#39;t really see any way to solve your use case except to let each device connect, run the query and then disconnect. This will cause small periods of lockout for the other devices, but these should be short (i.e. &amp;lt; 1 s), so unless you have very many devices and very short response time requirements, I don&amp;#39;t think this should be a problem.&lt;/p&gt;
&lt;p&gt;The problem with a pure Broadcaster/Observer setup is the requirement to send a query to the device, as you don&amp;#39;t have control over the contents of the Scan Request that the Observer sends. Its contents are defined in the Core Specification, and there is no room for user data. There is hence no way to transfer the value of the query to the Broadcaster without establishing a connection.&lt;/p&gt;
&lt;p&gt;I would not describe the GAP layer of the BLE specification as stateless, but it might make sense to talk about GATT as stateless. This is the layer at which data transfers happen once in a connection, but even here there is in some sense a state (for example if you&amp;#39;re in the middle of a Long Writes, or if have enabled notifications).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>