<?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>Switching between central and peripheral role.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/44092/switching-between-central-and-peripheral-role</link><description>Hi, 
 I want to make device that can switch between central and peripheral role on NRF52810. 
 I am using S132 and nrf SDK 14.2.0. 
 Can I change the roles with button and some basic stop/start functions? 
 
 I am trying to base on: ...nrf5_SDK_14_2_0</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 06 Mar 2019 08:35:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/44092/switching-between-central-and-peripheral-role" /><item><title>RE: Switching between central and peripheral role.</title><link>https://devzone.nordicsemi.com/thread/174465?ContentTypeID=1</link><pubDate>Wed, 06 Mar 2019 08:35:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:744cf7bb-db37-495c-82cb-254219a7af08</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The &lt;a href="https://www.nordicsemi.com/DocLib/Content/SDK_Doc/nRF5_SDK/v15-3-0/ble_sdk_app_rscs_relay"&gt;BLE Relay Example&lt;/a&gt;&amp;nbsp;is a project I would recommend for understanding how to implement the advertising and central role simultaneously. The advertising duration is decided by the&amp;nbsp; #APP_ADV_DURATION definition.&amp;nbsp; You can start the advertising once the &lt;a href="https://www.nordicsemi.com/DocLib/Content/SDK_Doc/nRF5_SDK/v15-3-0/lib_button"&gt;button&lt;/a&gt;&amp;nbsp;is pressed by calling &lt;a href="https://www.nordicsemi.com/DocLib/Content/SDK_Doc/nRF5_SDK/v15-3-0/group__ble__advertising#gae2beedbcde9e995276a685a329e5b46b"&gt;ble_advertising_start&lt;/a&gt;&amp;nbsp;in the button callback handler.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Switching between central and peripheral role.</title><link>https://devzone.nordicsemi.com/thread/174282?ContentTypeID=1</link><pubDate>Tue, 05 Mar 2019 13:51:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66b4aefb-a154-4938-805a-1ecf607c2d0e</guid><dc:creator>Artur</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We will probably base our master project on nRF52832 and Eclipse IDE.&lt;/p&gt;
&lt;p&gt;Which project with multirole is best for me to base on?&lt;/p&gt;
&lt;p&gt;How would You handle enabling/disabling roles? I need to advertise only some time after button is pressed.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Antek&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Switching between central and peripheral role.</title><link>https://devzone.nordicsemi.com/thread/172772?ContentTypeID=1</link><pubDate>Mon, 25 Feb 2019 13:24:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ceae1a9-89a5-4a31-a9a0-ec4c51514302</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;uECC is a an external library that can be downloaded from Github &lt;a href="https://github.com/kmackay/micro-ecc"&gt;here&lt;/a&gt;. &lt;a href="https://devzone.nordicsemi.com/b/blog/posts/getting-started-with-nordics-secure-dfu-bootloader"&gt;The DFU guide explains how the library can be added to the SDK.&amp;nbsp;&lt;/a&gt;&amp;nbsp;Be aware that the nRF52810 might not have enough memory to run your application, I would recommend using nRF52832 or nRF52840 if it&amp;#39;s the case.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>