<?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>ble_app_uart -&amp;gt;  Button hold event</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16227/ble_app_uart---button-hold-event</link><description>main.c Hi, 
 Currently I am using &amp;quot;ble_app_uart&amp;quot; base example to understand how ble works. I have gone through bsp and other header that related to button events. 
 There are few things that I didn&amp;#39;t understand well enough to use this application in</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Sep 2016 13:41:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16227/ble_app_uart---button-hold-event" /><item><title>RE: ble_app_uart -&gt;  Button hold event</title><link>https://devzone.nordicsemi.com/thread/61986?ContentTypeID=1</link><pubDate>Tue, 13 Sep 2016 13:41:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31df3da8-49da-4266-9cef-8bfa4e63b2ee</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Great! Then I would appreciate if you could accept my answer by clicking the check mark next to it. Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_uart -&gt;  Button hold event</title><link>https://devzone.nordicsemi.com/thread/61985?ContentTypeID=1</link><pubDate>Mon, 12 Sep 2016 15:50:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39c8d236-4402-42c7-91e5-9436d20a2a07</guid><dc:creator>Siva</dc:creator><description>&lt;p&gt;Hi Petter,
I found a solution here &lt;a href="https://devzone.nordicsemi.com/question/68412/recording-time-for-which-the-button-is-pressed/#68415"&gt;link text&lt;/a&gt;. It works for me now
Many Thanks
Siva&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_uart -&gt;  Button hold event</title><link>https://devzone.nordicsemi.com/thread/61984?ContentTypeID=1</link><pubDate>Mon, 12 Sep 2016 12:35:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e59bc8d-6d15-40e0-bc52-aec585a4c4ef</guid><dc:creator>Siva</dc:creator><description>&lt;p&gt;From the past few days, I am trying to use &amp;quot;app_button_init()&amp;quot; function. It looks very simple to use but it doesn&amp;#39;t want to wok at all. I don&amp;#39;t know where I am doing wrong.
Could you please provide me with a simple example; when I press button for 1sec turn LED ON if I press for 3 sec turn OFF LED. It would save lot of hassle if we got the above example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_uart -&gt;  Button hold event</title><link>https://devzone.nordicsemi.com/thread/61983?ContentTypeID=1</link><pubDate>Wed, 07 Sep 2016 13:58:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e72c400-8160-42c9-81e4-42f7f3b49c34</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I guess you can modify the bsp library to get this to work, but I would rather look into the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v12.0.0/lib_button.html?cp=4_0_0_3_5"&gt;app button library&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;In app_button_init() you can see that you can set the detection delay.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_uart -&gt;  Button hold event</title><link>https://devzone.nordicsemi.com/thread/61982?ContentTypeID=1</link><pubDate>Tue, 06 Sep 2016 14:42:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d827bf15-09f8-4789-a74c-59c49edb3397</guid><dc:creator>butch</dc:creator><description>&lt;p&gt;Sorry, I don&amp;#39;t have code and am not familiar with button events or &amp;#39;bsp&amp;#39;.  Looking at bsp/bsp_btn_ble.c, it seems that the low-level GUI programming might already be done and you just need to change the response to the defined events e.g. BTN_ACTION_SLEEP equivalent to BSP_BUTTON_ACTION_RELEASE.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_uart -&gt;  Button hold event</title><link>https://devzone.nordicsemi.com/thread/61979?ContentTypeID=1</link><pubDate>Tue, 06 Sep 2016 14:18:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3d7d435-0a6b-42bb-8bed-ac43426b2582</guid><dc:creator>Siva</dc:creator><description>&lt;p&gt;Yes exactly.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_uart -&gt;  Button hold event</title><link>https://devzone.nordicsemi.com/thread/61981?ContentTypeID=1</link><pubDate>Tue, 06 Sep 2016 14:16:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8e2bba7f-3f93-4342-b525-342bd30345ed</guid><dc:creator>Siva</dc:creator><description>&lt;p&gt;Hi butch,
Thanks for answering. I know how it works but I don&amp;#39;t know how to implement with this compiler because I am new to arm gcc stuff so it takes lot of time to follow and understand the Syntax. Do you have an example for just button event time record? If you have that could save lot of time for us.
I am working on this from the past 3 days to understand the flow diagram of button evetn on ble_app_uart example and lost in space. I have started with teh wrong example I think.
Siva&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_uart -&gt;  Button hold event</title><link>https://devzone.nordicsemi.com/thread/61978?ContentTypeID=1</link><pubDate>Tue, 06 Sep 2016 14:14:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5fa7eabe-dd86-4323-b251-22b2f81fa0eb</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;So you want to advertise if you do a long push? But something else if you do a short push?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble_app_uart -&gt;  Button hold event</title><link>https://devzone.nordicsemi.com/thread/61980?ContentTypeID=1</link><pubDate>Tue, 06 Sep 2016 13:11:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f41b94f-b2ab-4c3f-8402-2a83f22e3fde</guid><dc:creator>butch</dc:creator><description>&lt;p&gt;That is a very general question about low-level GUI programming, not specific to any chip.  You might read about state machines for button events.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>