<?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>NRF51 wake up on Bluetooth disconnection?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20435/nrf51-wake-up-on-bluetooth-disconnection</link><description>Hi, 
 I put my nrf51 into power-on sleep mode by calling sd_app_evt_wait(). 
 When I walk away with my mobile phone, the bluetooth disconnected and my nrf51 can receive event BLE_GAP_EVT_DISCONNECTED. This event seems cannot wake up my nrf51 because</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 14 Mar 2017 13:21:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20435/nrf51-wake-up-on-bluetooth-disconnection" /><item><title>RE: NRF51 wake up on Bluetooth disconnection?</title><link>https://devzone.nordicsemi.com/thread/79681?ContentTypeID=1</link><pubDate>Tue, 14 Mar 2017 13:21:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6ad3342-0fc0-4eaa-803c-a39e22e8607d</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Dawei,&lt;/p&gt;
&lt;p&gt;What do you mean by &amp;quot;cannot wake up &amp;quot; ? If you can receive BLE_GAP_EVT_DISCONNECTED event, and jump into the event handler that means the event actually wake the CPU up and the CPU process the event.
You can choose to do what ever you want when you processing that event. If you don&amp;#39;t really want to put the CPU after that, you can turn off a flag (a variable) so that in the mainloop you stop calling sd_app_evt_wait.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>