<?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 ble when it is connect on nrfconnect app on mobile without reaching the breakpoint?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49685/how-to-restart-ble-when-it-is-connect-on-nrfconnect-app-on-mobile-without-reaching-the-breakpoint</link><description>Hi Everyone , 
 I have setup an gpiote iinterrupt on a button on a custom PCB incorporating nrf52840. Whenever the interrupt arrives(button pressed) the bluetooth shall wake up from its sleep(start advertising again). 
 i am able to do this but partially</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 Jul 2019 13:02:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49685/how-to-restart-ble-when-it-is-connect-on-nrfconnect-app-on-mobile-without-reaching-the-breakpoint" /><item><title>RE: How to restart ble when it is connect on nrfconnect app on mobile without reaching the breakpoint?</title><link>https://devzone.nordicsemi.com/thread/198178?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2019 13:02:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5688915a-695d-4cfe-9d99-6713de8d753b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you planning to support multiple concurrent connections or just one at a time? I.e., do you need to start advertising if you&amp;#39;re already connected?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to restart ble when it is connect on nrfconnect app on mobile without reaching the breakpoint?</title><link>https://devzone.nordicsemi.com/thread/197979?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2019 05:45:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5e5317c-e1cf-4aba-b815-a7fbb71dc0bd</guid><dc:creator>Rajat</dc:creator><description>&lt;p&gt;Update&amp;nbsp; : I have setup flags for both the status , whenever ble is connected or is in sleep mode.&lt;br /&gt;&lt;br /&gt;Modified code is&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;void&lt;br /&gt;in_pin_handler (nrf_drv_gpiote_pin_t pin, nrf_gpiote_polarity_t action)&lt;br /&gt;{&lt;/p&gt;
&lt;p&gt;SEGGER_RTT_printf (0, &amp;quot;Interrupt\r\n&amp;quot;);&lt;br /&gt; &lt;br /&gt; if(connected_ble_flag !=1)&lt;br /&gt; {&lt;br /&gt; sd_ble_gap_adv_stop (NULL);&lt;/p&gt;
&lt;p&gt;advertising_start ();&lt;br /&gt; }&lt;br /&gt; else if(ble_sleep==1)&lt;br /&gt; {&lt;br /&gt; sd_ble_gap_adv_stop (NULL);&lt;/p&gt;
&lt;p&gt;advertising_start ();&lt;br /&gt; }&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If there are any modification needed or there is a better way to do it , please provide suggestions&lt;/p&gt;
&lt;p&gt;thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>