<?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 update Advertising Data in SDK 16.0.0?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92552/how-update-advertising-data-in-sdk-16-0-0</link><description>Hello everyone i need to update the Advertising Data of the device but i am not sure the correct way to do it. First i have the next struct of the Adv Data that i want to use: 
 
 The model and device_id are const values, but led params could change on</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 Oct 2022 08:11:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92552/how-update-advertising-data-in-sdk-16-0-0" /><item><title>RE: How update Advertising Data in SDK 16.0.0?</title><link>https://devzone.nordicsemi.com/thread/389137?ContentTypeID=1</link><pubDate>Tue, 04 Oct 2022 08:11:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d17f1521-f8d1-458b-b08e-356b0edf5563</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The SoftDevice holds it&amp;#39;s own copy of the advertising data, so updating the&amp;nbsp;test_adv_data struct alone doesn&amp;#39;t update the advertising data.&lt;/p&gt;
&lt;p&gt;I usually just say that you can stop, re-initialize the advertising data (just like you did the first time), and then restart it, but since some SDK update (prior to SDK16) we added&amp;nbsp;ble_advertising_advdata_update(), which I believe you can use to update the advertising data on the fly. I have not tested it personally, but it is implemented in ble_advertising.c (same file that has ble_advertising_init()).&lt;/p&gt;
&lt;p&gt;According to the declaration in ble_advertising.h: &amp;quot;This function can be called if you wish to reconfigure the advertising data The update&lt;br /&gt; * will be effective even if advertising has already been started.&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>