<?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>Problem!!! Connection handle invalid in nRF51822.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46000/problem-connection-handle-invalid-in-nrf51822</link><description>Hello All, 
 
 I am working on nRF51822. I used custom board in my project and this is customer requirement to use nRF51822. For reference nRF51 SDK 8.1.0 used and for programing IAR embedded workbench software version 7.40.3.8938 use in windows 7. 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 11 Apr 2019 09:12:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46000/problem-connection-handle-invalid-in-nrf51822" /><item><title>RE: Problem!!! Connection handle invalid in nRF51822.</title><link>https://devzone.nordicsemi.com/thread/181506?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2019 09:12:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0eac304b-39c7-4398-9c48-312e376b6f58</guid><dc:creator>Fred</dc:creator><description>&lt;p&gt;I guess you want to add:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;p_bas-&amp;gt;conn_handle = p_ble_evt-&amp;gt;evt.gap_evt.conn_handle;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;As far as I see, the&amp;nbsp;bsp_indication_set() does not do much more than setting the LEDs in the example.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem!!! Connection handle invalid in nRF51822.</title><link>https://devzone.nordicsemi.com/thread/181492?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2019 08:42:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db718412-f7db-43b0-8ec9-cc3ab5148d9b</guid><dc:creator>Urvisha Andani</dc:creator><description>&lt;p&gt;I am upload ble_app_hrs code in my board it work perfectly.and as you says add in callback function but in callback function is as like shown below same as ble_app_hrs example,&lt;/p&gt;
&lt;p&gt;static void on_ble_evt(ble_evt_t * p_ble_evt)&lt;br /&gt;{&lt;br /&gt; uint32_t err_code;&lt;/p&gt;
&lt;p&gt;switch (p_ble_evt-&amp;gt;header.evt_id)&lt;br /&gt; {&lt;br /&gt; case BLE_GAP_EVT_CONNECTED:&lt;br /&gt; err_code = bsp_indication_set(BSP_INDICATE_CONNECTED);&lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;br /&gt; m_conn_handle = p_ble_evt-&amp;gt;evt.gap_evt.conn_handle;&lt;/p&gt;
&lt;p&gt;break;&lt;/p&gt;
&lt;p&gt;.&lt;br /&gt;.&lt;br /&gt;}&lt;br /&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problem!!! Connection handle invalid in nRF51822.</title><link>https://devzone.nordicsemi.com/thread/181449?ContentTypeID=1</link><pubDate>Thu, 11 Apr 2019 05:33:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc2adea2-70a5-40ee-8d50-323d69b2af8d</guid><dc:creator>Fred</dc:creator><description>&lt;p&gt;If I understand you correctly, I&amp;#39;m guessing that you assume that the p_bas-&amp;gt;conn_handle is set automatically? That is not the case. You need to set it at the&amp;nbsp;BLE_GAP_EVT_CONNECTED event handled in the BLE event callback function.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>