<?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>Direct Advertising with Arduino IDE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27317/direct-advertising-with-arduino-ide</link><description>Hello, 
 i would like to connect two Redbearlabs Nano v2 just with eachother. The central one connects just to the peripheral, but the peripheral is still open for every device. So i want to use direct advertising and give the peripheral the peer adress</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 05 Dec 2017 11:33:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27317/direct-advertising-with-arduino-ide" /><item><title>RE: Direct Advertising with Arduino IDE</title><link>https://devzone.nordicsemi.com/thread/107919?ContentTypeID=1</link><pubDate>Tue, 05 Dec 2017 11:33:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c37f531-edd6-42d7-bf1e-83390d9bd469</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;I am happy to help :)&lt;/p&gt;
&lt;p&gt;Feel free to accept my answer if you are satisfied with it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Direct Advertising with Arduino IDE</title><link>https://devzone.nordicsemi.com/thread/107920?ContentTypeID=1</link><pubDate>Tue, 05 Dec 2017 10:49:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e7ef3b5-a9ba-4b65-a62c-606898cfac15</guid><dc:creator>engelter</dc:creator><description>&lt;p&gt;okay, thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Direct Advertising with Arduino IDE</title><link>https://devzone.nordicsemi.com/thread/107918?ContentTypeID=1</link><pubDate>Mon, 04 Dec 2017 13:08:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc006e14-5987-47c1-a28f-162c5a5e73a7</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Looking at the &lt;a href="https://github.com/redbear/nRF5x/blob/master/nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5/source/nRF5xGap.cpp"&gt;libraries&lt;/a&gt; it appears that directed advertising is not supported:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;/**************************************************************************/
ble_error_t nRF5xGap::startAdvertising(const GapAdvertisingParams &amp;amp;params)
{
    /* Make sure we support the advertising type */
    if (params.getAdvertisingType() == GapAdvertisingParams::ADV_CONNECTABLE_DIRECTED) {
        /* ToDo: This requires a propery security implementation, etc. */
        return BLE_ERROR_NOT_IMPLEMENTED;
    }
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;As an alternative you can use the white list feature, and only add the address of the device you want to connect to in the white list.&lt;/p&gt;
&lt;p&gt;For questions regarding the ReadBearLab libraries you can also use their own forum:&lt;br /&gt;
&lt;a href="http://discuss.redbear.cc/"&gt;http://discuss.redbear.cc/ &lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;
Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Direct Advertising with Arduino IDE</title><link>https://devzone.nordicsemi.com/thread/107917?ContentTypeID=1</link><pubDate>Fri, 01 Dec 2017 09:39:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8063d8f8-ac69-41fa-a547-b5296d43adf7</guid><dc:creator>engelter</dc:creator><description>&lt;p&gt;Hi, i&amp;#39;m using this board manager &lt;a href="https://github.com/redbear/nRF5x/blob/master/nRF52832/docs/Arduino_Board_Package_Installation_Guide.md"&gt;link text&lt;/a&gt; and i am working with these example codes &lt;a href="https://github.com/redbear/nRF5x/tree/master/nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/libraries/BLE_Examples"&gt;link text&lt;/a&gt; There is just defined, that it is possible to use direct advertising, but not how you can set the peer adress. I also searched for some working code in there &lt;a href="https://github.com/redbear/nRF5x/tree/master/nRF52832/arduino/arduino-1.8.0/hardware/RBL/RBL_nRF52832/cores/RBL_nRF52832/FEATURE_BLE/ble"&gt;link text&lt;/a&gt; but i found no solution. Thanks for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Direct Advertising with Arduino IDE</title><link>https://devzone.nordicsemi.com/thread/107916?ContentTypeID=1</link><pubDate>Mon, 20 Nov 2017 08:09:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c52f3f2-e303-4311-9731-e9357024124b</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Do you have a link to the BLE libraries you are using?&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t seem to find that function in the Sandeed BLE library.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>