<?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>advertisement with random address</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29562/advertisement-with-random-address</link><description>Hi, 
 I am using nrf52832 with sdk11 and s132.I am using ble_app_beacon example wherein I want to advertise with different address after one power cycle. 
 In ble_stack_init ()function,I am doing as below; 
 ble_gap_addr_t addr;
addr.addr_type = BLE_GAP_ADDR_TYPE_RANDOM_STATIC</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 19 Jan 2018 14:23:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29562/advertisement-with-random-address" /><item><title>RE: advertisement with random address</title><link>https://devzone.nordicsemi.com/thread/117517?ContentTypeID=1</link><pubDate>Fri, 19 Jan 2018 14:23:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed878b5f-17ff-4542-aa3f-db59383a53c8</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi Anuja!&lt;/p&gt;
&lt;p&gt;If you take a look at the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v2.0.0/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html#ga78b1e409a55beedde9902e2c35a5b5c9"&gt;sd_ble_gap_address_set()&lt;/a&gt; function, you can see that;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;NOTE:&lt;br /&gt;
If the address cycle mode is BLE_GAP_ADDR_CYCLE_MODE_AUTO, the
address type is required to be
BLE_GAP_ADDR_TYPE_RANDOM_PRIVATE_RESOLVABLE
or
BLE_GAP_ADDR_TYPE_RANDOM_PRIVATE_NON_RESOLVABLE.
The given address is ignored and the
SoftDevice will generate a new private
address automatically every
BLE_GAP_DEFAULT_PRIVATE_ADDR_CYCLE_INTERVAL_S seconds.&lt;br /&gt;
If this API call is used
again with the same parameters, the
SoftDevice will immediately generate a
new private address to replace the
current address.
If the application wishes to use a BLE_GAP_ADDR_TYPE_PUBLIC or
BLE_GAP_ADDR_TYPE_RANDOM_STATIC
address, the cycle mode must be
BLE_GAP_ADDR_CYCLE_MODE_NONE.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;In short, to use the &lt;code&gt;BLE_GAP_ADDR_CYCLE_MODE_AUTO&lt;/code&gt;, the address type must be either &lt;code&gt;BLE_GAP_ADDR_TYPE_RANDOM_PRIVATE_RESOLVABLE&lt;/code&gt; or &lt;code&gt;BLE_GAP_ADDR_TYPE_RANDOM_PRIVATE_NON_RESOLVABLE&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;
Joakim.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>