This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Periodic publish gets called twice

Hello,


I am using the nRF SDK for Mesh v.3.1.0.

To achieve periodic publishing, I set p_pubstate->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() gets called twice, even though retransmit_count i set to 0. Why is that? 

  • UPDATE: 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.

Related