<?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>Cant re-start advertising after disconnect</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60901/cant-re-start-advertising-after-disconnect</link><description>Hello, in my application (adapted from ble_app_uart peripheral example of SDK 16.0) I am starting advertising using 
 
 err_code = ble_advertising_start(&amp;amp;m_advertising, BLE_ADV_MODE_FAST); 
 
 and then letting it connect and disconnect, and then after</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 05 May 2020 19:01:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60901/cant-re-start-advertising-after-disconnect" /><item><title>RE: Cant re-start advertising after disconnect</title><link>https://devzone.nordicsemi.com/thread/248299?ContentTypeID=1</link><pubDate>Tue, 05 May 2020 19:01:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67979676-3bd7-4e8e-81ad-08eb6f8a6fb7</guid><dc:creator>riceman0</dc:creator><description>&lt;p&gt;got it, thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cant re-start advertising after disconnect</title><link>https://devzone.nordicsemi.com/thread/247974?ContentTypeID=1</link><pubDate>Mon, 04 May 2020 15:33:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ed0555c-85cb-4e43-9250-310c6b0130d7</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;The advertising module will by default re-start the advertising for you in ble_advertising.c function on_disconnected(). If you then try start it yourself with&amp;nbsp;sd_ble_gap_adv_start(), the function&amp;nbsp;sd_ble_gap_adv_start() will return&amp;nbsp;&lt;span&gt;NRF_ERROR_INVALID_STATE because advertising is already on-going!&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>