<?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-DK: Can&amp;#39;t enter in sleep mode during connection</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29320/nrf51-dk-can-t-enter-in-sleep-mode-during-connection</link><description>I&amp;#39;m running the HID Keyboard example from SDK 12.2.0 on nRF51-DK with SD 130. 
 When I long push Button1, it disconnects for a moment and connects again immediately. 
 Events in the function bsp_event_handler(bsp_event_t event) are generated only from</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 10 Jan 2018 12:00:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29320/nrf51-dk-can-t-enter-in-sleep-mode-during-connection" /><item><title>RE: nRF51-DK: Can't enter in sleep mode during connection</title><link>https://devzone.nordicsemi.com/thread/116662?ContentTypeID=1</link><pubDate>Wed, 10 Jan 2018 12:00:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9238db07-4aa4-4836-9f8f-d0ef24422e04</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;1 . The reason the chip wake up when you release the button is that the wake up button is configured the same as the sleep button, so when you release the sleep button, it wake the chip up.&lt;/p&gt;
&lt;p&gt;If you change the wake up button to something else (inside bsp_btn_ble.c) you should be able to leave the chip sleeping until you press the wake up button.&lt;/p&gt;
&lt;p&gt;2 . If you don&amp;#39;t want whitelist, you can remove whitelist in advertising_start().
If you don&amp;#39;t want directed advertising you can edit the code inside advertising_init()  to disable ble_adv_directed_enabled.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>