<?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>Add whitelist to ble_central_and_peripheral examples  error code:12804</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47690/add-whitelist-to-ble_central_and_peripheral-examples-error-code-12804</link><description>Add whitelist function in \ nrf5_sdk_15.2.0 _9412b96\examples\ble_central_and_peripheral\experimental\ble_app_hrs_rscs_relay, and report error 12804 (0x3204) after disconnection. 
 From the identities_set(PM_PEER_ID_LIST_SKIP_ALL) in BLE_ADV_EVT_PEER_ADDR_REQUEST;</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 24 May 2019 14:41:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47690/add-whitelist-to-ble_central_and_peripheral-examples-error-code-12804" /><item><title>RE: Add whitelist to ble_central_and_peripheral examples  error code:12804</title><link>https://devzone.nordicsemi.com/thread/189089?ContentTypeID=1</link><pubDate>Fri, 24 May 2019 14:41:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0eb0a98-1b56-4701-87bb-4a6484bb55d4</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This is from the documentation of return values from&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.1.1/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html#ga16fa7a0ac608c4955a2e4feea7a10784"&gt;sd_ble_gap_device_identities_set&lt;/a&gt;:&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td colspan="1" rowspan="1"&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.1.1/group___b_l_e___e_r_r_o_r_s___g_a_p.html#ga257371c3cf06045f7d4be9eb7b6c03f7"&gt;BLE_ERROR_GAP_DEVICE_IDENTITIES_IN_USE&lt;/a&gt;&lt;/td&gt;
&lt;td colspan="1" rowspan="1"&gt;The device identity list is in use and cannot be set or cleared.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;You cannot update the identity list when it is used by scanner. You need to stop scanner and restart it as you suggest, in order to set the new list.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add whitelist to ble_central_and_peripheral examples  error code:12804</title><link>https://devzone.nordicsemi.com/thread/188927?ContentTypeID=1</link><pubDate>Fri, 24 May 2019 01:41:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b72e650-c78b-4e11-ad0f-8ca75d620e93</guid><dc:creator>shenwrt</dc:creator><description>&lt;p&gt;Before all identities_set(), I first nrf_ble_scan_stop(); then identities_set, and finally scan_start(); there will be no error. Is there any problem with this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>