<?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>Configure a device conditionally acting as both central device and peripheral device based on state</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56665/configure-a-device-conditionally-acting-as-both-central-device-and-peripheral-device-based-on-state</link><description>Hi Nordic Team, 
 In a BLE project we need to configure same device to conditionally act as central (to scan) device and peripheral(to advertise) device based on the state. Please suggest on the logic to proceed with this. Please also share the changes</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 17 Jan 2020 12:41:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56665/configure-a-device-conditionally-acting-as-both-central-device-and-peripheral-device-based-on-state" /><item><title>RE: Configure a device conditionally acting as both central device and peripheral device based on state</title><link>https://devzone.nordicsemi.com/thread/229602?ContentTypeID=1</link><pubDate>Fri, 17 Jan 2020 12:41:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9bf1563-47df-4e35-87d3-96b165735c82</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;We have a multirole example in our &lt;a href="http://developer.nordicsemi.com/nRF51_SDK/nRF5_SDK_v16.x.x/nRF5_SDK_16.0.0_98a08e2.zip"&gt;SDK16&lt;/a&gt;\examples\ble_central_and_peripheral\experimental&lt;/p&gt;
&lt;p&gt;The &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v16.0.0%2Fexamples_ble_cen_per.html&amp;amp;cp=7_1_4_2_1"&gt;documentation&lt;/a&gt; shows you clearly how to configure your devices to have multilink capabilities (sdk_config.h)&lt;/p&gt;
&lt;p&gt;The logic on which you need to control the roles of your device is something you need to decide and write. Please go through the documentation, implement a template and ask questions regarding the obstacles you face, so that we could assist you in those.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>