<?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 reconnect after disconnecting via iOS app?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4973/how-to-reconnect-after-disconnecting-via-ios-app</link><description>I&amp;#39;m using the example ble_app_hrs along with the HRM part of the nRF Toolbox iOS app . It makes sense to handle this in on_ble_evt in main.c but am unclear how I can recover from enter system mode off. 
 static void on_ble_evt(ble_evt_t * p_ble_evt)</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 10 Apr 2015 07:49:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4973/how-to-reconnect-after-disconnecting-via-ios-app" /><item><title>RE: How to reconnect after disconnecting via iOS app?</title><link>https://devzone.nordicsemi.com/thread/17521?ContentTypeID=1</link><pubDate>Fri, 10 Apr 2015 07:49:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a85f7820-6eea-467e-b841-435c89e3b746</guid><dc:creator>charlie</dc:creator><description>&lt;p&gt;If i want to pair the 51822 with an IOS app some time without the 51822 powre off and on,can i use a button ISR to excute the advertising_start() function?  how should i do? thank you in advance!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to reconnect after disconnecting via iOS app?</title><link>https://devzone.nordicsemi.com/thread/17520?ContentTypeID=1</link><pubDate>Wed, 31 Dec 2014 23:23:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:052d91fe-dfe9-432e-892c-2f7ebe625400</guid><dc:creator>la-ble</dc:creator><description>&lt;p&gt;Assuming all other denitializations/initializations specific to your firmware app and the template overhead are handled appropriately, all you really need to do is re-start advertising at that point.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;case BLE_GAP_EVT_DISCONNECTED:    
  /*        
  // @note Flash access may not be complete on return of this API. System attributes are now
  // stored to flash when they are updated to ensure flash access on disconnect does not
  // result in system powering off before data was successfully written.

  // Go to system-off mode, should not return from this function, wakeup will trigger
  // a reset.
  system_off_mode_enter();
  */

  // TODO: Deinit whatever you need, stop timers, etc
   
  // Restart advertising
  advertising_start();
  break;
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>