<?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>sd_ble_gap_adv_set_configure() is returning error code 7 when I use BLE_GAP_ADV_TYPE_EXTENDED_NONCONNECTABLE_SCANNABLE_UNDIRECTED.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/38388/sd_ble_gap_adv_set_configure-is-returning-error-code-7-when-i-use-ble_gap_adv_type_extended_nonconnectable_scannable_undirected</link><description>I&amp;#39;m using SDK version 15.0.0_a53641a on nRF52840 with softdevice s140_nrf52_6.1.0_softdevice.hex. 
 sd_ble_gap_adv_set_configure() is returning error code 7 when I use BLE_GAP_ADV_TYPE_EXTENDED_NONCONNECTABLE_SCANNABLE_UNDIRECTED. 
 Seems like the only</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 26 Nov 2019 09:22:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/38388/sd_ble_gap_adv_set_configure-is-returning-error-code-7-when-i-use-ble_gap_adv_type_extended_nonconnectable_scannable_undirected" /><item><title>RE: sd_ble_gap_adv_set_configure() is returning error code 7 when I use BLE_GAP_ADV_TYPE_EXTENDED_NONCONNECTABLE_SCANNABLE_UNDIRECTED.</title><link>https://devzone.nordicsemi.com/thread/222022?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2019 09:22:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1658109-8217-423e-adc8-1fa577f17f7b</guid><dc:creator>NIDHIN K</dc:creator><description>&lt;p&gt;i tried this method, but its not getting long range&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_ble_gap_adv_set_configure() is returning error code 7 when I use BLE_GAP_ADV_TYPE_EXTENDED_NONCONNECTABLE_SCANNABLE_UNDIRECTED.</title><link>https://devzone.nordicsemi.com/thread/149444?ContentTypeID=1</link><pubDate>Wed, 19 Sep 2018 12:39:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc0d2e93-9da3-46d3-8756-404ea0ccdd6a</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I tried your configuration in nRF5 SDKv15.2 and it seems to work here:&lt;br /&gt;&lt;br /&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-f61badb75c844fa2a238271a4692b641/pastedimage1537360726711v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I simply modified&amp;nbsp;ble_advertising_init() in ble_advertising.c in \ble_app_uart example for test.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_ble_gap_adv_set_configure() is returning error code 7 when I use BLE_GAP_ADV_TYPE_EXTENDED_NONCONNECTABLE_SCANNABLE_UNDIRECTED.</title><link>https://devzone.nordicsemi.com/thread/148465?ContentTypeID=1</link><pubDate>Wed, 12 Sep 2018 15:22:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:584e4a57-7a81-4f32-9f80-aeaab9587b90</guid><dc:creator>KEITH</dc:creator><description>&lt;p&gt;Hello Lolek. What I&amp;#39;m trying to do is send the payload on a beacon using the long range coded phy. So I guess I do want to send it on the Advertising data, correct? The sample code I used as a template to build my code did have scanning code in it so maybe I&amp;#39;m confusing myself between scan and beacon code. Any suggestions on how to send beacon data over coded phy on 52840?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_ble_gap_adv_set_configure() is returning error code 7 when I use BLE_GAP_ADV_TYPE_EXTENDED_NONCONNECTABLE_SCANNABLE_UNDIRECTED.</title><link>https://devzone.nordicsemi.com/thread/148126?ContentTypeID=1</link><pubDate>Tue, 11 Sep 2018 05:55:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:557b1de4-9c0e-4149-969a-9114a69c1b3a</guid><dc:creator>lolek</dc:creator><description>&lt;p&gt;Hi Keith&lt;/p&gt;
&lt;p&gt;I think you&amp;#39;re sending your payload on the Advertising data instead of the scan response data.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;you should use:&lt;/p&gt;
&lt;p&gt;memset(&amp;amp;advdata, 0, sizeof(ble_advdata_t));&lt;/p&gt;
&lt;p&gt;&lt;span&gt;err_code = ble_advdata_encode(&amp;amp;srdata, m_adv_data.scan_rsp_data.p_data, &amp;amp;m_adv_data.scan_rsp_data.len);&lt;/span&gt;&lt;br /&gt;&lt;span&gt;APP_ERROR_CHECK(err_code);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;hope this helps...&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>