<?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>How are addresses handled with BLE?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/89478/how-are-addresses-handled-with-ble</link><description>I noticed that if I set options = BT_LE_ADV_OPT_NONE in bt_le_adv_param I get a random address at each bootup and if I set it to BT_LE_ADV_OPT_USE_IDENTITY I get always the same address. 
 My device is currently unconnectable (I only use BLE to detect</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 30 Jun 2022 16:06:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/89478/how-are-addresses-handled-with-ble" /><item><title>RE: How are addresses handled with BLE?</title><link>https://devzone.nordicsemi.com/thread/374964?ContentTypeID=1</link><pubDate>Thu, 30 Jun 2022 16:06:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5bc4e5d1-7048-4703-9679-8facd847871b</guid><dc:creator>dejans</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;BT_LE_ADV_OPT_NONE means that no options are specified.&lt;br /&gt;BT_LE_ADV_OPT_USE_IDENTITY specifies advertising using local identity which preserves address after reboot.&amp;nbsp;&lt;br /&gt;You could check Advertising section in this&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/building-a-ble-application-on-ncs-comparing-and-contrasting-to-softdevice-based-ble-applications"&gt;guide&lt;/a&gt;.&lt;br /&gt;Bluetooth&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/applications/nrf_desktop/doc/ble_bond.html#local-identities"&gt;local identity&lt;/a&gt;&amp;nbsp;is used by the Zephyr API. Every Bluetooth local identity has its own Bluetooth address and Identity Resolving Key (IRK).&lt;br /&gt;You can also read more about&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/2084/gap-address-types"&gt;address types&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/27012/how-to-distinguish-between-random-and-public-gap-addresses"&gt;how to distinguish different addresses&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Dejan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>