<?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 restart advertising on a custom button on nrf52840?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39885/how-to-restart-advertising-on-a-custom-button-on-nrf52840</link><description>Hi Everyone 
 I am using 
 SDK 15.0 
 Segger Embedded Studio 
 nrf52840 on a custom PCB. 
 Softdevice s140. 
 FreeRTOS. 
 My requirement is , on the press of a button , the advertising should restart. 
 This is what i have done : 
 1. Detect button press</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 26 Oct 2018 14:10:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39885/how-to-restart-advertising-on-a-custom-button-on-nrf52840" /><item><title>RE: How to restart advertising on a custom button on nrf52840?</title><link>https://devzone.nordicsemi.com/thread/154700?ContentTypeID=1</link><pubDate>Fri, 26 Oct 2018 14:10:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bd9c089-efbd-4475-aa3c-34a280e5cac1</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;[quote userid="72088" url="~/f/nordic-q-a/39885/how-to-restart-advertising-on-a-custom-button-on-nrf52840"][/quote]&lt;/p&gt;
&lt;p&gt;The System goes into a breakpoint condition.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So look at the condition that causes it to do that, and adjust to suit your requirement.&lt;/p&gt;
&lt;p&gt;At a guess, you need to disconnect before you can re-start advertising ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>