<?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>Example for using S120 as peripheral?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/6623/example-for-using-s120-as-peripheral</link><description>Hello, 
 currently I am using the S110 Softdevice with the ble_template example as peripheral. This works fine. 
 For our final application, we need the central feature with up to 8 connected peripherals. Therfor I want to use the S120 softdevice. At</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 18 May 2015 14:07:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/6623/example-for-using-s120-as-peripheral" /><item><title>RE: Example for using S120 as peripheral?</title><link>https://devzone.nordicsemi.com/thread/23179?ContentTypeID=1</link><pubDate>Mon, 18 May 2015 14:07:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5fd7e4d4-09ad-478b-b3b1-9b945fd11503</guid><dc:creator>Andreas</dc:creator><description>&lt;p&gt;Hello Aryan,&lt;/p&gt;
&lt;p&gt;I tried to compile and use your modified &amp;quot;beacon&amp;quot; example. If I try to compile your project directly, I get a few error messages:
......\main.c(25): error:  #5: cannot open source input file &amp;quot;ble_advdata.h&amp;quot;: No such file or directory
&amp;quot;no source&amp;quot;: Error:  #5: cannot open source input file &amp;quot;..........\bsp\bsp.c&amp;quot;: No such file or directory
&amp;quot;no source&amp;quot;: Error:  #5: cannot open source input file &amp;quot;............\components\ble\common\ble_advdata.c&amp;quot;: No such file or directory
...
For me this looks like some missing/incorrect Path&lt;code&gt;s. But I don&lt;/code&gt;t know how to set the right source Paths.
I also tried to compile it in a comletly new project with the PACKS comming from the SDK. But there I only can select the S110 softdevice. With that configuration there is no gap_enable_params.role field in ble_enable_params. Do you have any additional recommendations?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example for using S120 as peripheral?</title><link>https://devzone.nordicsemi.com/thread/23178?ContentTypeID=1</link><pubDate>Mon, 04 May 2015 10:15:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4a1c0887-ce2f-494b-81e5-65a2d061d34e</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I have modified ble_beacon example for S120 to be a simple connectable advertiser. you can use master control panel to connect to this app.
you can find the zip file attached in my answer to &lt;a href="https://devzone.nordicsemi.com/question/36347/can-i-do-pstorage-store-whit-s120-scan-start/"&gt;this&lt;/a&gt; post.
I have tested this with S120 softdevice that came with SDK8.x&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example for using S120 as peripheral?</title><link>https://devzone.nordicsemi.com/thread/23177?ContentTypeID=1</link><pubDate>Mon, 04 May 2015 09:42:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9aa1f6d-cb91-4556-9892-cc8fea874da4</guid><dc:creator>Andreas</dc:creator><description>&lt;p&gt;Hello Kristine,&lt;/p&gt;
&lt;p&gt;thank you for your answer. I think the switching between central and peripheral is now a little bit more clear for me.&lt;/p&gt;
&lt;p&gt;Is there an example of how to use the S120 as peripheral (sending advertising packages, provide UUID`s)?&lt;/p&gt;
&lt;p&gt;As I mensioned, with the S110 this works very well for me. But with the S120 softdevice, I&lt;code&gt;m not able to establish a connection between my smartphone (central) and the PCA10028 (peripheral). In my opinion, advertising doesn&lt;/code&gt;t start.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;Regards!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Example for using S120 as peripheral?</title><link>https://devzone.nordicsemi.com/thread/23176?ContentTypeID=1</link><pubDate>Thu, 23 Apr 2015 06:35:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1563cbc4-1771-4b92-9589-8a1509f04e91</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;In order to dynamically switch roles when using S120, you have to do the following, see S120 2.0.0 migration notes:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;sd_softdevice_disable();
sd_softdevice_enable(params);
sd_ble_enable(new_role);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Using the SDK, it will be something like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;uint32_t err_code;
err_code = sd_softdevice_disable();
APP_ERROR_CHECK(err_code);

// Initialize the SoftDevice handler module.
SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_XTAL_20_PPM, NULL);

// Enable BLE stack.
ble_enable_params_t ble_enable_params;
memset(&amp;amp;ble_enable_params, 0, sizeof(ble_enable_params));

ble_enable_params.gatts_enable_params.service_changed = IS_SRVC_CHANGED_CHARACT_PRESENT;
ble_enable_params.gap_enable_params.role              = BLE_GAP_ROLE_CENTRAL; // or BLE_GAP_ROLE_PERIPHERAL;

err_code = sd_ble_enable(&amp;amp;ble_enable_params);
APP_ERROR_CHECK(err_code);
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>