<?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>S112 advertisement after disconnect</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57459/s112-advertisement-after-disconnect</link><description>Hi, 
 
 How does disconnect work in S112? 
 In the ble_template project, I did not find anything in DISCONNECT event. 
 static void ble_evt_handler(ble_evt_t const * p_ble_evt, void * p_context) { ret_code_t err_code = NRF_SUCCESS; 
 switch (p_ble_evt</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 07 Feb 2020 07:58:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57459/s112-advertisement-after-disconnect" /><item><title>RE: S112 advertisement after disconnect</title><link>https://devzone.nordicsemi.com/thread/233192?ContentTypeID=1</link><pubDate>Fri, 07 Feb 2020 07:58:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39f56aff-4da3-42b0-aa01-3f991649e622</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;It is registered using NRF_SDH_BLE_OBSERVER&amp;nbsp;from&amp;nbsp;ble_advertising.h. This is done using section variables, so it might look a bit like magic if you are not used to using it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S112 advertisement after disconnect</title><link>https://devzone.nordicsemi.com/thread/233123?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2020 16:18:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2783fcfe-3251-489c-899e-8c6d3aade8b3</guid><dc:creator>Daniel</dc:creator><description>&lt;p&gt;When is it being configured?&amp;nbsp; I set the breakpoint in&amp;nbsp;ble_advertising_on_ble_evt () and it comes over there on disconnect event. But I could not find any instance in the entire solution where it is being configured to handle this event.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S112 advertisement after disconnect</title><link>https://devzone.nordicsemi.com/thread/233000?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2020 10:04:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27fbd522-a5ca-42a4-ab61-e5bf736700ea</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;&lt;span&gt;ble_template project in SDK 16 uses the advertising module, and that will restart advertising when disconnected. You can see the implementation of this in &amp;lt;SDK&amp;gt;/components/ble/ble_advertising/ble_advertising.c. Upon a BLE_GAP_EVT_DISCONNECTED event, on_disconnected() is called, and that calls ble_advertising_start().&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: S112 advertisement after disconnect</title><link>https://devzone.nordicsemi.com/thread/232942?ContentTypeID=1</link><pubDate>Thu, 06 Feb 2020 03:57:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa669842-7599-4ef3-8c8f-4883ce4b9096</guid><dc:creator>billtsai</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;you can search&amp;nbsp;&lt;span&gt;BLE_GAP_EVT_DISCONNECTED with entire project.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Then you can find that in ble_advertising.c line 116, it will advertising again.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>