<?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>Service client and beaconing</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/19487/service-client-and-beaconing</link><description>I must create an application for nrf5 dk with s132 v3.0.0 sd. In this application a device must implement heart rate service client, while continously trasmitting a reference advertising beacon packet. Is it possible ?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Feb 2017 10:24:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/19487/service-client-and-beaconing" /><item><title>RE: Service client and beaconing</title><link>https://devzone.nordicsemi.com/thread/75698?ContentTypeID=1</link><pubDate>Mon, 06 Feb 2017 10:24:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a01f179-88c2-41be-b2d6-f5012e4db558</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The s132 v3.0.0 softdevice support non-connectable advertising (broadcasting) while in a connection. You could easily change the HRS example to continue advetising when a connection is established.&lt;/p&gt;
&lt;p&gt;You need to start advertising on the &lt;code&gt;BLE_GAP_EVT_CONNECTED&lt;/code&gt; event in &lt;em&gt;on_ble_evt()&lt;/em&gt; handler, with the advertising type &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v3.0.0/group___b_l_e___g_a_p___a_d_v___t_y_p_e_s.html#ga8c86ca45ebffc3938fd97f9556daa49c"&gt;BLE_GAP_ADV_TYPE_ADV_NONCONN_IND&lt;/a&gt;. Remeber to set the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s120.api.v2.1.0/group___b_l_e___g_a_p___a_d_v___i_n_t_e_r_v_a_l_s.html#gaf0853bcb2a170efd2bb58e3a6b3c8ca5"&gt;advertising interval to minimum 100 ms&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You should also switch back to connectable advertising when the central disconnects, i.e. on a &lt;code&gt;BLE_GAP_EVT_DISCONNECTED&lt;/code&gt; event.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>