<?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>Advertisement not resuming after disconnection</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115707/advertisement-not-resuming-after-disconnection</link><description>Hi, 
 I combined the throughput example and the lbs example in NCS v2.6.2 running in NRF5340DK. It seems the advertisement is not resuming after i disconnect the app (NRF connect). 
 Please see the attached sample code. 
 
 Note that on top of the original</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 31 Oct 2024 10:07:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115707/advertisement-not-resuming-after-disconnection" /><item><title>RE: Advertisement not resuming after disconnection</title><link>https://devzone.nordicsemi.com/thread/508637?ContentTypeID=1</link><pubDate>Thu, 31 Oct 2024 10:07:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0c381ed8-ef3a-46a5-9f40-a0b56d727474</guid><dc:creator>VinuGopalakrishnan</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I think we have resolved the issue. Added these lines as in throughput example -&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static void on_disconnected(struct bt_conn *conn, uint8_t reason)
{
	if(my_conn)
	{
		bt_conn_unref(my_conn);
		my_conn=NULL;
	}
	LOG_INF(&amp;quot;Disconnected (reason %u)\n&amp;quot;, reason);
    
	dk_set_led_off(CON_STATUS_LED);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Vinu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertisement not resuming after disconnection</title><link>https://devzone.nordicsemi.com/thread/508422?ContentTypeID=1</link><pubDate>Tue, 29 Oct 2024 17:28:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6d2ef6f-7701-41d3-8724-3fc4ccceefc6</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The behavior where the device starts advertising again after disconnection is not controlled from the &amp;quot;disconnected&amp;quot; callback. I guess you could try to start advertising again from within the callback, but there might be something else at play here: Can you check and see what the behavior is, if you don&amp;#39;t do a phy update while in the connection? Do you see the same issue then?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertisement not resuming after disconnection</title><link>https://devzone.nordicsemi.com/thread/507673?ContentTypeID=1</link><pubDate>Thu, 24 Oct 2024 06:06:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4916b7d-41ee-4b46-bc1f-f1fcc5b4725a</guid><dc:creator>VinuGopalakrishnan</dc:creator><description>&lt;p&gt;Any updates?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>