<?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>Check BLE connection status</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35904/check-ble-connection-status</link><description>Hello! 
 We&amp;#39;re using SDK 12.3 on our application, and we&amp;#39;re aware that the SDK is targeted to be event driven, meaning that our code should be the one keeping track of the connection status by using the propagate events. 
 
 However, the problem we&amp;#39;re</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 29 Jun 2018 12:09:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35904/check-ble-connection-status" /><item><title>RE: Check BLE connection status</title><link>https://devzone.nordicsemi.com/thread/138273?ContentTypeID=1</link><pubDate>Fri, 29 Jun 2018 12:09:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e96dac3c-fb7f-470b-b870-d73cf64942bf</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Unfortunately, there are no API you can use to get the connection status directly. But you could e.g. use&amp;nbsp;&lt;a title="sd_ble_gap_adv_start" href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.0.0/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html?cp=2_3_1_1_0_2_1_2_3#ga74c21287bd6cbcd5822bc73792f678d8"&gt;sd_ble_gap_adv_start&lt;/a&gt;() and check the return code. You will get&amp;nbsp;NRF_ERROR_INVALID_STATE if you are already advertising or NRF_ERROR_CONN_COUNT&amp;nbsp;if you are in a connection (and cannot start another advertiser).&amp;nbsp;Not very elegant though, and it probably won&amp;#39;t work in multilink applications.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>