<?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>changing beacon information while the application is running</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54466/changing-beacon-information-while-the-application-is-running</link><description>Hi, I am having a problem changing information advertised by the Beacon while the application is running. I started with the app_ble_template example and added Information advertised by the Beacon to the advertising messages, and that is working ok, now</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 21 Nov 2019 10:55:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54466/changing-beacon-information-while-the-application-is-running" /><item><title>RE: changing beacon information while the application is running</title><link>https://devzone.nordicsemi.com/thread/221285?ContentTypeID=1</link><pubDate>Thu, 21 Nov 2019 10:55:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18759ffc-ee09-482e-b57b-33974285148d</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;ble_advertising_start is a function from the advertising module.&lt;/p&gt;
&lt;p&gt;The function will, at time made a call to &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s112.api.v6.0.0/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html#ga74c21287bd6cbcd5822bc73792f678d8"&gt;sd_ble_gap_adv_start&lt;/a&gt;, which starts the advertising.&lt;/p&gt;
&lt;p&gt;To stop the advertising, you can make a call to &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.0.0/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html#ga732faeeb8489dcb34873d78e773957bc"&gt;sd_ble_gap_adv_stop&lt;/a&gt;.&lt;/p&gt;
[quote user="voja"]And also it seems that ble_advertising_advdata_update is not working very well based on what people wrote on devzone.[/quote]
&lt;p&gt;&amp;nbsp;When the function was introduced, there was some confusion on how to use it, due to using double buffers etc. This have been made easier in the newer version of the nRF5 SDK, so you should be able to use the function without much trouble. &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><item><title>RE: changing beacon information while the application is running</title><link>https://devzone.nordicsemi.com/thread/220879?ContentTypeID=1</link><pubDate>Tue, 19 Nov 2019 14:11:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0818438f-e044-4905-99cb-9abf6f6731a8</guid><dc:creator>Vojislav</dc:creator><description>&lt;p&gt;And also it seems that ble_advertising_advdata_update is not working very well based on what people wrote on devzone.&amp;nbsp;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/41669/ble_advertising_advdata_update/183212#183212"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/41669/ble_advertising_advdata_update/183212#183212&lt;/a&gt;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/38056/advertising-data-update-nrf_error_invalid_addr"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/38056/advertising-data-update-nrf_error_invalid_addr&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: changing beacon information while the application is running</title><link>https://devzone.nordicsemi.com/thread/220871?ContentTypeID=1</link><pubDate>Tue, 19 Nov 2019 13:55:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:822bdb3f-d0fe-47fc-b70e-e6bf301a0e62</guid><dc:creator>Vojislav</dc:creator><description>&lt;p&gt;currently, I am using&amp;nbsp;&lt;strong&gt;ble_advertising_start&lt;/strong&gt; to start advertising, but I do not see the function to stop the advertising in your documentation.&amp;nbsp;&lt;br /&gt;In the beacon example advertising is initialed and started by different functions, and does not use same lib.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I will try ble_advertising_advdata_update, but for some reason, the documentation is missing on your infocenter website.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Voja&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: changing beacon information while the application is running</title><link>https://devzone.nordicsemi.com/thread/220866?ContentTypeID=1</link><pubDate>Tue, 19 Nov 2019 13:46:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9db9a4c-f5d6-4eb7-9522-ed01f926680b</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If it is ok to stop-change-restart, you should be able to do this the same way you did it before. Simply stop the advertising, change the data and restart advertising.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you want to update the advertising data while advertising, can use the function:&amp;nbsp;&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/group__ble__advertising.html#ga99dab70061ce04aea98bf226dc0c989f" rel="noopener noreferrer" target="_blank"&gt;ble_advertising_advdata_update&lt;/a&gt;&lt;br /&gt;&lt;em&gt;&amp;quot;This function can be called if you&lt;span&gt;&amp;nbsp;&lt;/span&gt;wish&lt;span&gt;&amp;nbsp;&lt;/span&gt;to reconfigure the&lt;span&gt;&amp;nbsp;&lt;/span&gt;advertising data. The update will be effective even if advertising has already been started.&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&amp;nbsp;&lt;br /&gt;Joakim Jakobsen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: changing beacon information while the application is running</title><link>https://devzone.nordicsemi.com/thread/220855?ContentTypeID=1</link><pubDate>Tue, 19 Nov 2019 13:10:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e54d9c1-00ba-4c33-bd4f-f17fd1d3cade</guid><dc:creator>Vojislav</dc:creator><description>&lt;p&gt;It is ok to stop-change-restart, I have done that with a beacon example, but I could not find a way to do it in the template example.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Voja&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: changing beacon information while the application is running</title><link>https://devzone.nordicsemi.com/thread/220853?ContentTypeID=1</link><pubDate>Tue, 19 Nov 2019 13:08:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d927ac93-5187-4e59-bc49-7ef22e77be7d</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Thanks for information.&amp;nbsp;&lt;/p&gt;
[quote user=""]now I just do not know how to change it while device is working.[/quote]
&lt;p&gt;&amp;nbsp;Do you want to change the advertising data while the device is already advertising, or is it ok to stop advertising, change the advertising data and the restart advertising?&lt;/p&gt;
&lt;p&gt;Br,&amp;nbsp;&lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: changing beacon information while the application is running</title><link>https://devzone.nordicsemi.com/thread/220770?ContentTypeID=1</link><pubDate>Tue, 19 Nov 2019 10:01:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d384c045-6080-411f-8994-b3fa79ce7da0</guid><dc:creator>Vojislav</dc:creator><description>&lt;p&gt;Hi Joakim,&lt;br /&gt;&lt;br /&gt;Have you managed to find the solution to my problem?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Vojislav.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: changing beacon information while the application is running</title><link>https://devzone.nordicsemi.com/thread/220594?ContentTypeID=1</link><pubDate>Mon, 18 Nov 2019 13:27:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ecee5366-ea8c-44fd-a0da-1979d4c93bd3</guid><dc:creator>Vojislav</dc:creator><description>&lt;p&gt;Hi Joakim,&lt;br /&gt;&lt;br /&gt;Yes, of course, I am using&amp;nbsp;nRF5_SDK_15.3.0_59ac345 SDK with Softdevice S112 version 6.1.1.&lt;br /&gt;&lt;br /&gt;Everything is running on the module based on nRF52810.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Voja&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: changing beacon information while the application is running</title><link>https://devzone.nordicsemi.com/thread/220566?ContentTypeID=1</link><pubDate>Mon, 18 Nov 2019 12:49:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b666da30-4707-4079-b5eb-633fdc494562</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To make sure I give you the correct information here, could you add which version of the nRF5 SDK you are working with?&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>