<?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>how to advertising while connection?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9758/how-to-advertising-while-connection</link><description>[Dev Env] 
 nRF51 DK 
 IoT SDK 0.8 
 IoT SoftDevice 
 CoAP_Server_example (base code) 
 [Question] 
 why stop advertising while connection? (BLE_GAP_EVT_CONNECTED) 
 and start advertising (BLE_GAP_EVT_DISCONNECTED)
that is ble spec? 
 how to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 16 Oct 2015 15:05:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9758/how-to-advertising-while-connection" /><item><title>RE: how to advertising while connection?</title><link>https://devzone.nordicsemi.com/thread/36155?ContentTypeID=1</link><pubDate>Fri, 16 Oct 2015 15:05:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13092068-121c-4fed-afba-2e62c0342269</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure I understand. To observe you are always in a connection, and you can&amp;#39;t advertise while in a connection.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to advertising while connection?</title><link>https://devzone.nordicsemi.com/thread/36154?ContentTypeID=1</link><pubDate>Fri, 16 Oct 2015 14:52:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f677959-40bf-4d3f-bfbb-713b882c70a6</guid><dc:creator>cucu</dc:creator><description>&lt;p&gt;thanks your answer..
but i have one more question.
in coap observe server example,
to observe  always do active connection..
than advertising are always not active??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to advertising while connection?</title><link>https://devzone.nordicsemi.com/thread/36153?ContentTypeID=1</link><pubDate>Fri, 16 Oct 2015 14:42:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6cc8c3c-8239-4838-983c-38bb07cac826</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Your approach is correct, but the IoT SoftDevice currently doesn&amp;#39;t support broadcasting while in a active connection.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to advertising while connection?</title><link>https://devzone.nordicsemi.com/thread/36151?ContentTypeID=1</link><pubDate>Fri, 16 Oct 2015 08:32:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9393bdb-3683-47b2-821c-c3c054a497e2</guid><dc:creator>cucu</dc:creator><description>&lt;p&gt;my code&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; switch (p_ble_evt-&amp;gt;header.evt_id)
    {
        case BLE_GAP_EVT_CONNECTED:
			m_display_state = LEDS_IPV6_IF_DOWN;
			m_conn_handle = p_ble_evt-&amp;gt;evt.gap_evt.conn_handle; 

			
			err_code = sd_ble_gap_adv_stop();
			APPL_LOG (&amp;quot;[APPL]:[sd_ble_gap_adv_stop][err_code:%d]\n&amp;quot; , err_code);
		
		    // Initialize advertising parameters (used when starting advertising).
    

    m_adv_params.type = BLE_GAP_ADV_TYPE_ADV_NONCONN_IND;
    err_code = sd_ble_gap_adv_start(&amp;amp;m_adv_params); // error code - NRF_ERROR_INVALID_STATE
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to advertising while connection?</title><link>https://devzone.nordicsemi.com/thread/36152?ContentTypeID=1</link><pubDate>Fri, 16 Oct 2015 07:03:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa22c8dd-4496-4dc1-9620-6fa7d2fd0b84</guid><dc:creator>cucu</dc:creator><description>&lt;p&gt;when BLE_GAP_EVT_CONNECTED , call  advertising_start()  function,
return error 8 (NRF_ERROR_INVALID_STATE / Invalid state to perform operation.)
how to advertising while connection??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>