<?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 UART connection status</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/48031/ble-uart-connection-status</link><description>Hello Nordic Pro&amp;#39;s, 
 We are developing a product based on the BLE UART peripheral. We communicate heavily via NUS. There are extended processes that continually send status messages over BLE via a central based device. These processes need to continue</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 Jun 2019 15:23:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/48031/ble-uart-connection-status" /><item><title>RE: BLE UART connection status</title><link>https://devzone.nordicsemi.com/thread/192141?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2019 15:23:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f19a0b16-faf2-49e6-9940-a5f30f4345eb</guid><dc:creator>awneil</dc:creator><description>[quote userid="6462" url="~/f/nordic-q-a/48031/ble-uart-connection-status/192139"]Sometimes (too often?), Nordic&amp;#39;s idea of &amp;quot;descriptive&amp;quot; does seem rather lacking[/quote]
&lt;p&gt;In this case, the description of&amp;nbsp;BLE_ADV_EVT_IDLE is just plain &lt;em&gt;&lt;strong&gt;wrong&lt;/strong&gt;&lt;/em&gt;:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;BLE_ADV_EVT_IDLE,                /**&amp;lt; Idle; no connectable advertising is ongoing.*/&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;That&amp;#39;s not a description of the &lt;em&gt;&lt;strong&gt;Event&lt;/strong&gt; &lt;/em&gt;- that&amp;#39;s a description of the &lt;em&gt;&lt;strong&gt;State&lt;/strong&gt; &lt;/em&gt;which is entered after the event has occurred!&lt;/p&gt;
&lt;p&gt;EDIT&lt;/p&gt;
&lt;p&gt;The fact that the &amp;quot;Indefinite&amp;quot; option is not referenced from any of the places where you might use it has already been noted:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/46515/fast-advertising-slow-advertising-and-indefinite-advertising/183141#183141"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/46515/fast-advertising-slow-advertising-and-indefinite-advertising/183141#183141&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1560266977121v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;maybe they&amp;#39;ll find someone soon ...&lt;/p&gt;
&lt;p&gt;;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE UART connection status</title><link>https://devzone.nordicsemi.com/thread/192139?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2019 15:19:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffb0b767-4cd5-4a51-aab1-23cfb495fd26</guid><dc:creator>awneil</dc:creator><description>[quote userid="74971" url="~/f/nordic-q-a/48031/ble-uart-connection-status/192134"]Where is this stuff documented[/quote]
&lt;p&gt;Here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/lib_ble_advertising.html"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/lib_ble_advertising.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You can also use your IDE&amp;#39;s &amp;#39;Go To Definition&amp;#39; feature to find the definition of&amp;nbsp;&lt;span&gt;BLE_ADV_EVT_IDLE - where there &lt;em&gt;should&lt;/em&gt; be a descriptive comment:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/**@brief   Advertising events.
 *
 * @details These events are propagated to the main application if a handler was provided during
 *          initialization of the Advertising Module. Events for modes that are not used can be
 *          ignored. Similarly, BLE_ADV_EVT_WHITELIST_REQUEST and BLE_ADV_EVT_PEER_ADDR_REQUEST
 *          can be ignored if whitelist and direct advertising is not used.
 */
typedef enum
{
    BLE_ADV_EVT_IDLE,                /**&amp;lt; Idle; no connectable advertising is ongoing.*/
    BLE_ADV_EVT_DIRECTED_HIGH_DUTY,  /**&amp;lt; Direct advertising mode has started. */
    BLE_ADV_EVT_DIRECTED,            /**&amp;lt; Directed advertising (low duty cycle) has started. */
    BLE_ADV_EVT_FAST,                /**&amp;lt; Fast advertising mode has started. */
    BLE_ADV_EVT_SLOW,                /**&amp;lt; Slow advertising mode has started. */
    BLE_ADV_EVT_FAST_WHITELIST,      /**&amp;lt; Fast advertising mode using the whitelist has started. */
    BLE_ADV_EVT_SLOW_WHITELIST,      /**&amp;lt; Slow advertising mode using the whitelist has started. */
    BLE_ADV_EVT_WHITELIST_REQUEST,   /**&amp;lt; Request a whitelist from the main application. For whitelist advertising to work, the whitelist must be set when this event occurs. */
    BLE_ADV_EVT_PEER_ADDR_REQUEST    /**&amp;lt; Request a peer address from the main application. For directed advertising to work, the peer address must be set when this event occurs. */
} ble_adv_evt_t;&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Sometimes (too often?), Nordic&amp;#39;s idea of &amp;quot;descriptive&amp;quot; does seem rather lacking&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f61e.svg" title="Disappointed"&gt;&amp;#x1f61e;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Also, where to find the documentation is not always obvious: it&amp;#39;ll be in the InfoCenter &lt;em&gt;&lt;strong&gt;somewhere&lt;/strong&gt;&lt;/em&gt; - but finding it is not always so easy ...&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE UART connection status</title><link>https://devzone.nordicsemi.com/thread/192134?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2019 15:08:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57857cc4-1e76-42c7-b1d8-09b7f60237cb</guid><dc:creator>Robin</dc:creator><description>&lt;p&gt;Mr. Neil,&lt;/p&gt;
&lt;p&gt;Should I presume that BLE_ADV_EVT_IDLE is the flag for the timeout?&amp;nbsp; Where is this stuff documented?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE UART connection status</title><link>https://devzone.nordicsemi.com/thread/191972?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2019 09:01:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d817bfc9-d9b3-4019-8ca8-56c36ba4a88d</guid><dc:creator>awneil</dc:creator><description>[quote userid="74971" url="~/f/nordic-q-a/48031/ble-uart-connection-status/191903"]the advertising module puts the processor to sleep after a 3 minute timeout,[/quote]
&lt;p&gt;It&amp;#39;s not actually the Advertising Module itself which does it;&amp;nbsp; it&amp;#39;s &amp;quot;your&amp;quot; app - when it receives the Timeout event &lt;em&gt;from &lt;/em&gt;&lt;span&gt;the Advertising Module.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Two options:&lt;/span&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span&gt;Set the advertising to never time out - use &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v6.1.1%2Fgroup___b_l_e___g_a_p___a_d_v___t_i_m_e_o_u_t___v_a_l_u_e_s.html" rel="noopener noreferrer" target="_blank"&gt;BLE_GAP_ADV_TIMEOUT_GENERAL_UNLIMITED&lt;/a&gt;;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;Just re-start advertising on each timeout&lt;br /&gt;There&amp;#39;l be an &amp;quot;advertising start&amp;quot; function called somewhere early on - just call that again.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="74971" url="~/f/nordic-q-a/48031/ble-uart-connection-status/191903"]I have commented out the line that puts the cpu to sleep, and the code keeps running, but I cannot reconnect after the timeout.&amp;nbsp;&amp;nbsp;[/quote]
&lt;p&gt;&lt;span&gt;Indeed - with no advertising, your device cannot be seen and, therefore, you can&amp;#39;t connect to it.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE UART connection status</title><link>https://devzone.nordicsemi.com/thread/191903?ContentTypeID=1</link><pubDate>Tue, 11 Jun 2019 03:52:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ad3f4c7-2210-4be7-b28b-1b70f3a4aed5</guid><dc:creator>Robin</dc:creator><description>&lt;p&gt;Hello again Simon,&lt;/p&gt;
&lt;p&gt;Well I believe I have tracked this down to the fact that the advertising module puts the processor to sleep after a 3 minute timeout, presumably APP_ADV_TIMEOUT_IN_SECONDS&amp;nbsp; &amp;nbsp;(180).&amp;nbsp; I can&amp;#39;t see through the advertising module documentation well enough to understand how to properly and selectively, based on the state of our application, ignore the BLE_ADV_EVT_IDLE flag.&amp;nbsp; I have commented out the line that puts the cpu to sleep, and the code keeps running, but I cannot reconnect after the timeout.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static void on_adv_evt(ble_adv_evt_t ble_adv_evt)
{
    uint32_t err_code;

    switch (ble_adv_evt)
    {
        case BLE_ADV_EVT_FAST:
            err_code = bsp_indication_set(BSP_INDICATE_ADVERTISING);
            APP_ERROR_CHECK(err_code);
            break;
        case BLE_ADV_EVT_IDLE:
 //           sleep_mode_enter();
            break;
        default:
            break;
    }
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Any help is greatly appreciated,&lt;/p&gt;
&lt;p&gt;Robin@TL&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE UART connection status</title><link>https://devzone.nordicsemi.com/thread/191895?ContentTypeID=1</link><pubDate>Mon, 10 Jun 2019 22:50:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74e9a38a-ccf7-43cd-82b5-f26a34c984cf</guid><dc:creator>Robin</dc:creator><description>&lt;p&gt;Another note that might help, is that our board does not have a hardware uart peripheral.&amp;nbsp; All i/o is via the ble uart interface.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE UART connection status</title><link>https://devzone.nordicsemi.com/thread/191887?ContentTypeID=1</link><pubDate>Mon, 10 Jun 2019 19:24:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3cdb16a-a79d-43d3-bb03-5e1bbb7fdb75</guid><dc:creator>Robin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I have no need to save the data for later transmission so I bypass the&amp;nbsp;ble_nus_string_send() if disconnected.&lt;/p&gt;
&lt;p&gt;Which specific example are you referring to, please?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Robin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE UART connection status</title><link>https://devzone.nordicsemi.com/thread/191885?ContentTypeID=1</link><pubDate>Mon, 10 Jun 2019 19:09:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f021cf4d-a77b-4656-b413-e3da82242208</guid><dc:creator>awneil</dc:creator><description>[quote userid="74971" url="~/f/nordic-q-a/48031/ble-uart-connection-status/191884"]I think my code sends nothing if not connected[/quote]
&lt;p&gt;But, in that case, you are saving up the data to be sent when you are next connected - yes?&lt;/p&gt;
&lt;p&gt;So, the longer you are disconnected, the more data is going to be waiting to be sent when it reconnects.&lt;/p&gt;
&lt;p&gt;The logic of your loop is not correct: you keep calling&amp;nbsp;ble_nus_string_send() within the loop &lt;em&gt;without&lt;/em&gt; checking its return while the call in the control clause returns other than success!&lt;/p&gt;
&lt;p&gt;Take a look at how Nordic do it in the example ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE UART connection status</title><link>https://devzone.nordicsemi.com/thread/191884?ContentTypeID=1</link><pubDate>Mon, 10 Jun 2019 18:59:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5770a934-59ba-4af7-bd17-c97c6113e033</guid><dc:creator>Robin</dc:creator><description>&lt;p&gt;Hello awneil,&lt;/p&gt;
&lt;p&gt;I think my code sends nothing if not connected.&amp;nbsp; There is a if (connected) qualifier in the loop.&amp;nbsp; Since the last post I did add a while loop looking for a NRF_SUCCESS, but it did not help.&amp;nbsp; Am I missing something else here?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static void send_str(const char * str)
{
  if (connected)  // This should preclude any sending if disconnected..
  {
    uint8_t i = 0;
    while ((str[i] != 0x0A) &amp;amp;&amp;amp; (str[i] != 0x00) &amp;amp;&amp;amp; (i &amp;lt; BLE_NUS_MAX_DATA_LEN)) 
    {
      i+=1;
    }
    if (str[i] == 0x00)
      i-=1;   
    // wait until errors clear...
    while (ble_nus_string_send(&amp;amp;m_nus, (uint8_t*)str, i+1) != NRF_SUCCESS)
      ble_nus_string_send(&amp;amp;m_nus, (uint8_t*)str, i+1);
  }
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE UART connection status</title><link>https://devzone.nordicsemi.com/thread/191879?ContentTypeID=1</link><pubDate>Mon, 10 Jun 2019 18:26:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab88bfa7-c1e2-445b-a6ef-eb22416f22ef</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;If you&amp;#39;ve been disconnected for a &amp;quot;long&amp;quot; time, there will be a &amp;quot;lot&amp;quot; of waiting data to be sent&lt;/p&gt;
&lt;p&gt;Your posted code doesn&amp;#39;t check the return code from&amp;nbsp;ble_nus_string_send() - it just keeps flinging data at it.&lt;/p&gt;
&lt;p&gt;At some point, it is going to get overwhelmed - that point is, presumably, your &amp;quot;couple of minutes&amp;quot;.&lt;/p&gt;
&lt;p&gt;The error code&amp;nbsp;NRF_ERROR_RESOURCES indicates that it is &amp;quot;full&amp;quot; - so you need to hold-off sending for a while...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE UART connection status</title><link>https://devzone.nordicsemi.com/thread/191878?ContentTypeID=1</link><pubDate>Mon, 10 Jun 2019 18:02:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0da52419-de9c-418e-a94b-ca24cef07158</guid><dc:creator>Robin</dc:creator><description>&lt;p&gt;Hello again Simon,&lt;/p&gt;
&lt;p&gt;I was premature in my assessment below that I had this working.&amp;nbsp; It only holds up for a couple minutes after the central disconnects.&amp;nbsp; If continually connect/disconnect, all seems fine, but if it stays disconnected for any length of time the peripheral crashes and needs to be powered down to restart correctly.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To attempt to clarify what we are attempting, please consider the following rewording of the problem:&lt;/p&gt;
&lt;p&gt;We are using a Nordic USB dongle as a ble_uart_central to communicate commands and responses over bluetooth between our board (which is based on the ble_uart_peripheral) and a host computer/terminal emulator.&amp;nbsp; Our board has code for performing long time duration (up to 24 hours) stabilization testing.&amp;nbsp; During this test, status updates are sent back to the host every 10 seconds or so.&amp;nbsp; The test must remain in effect if the central disconnect for any reason, with the intention of reconnecting later to resume and interpret the messaging.&amp;nbsp; So, the code snippet below shows how we understood this could be done, from our reading of similar posts.&amp;nbsp; However, as mentioned, it only holds up for a couple minutes of disconnect time and then the board crashes.&amp;nbsp; So long as we stay connected, the code runs to completion.&lt;/p&gt;
&lt;p&gt;Anything you can offer on how this might be resolved is greatly appreciated.&lt;/p&gt;
&lt;p&gt;Thank you in advance,&lt;/p&gt;
&lt;p&gt;Robin@TL&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE UART connection status</title><link>https://devzone.nordicsemi.com/thread/190355?ContentTypeID=1</link><pubDate>Sat, 01 Jun 2019 05:56:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e30cfa55-4d35-4f13-b529-68906f08d843</guid><dc:creator>Robin</dc:creator><description>&lt;p&gt;Here are snippets of what I did, in case anyone is interested.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;// Inside Main
//...

static bool connected = false;

//...

// Inside send_string()...

static void send_str(const char * str)
{
  if (connected)
  {
    uint8_t i = 0;
    while ((str[i] != 0x0A) &amp;amp;&amp;amp; (str[i] != 0x00) &amp;amp;&amp;amp; (i &amp;lt; BLE_NUS_MAX_DATA_LEN)) 
    {
      i+=1;
    }
    if (str[i] == 0x00)
      i-=1;
    ble_nus_string_send(&amp;amp;m_nus, (uint8_t*)str, i+1);
  }
}

// Inside on_ble_evt...

    case BLE_GAP_EVT_CONNECTED:
      err_code = bsp_indication_set(BSP_INDICATE_CONNECTED);
      APP_ERROR_CHECK(err_code);
      m_conn_handle = p_ble_evt-&amp;gt;evt.gap_evt.conn_handle;
      connected = true;
    break;
    case BLE_GAP_EVT_DISCONNECTED:
      err_code = bsp_indication_set(BSP_INDICATE_IDLE);
      APP_ERROR_CHECK(err_code);
      m_conn_handle = BLE_CONN_HANDLE_INVALID;
      connected = false;
//...&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE UART connection status</title><link>https://devzone.nordicsemi.com/thread/190354?ContentTypeID=1</link><pubDate>Sat, 01 Jun 2019 05:49:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b448794-b48a-4138-bb8a-31da3931e6d6</guid><dc:creator>Robin</dc:creator><description>&lt;p&gt;Hello all,&lt;/p&gt;
&lt;p&gt;I have this finally figured out.&amp;nbsp; Thanks to everyone for their help ans support.&lt;/p&gt;
&lt;p&gt;Robin@TL&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE UART connection status</title><link>https://devzone.nordicsemi.com/thread/190313?ContentTypeID=1</link><pubDate>Fri, 31 May 2019 14:21:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6c79f8c-06f7-42d2-81f4-aeab781b270b</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;You can look at the &lt;strong&gt;Connection Handle&lt;/strong&gt;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;if its value is&amp;nbsp;BLE_CONN_HANDLE_INVALID, then you are &lt;em&gt;not&lt;/em&gt; connected;&lt;/li&gt;
&lt;li&gt;otherwise, you are.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;It changes state on the&amp;nbsp;BLE_GAP_EVT_DISCONNECTED and&amp;nbsp;BLE_GAP_EVT_CONNECTED events.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE UART connection status</title><link>https://devzone.nordicsemi.com/thread/190311?ContentTypeID=1</link><pubDate>Fri, 31 May 2019 14:13:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dadaa259-6d58-414d-9302-32f1018390f8</guid><dc:creator>Robin</dc:creator><description>&lt;p&gt;Hello Simon,&lt;/p&gt;
&lt;p&gt;The LED is not an option.&amp;nbsp; This need to happen without operator intervention,&amp;nbsp; so yes, a return variable would work, but the process needs to be &amp;quot;synchronized&amp;quot; with the nus send string function.&amp;nbsp; And thank you for noting this case is not public.&amp;nbsp; I thought I had checked that option.&lt;/p&gt;
&lt;p&gt;Robin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE UART connection status</title><link>https://devzone.nordicsemi.com/thread/190310?ContentTypeID=1</link><pubDate>Fri, 31 May 2019 10:10:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd42e096-80c7-49cb-a53f-99149bc7b16e</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Robin&lt;/p&gt;
&lt;p&gt;I&amp;#39;m having some trouble understanding what exactly you want.&amp;nbsp; Do you mean like a return value when the peripheral connects/disconnects to a central? Because this can be seen if connecting it to a terminal or something similar. You should also be able to implement an LED to turn on when connected and off when disconnected if that is what you are after.&lt;/p&gt;
&lt;p&gt;If I have misunderstood what you want to achieve, please try to explain it again.&lt;/p&gt;
&lt;p&gt;NOTE: Creating a public case would let the community come with suggestions as well, which increases the chance of someone providing I.E. a working example of what you want. We can also set this case to public mode if you&amp;#39;d like. Just give me the word.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>