<?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>Periodic advertisement data update beacon Zephyr</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91857/periodic-advertisement-data-update-beacon-zephyr</link><description>Hello, 
 I would like to implement beacon feature with a periodic (each 10s) advertisement data update. 
 This is an extrapolation of my code: 
 
 Is there some function that permit to update data periodicaly? 
 Could you provide more documentation? </description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 Sep 2022 17:36:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91857/periodic-advertisement-data-update-beacon-zephyr" /><item><title>RE: Periodic advertisement data update beacon Zephyr</title><link>https://devzone.nordicsemi.com/thread/386952?ContentTypeID=1</link><pubDate>Mon, 19 Sep 2022 17:36:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b90c5444-f4c9-44b2-b1cb-bc22306f4ea0</guid><dc:creator>MPDeveloper89</dc:creator><description>&lt;p&gt;Hello Hung Bui,&lt;/p&gt;
&lt;p&gt;Thank you for your suggestion.&lt;/p&gt;
&lt;p&gt;I verified that timer is not functional and I used thread function to get the result.&lt;/p&gt;
&lt;p&gt;Issue was related to update data dynamically.&lt;/p&gt;
&lt;p&gt;Thank you again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Periodic advertisement data update beacon Zephyr</title><link>https://devzone.nordicsemi.com/thread/385894?ContentTypeID=1</link><pubDate>Tue, 13 Sep 2022 09:17:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9fde9e15-d898-439e-b146-bb700d2f79af</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Marco,&amp;nbsp;&lt;br /&gt;I&amp;#39;m sorry that I don&amp;#39;t fully understand your question.&amp;nbsp;&lt;br /&gt;Do you have any issue when updating your data dynamically when you are advertising ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you don&amp;#39;t you can just have a k_thread that has a loop to update the data and call k_sleep() to wait between each period. You can also use a &lt;a href="https://docs.zephyrproject.org/3.0.0/reference/kernel/timing/timers.html"&gt;k_timer&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>