<?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>Button Event Handler</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17616/button-event-handler</link><description>Hi, 
 I&amp;#39;m using the button event handler code on the SDK. It fires once when pressed down, and once again when i release the button. How do i make it only fire once per push button? 
 Here is a code snippet: 
 static void button_event_handler1(uint8_t</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 09 Nov 2016 14:47:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17616/button-event-handler" /><item><title>RE: Button Event Handler</title><link>https://devzone.nordicsemi.com/thread/67735?ContentTypeID=1</link><pubDate>Wed, 09 Nov 2016 14:47:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:653f6925-7b2b-4b22-99e3-98cd2b6b4c53</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Isn&amp;#39;t button action APP_BUTTON_PUSH (1) when you push and APP_BUTTON_RELEASE (0) when you release?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Button Event Handler</title><link>https://devzone.nordicsemi.com/thread/67734?ContentTypeID=1</link><pubDate>Wed, 09 Nov 2016 05:06:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4051ce56-8ca4-47e7-acce-a04937c5e3c7</guid><dc:creator>leehong</dc:creator><description>&lt;p&gt;view the above snippet. it sends my string via uart-ble once when i press on the button, and once more again when i release the push button on the sdk&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Button Event Handler</title><link>https://devzone.nordicsemi.com/thread/67733?ContentTypeID=1</link><pubDate>Wed, 09 Nov 2016 02:31:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3389b23b-1c42-41e2-8b28-613b6cddf6c4</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;Which code do you mean. The code in bsp.c ?
Which example are you using ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>