<?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 publish gets called twice</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54762/periodic-publish-gets-called-twice</link><description>Hello, 
 I am using the nRF SDK for Mesh v.3.1.0. To achieve periodic publishing, I set p_pubstate -&amp;gt; publish_period . step_num = 1 instead of zero in the configure step in node_setup.c. This indeed results in periodic publishing, but app_gen_onoff_client_publish_interval_cb</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 15 Jan 2020 14:55:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54762/periodic-publish-gets-called-twice" /><item><title>RE: Periodic publish gets called twice</title><link>https://devzone.nordicsemi.com/thread/229250?ContentTypeID=1</link><pubDate>Wed, 15 Jan 2020 14:55:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51d6abd3-ec5e-49a4-a6b0-fccce84e7ee1</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;&lt;strong&gt;UPDATE&lt;/strong&gt;: You have probablyhas updated periodic publication settings for the both instances of the client model on the client example. Note that in the client example there is a common periodic publication callback for both instances of the client models. If a periodic publication is configured for both client model instances with the same publish periods, the publication callback will get triggered twice as expected (but with a different model handle in each case). Probably this is what is being observed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Periodic publish gets called twice</title><link>https://devzone.nordicsemi.com/thread/222711?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2019 08:07:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df027912-5a2b-448e-b388-fe57885417b2</guid><dc:creator>Amadeus</dc:creator><description>&lt;p&gt;Hi, thank you.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When I call&amp;nbsp;&lt;strong&gt;access_model_publish_period_set() &lt;/strong&gt;instead of setting step_num to 1 in node_setup.c&lt;strong&gt;, &lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;app_gen_onoff_client_publish_interval_cb()&lt;/span&gt;&lt;/strong&gt; is just called once. I. e. the issue referred to above seems to happen only if I initialize my clients with periodic publish in node_setup.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Periodic publish gets called twice</title><link>https://devzone.nordicsemi.com/thread/222649?ContentTypeID=1</link><pubDate>Thu, 28 Nov 2019 15:33:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3e3b75b-83b5-4ba0-bb55-175da147dfc1</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Amadeus"]And, also regarding periodic publishing, is there a way to start (and stop) the periodic publish after the node_setup.c at any given time? For example, if I want my node to start periodic publishing for five minutes at a given time, could I achieve this by calling e.g.&amp;nbsp;&lt;strong&gt;access_model_publish_period_set()&lt;/strong&gt; or&lt;strong&gt; &lt;/strong&gt;another appropriate function?[/quote]
&lt;p&gt;Yes that is possible, but it is not recommended if your product is targeted to be used in an environment where third party mesh provisioner/configurator&amp;nbsp;is controlling publication settings of your product.&lt;/p&gt;
&lt;p&gt;As for the issue where the callback&amp;nbsp;&lt;span&gt;app_gen_onoff_client_publish_interval_cb() gets called twice, we are looking into it. I will update you when we have an update.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Periodic publish gets called twice</title><link>https://devzone.nordicsemi.com/thread/222179?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2019 19:00:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e52cbf22-5bd5-44bd-8dbd-69cb5a05ad65</guid><dc:creator>Amadeus</dc:creator><description>&lt;p&gt;And, also regarding periodic publishing, is there a way to start (and stop) the periodic publish after the node_setup.c at any given time? For example, if I want my node to start periodic publishing for five minutes at a given time, could I achieve this by calling e.g.&amp;nbsp;&lt;strong&gt;access_model_publish_period_set()&lt;/strong&gt; or&lt;strong&gt; &lt;/strong&gt;another appropriate function?&lt;/p&gt;
&lt;div style="left:365px;position:absolute;top:8px;" id="gtx-trans"&gt;
&lt;div class="gtx-trans-icon"&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Periodic publish gets called twice</title><link>https://devzone.nordicsemi.com/thread/222139?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2019 14:33:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe9916e6-fd9a-416e-87f5-0deb3a141f84</guid><dc:creator>Amadeus</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;When searching in the whole map structure, I can only find retransmit_count in node_setup.c - and I have set everyone to zero, even in the health client config step. Are there more instances of this setting that I am not aware of?&lt;/p&gt;
&lt;div style="left:392px;position:absolute;top:20px;" id="gtx-trans"&gt;
&lt;div class="gtx-trans-icon"&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Periodic publish gets called twice</title><link>https://devzone.nordicsemi.com/thread/222135?ContentTypeID=1</link><pubDate>Tue, 26 Nov 2019 14:27:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1793e6e4-2cf2-4933-be37-91a63e4aca75</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you check that all retransmit_count is set to 0?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>