<?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>bsp button no release event after connect to the nRFConnect.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/84772/bsp-button-no-release-event-after-connect-to-the-nrfconnect</link><description>Hi, 
 I want to use the bsp button to our project, so I tested on the example &amp;quot;ble_app_blinky&amp;quot;, 
 I modified the app button to bsp button, add two custom events to the bsp_event_t enum in the bsp.h, and then test, 
 Before connect to the android App nRF</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 16 Feb 2022 09:17:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/84772/bsp-button-no-release-event-after-connect-to-the-nrfconnect" /><item><title>RE: bsp button no release event after connect to the nRFConnect.</title><link>https://devzone.nordicsemi.com/thread/353290?ContentTypeID=1</link><pubDate>Wed, 16 Feb 2022 09:17:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b0bfc24-4ce4-4edd-b49e-e34537d198de</guid><dc:creator>Susan_cfx</dc:creator><description>&lt;p&gt;Hi Jorgen，&lt;/p&gt;
&lt;p&gt;I see, thank you for your detailed explanation.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best wishes,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Susan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bsp button no release event after connect to the nRFConnect.</title><link>https://devzone.nordicsemi.com/thread/353287?ContentTypeID=1</link><pubDate>Wed, 16 Feb 2022 09:13:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3713843-8d61-4a15-8ac6-ea42cc5cddd6</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;bsp_btn_ble is using the same button ID that you use in your application (0). The button actions are reconfigured in&amp;nbsp;connection_buttons_configure(), which is called on a CONNECTED event.&lt;/p&gt;
&lt;p&gt;You should not use the same button in your application and bsp_btn_ble at the same time, as this may break the flow in the library.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bsp button no release event after connect to the nRFConnect.</title><link>https://devzone.nordicsemi.com/thread/353227?ContentTypeID=1</link><pubDate>Wed, 16 Feb 2022 04:10:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:128f51f5-1570-4610-957c-13b6659d9547</guid><dc:creator>Susan_cfx</dc:creator><description>&lt;p&gt;Hi Jorgen,&lt;/p&gt;
&lt;div class="trans-left"&gt;
&lt;div class="trans-input-wrap"&gt;
&lt;div class="input-wrap" dir="ltr"&gt;
&lt;div class="input-operate"&gt;&lt;a class="operate-btn op-sound data-hover-tip" href="https://fanyi.baidu.com/translate?aldtype=16047&amp;amp;query=I+want+to+use+the+bsp+button+to+our+project%2C+so+I+tested+on+the+example+%22ble_app_blinky%22%2C%0D%0A%0D%0AI+modified+the+app+button+to+bsp+button%2C++add+two+custom+events+to+the+bsp_event_t+enum+in+the+bsp.h%2C+and+then+test%2C+%0D%0A%0D%0ABefore+connect+to+the+android+app+nRF+Connect%2C+the+bsp+button+can+work+ok%2C+BSP_BUTTON_ACTION_PUSH+%2C+BSP_BUTTON_ACTION_RELEASE%2C+BSP_BUTTON_ACTION_LONG_PUSH+are+all+work+ok.+%0D%0A%0D%0AAfter+connect+to+the+nRF+Connect%2C+there+are+problem%2C++only+BSP_BUTTON_ACTION_PUSH+can+work%2C+BSP_BUTTON_ACTION_RELEASE+an+not+work.%0D%0A%0D%0AAttached+the+code%2C+please+help+me+check.&amp;amp;keyfrom=baidu&amp;amp;smartresult=dict&amp;amp;lang=auto2zh###"&gt;&lt;span class="icon-sound"&gt;&lt;/span&gt;&lt;/a&gt;
&lt;div class="op-favor-container"&gt;Thanks for your quick reply, I didn&amp;#39;t do anything after connecting, only click the CONNECT button in the nRF Connect.&lt;/div&gt;
&lt;div class="op-favor-container"&gt;I have tried the code with the unmodified ble_app_blinky example, app button works ok, it has release event after connection.&amp;nbsp;&lt;/div&gt;
&lt;div class="op-favor-container"&gt;&lt;/div&gt;
&lt;div class="op-favor-container"&gt;I found&amp;nbsp;if I add bsp_btn_ble.c file to the project, it will cause this problem. But I didn&amp;#39;t include this file to the main.c.&lt;strong&gt; if I removed bsp_btn_ble.c from this project, it has release event after connection.&amp;nbsp; Remove bsp_btn_ble.c from my projext can solve this problem, but I don&amp;#39;t know reason, could you please tell me?&amp;nbsp;&lt;/strong&gt;&lt;/div&gt;
&lt;div class="op-favor-container"&gt;&lt;/div&gt;
&lt;div class="op-favor-container"&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/add-a-file.png" /&gt;&lt;/div&gt;
&lt;div class="op-favor-container"&gt;&lt;/div&gt;
&lt;div class="op-favor-container"&gt;&lt;/div&gt;
&lt;div class="op-favor-container"&gt;&lt;/div&gt;
&lt;div class="op-favor-container"&gt;Best wishes,&lt;/div&gt;
&lt;div class="op-favor-container"&gt;Susan&lt;/div&gt;
&lt;div class="op-favor-container"&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: bsp button no release event after connect to the nRFConnect.</title><link>https://devzone.nordicsemi.com/thread/353145?ContentTypeID=1</link><pubDate>Tue, 15 Feb 2022 14:36:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50c78f65-09f1-4f35-8b53-3dc4b719a62a</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I tested you code, but I see all events on the log, even after connecting with nRF Connect on Android:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;info&amp;gt; app: button short released
&amp;lt;info&amp;gt; app: button released state: 0
&amp;lt;info&amp;gt; app: button short pressed
&amp;lt;info&amp;gt; app: button pressed state: 1
&amp;lt;info&amp;gt; app: button long pressed 
&amp;lt;info&amp;gt; app: button short released
&amp;lt;info&amp;gt; app: button released state: 0
&amp;lt;info&amp;gt; app: Connected
&amp;lt;info&amp;gt; app: button short pressed
&amp;lt;info&amp;gt; app: button pressed state: 1
&amp;lt;info&amp;gt; app: button short released
&amp;lt;info&amp;gt; app: button released state: 0
&amp;lt;info&amp;gt; app: button short pressed
&amp;lt;info&amp;gt; app: button pressed state: 1
&amp;lt;info&amp;gt; app: button long pressed 
&amp;lt;info&amp;gt; app: button short released
&amp;lt;info&amp;gt; app: button released state: 0&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Did you do something else after connecting?&lt;/p&gt;
&lt;p&gt;Have you tried the code with the unmodified ble_app_blinky example?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>