Not able to restore model publication state after reboot using sensor_server example in bluetooth mesh

Hi, 

As queried before in this link, I am not able to restore the model publication state after reboot. Am using sensor server example to write my application on top of it. The SDK am using is "nrf5 sdk for mesh v 5.0.0". Is this a bug or am I missing any steps in development? A workaround for this issue would be really helpful for me.

Regards,

Hariharan D

Parents
  • Hi Hariharan, 

    If you are using nRF5 Mesh SDK v5.0.0, you can try enable this setting: 

    ACCESS_MODEL_PUBLISH_PERIOD_RESTORE inside nrf_mesh_config_core.h , it will enable store and restoring the publish period for the model.

    Note that by default the mesh spec doesn't enforce that the publish period is to be restored after reset ( dynamic behavior )

  • It worked!! Thanks a lot Hung Bui. But why is it not enabled by default? And also am facing another issue in setting the model publish period through model configuration. If I set the publish period to 5seconds, it should send data every 5 seconds, right? But its not behaving in the expected way. It is publishing data at a much faster rate (less than 5 seconds). When I change the publishing period too, I am seeing the same kind of behavior. Any workaround for this issue?

Reply
  • It worked!! Thanks a lot Hung Bui. But why is it not enabled by default? And also am facing another issue in setting the model publish period through model configuration. If I set the publish period to 5seconds, it should send data every 5 seconds, right? But its not behaving in the expected way. It is publishing data at a much faster rate (less than 5 seconds). When I change the publishing period too, I am seeing the same kind of behavior. Any workaround for this issue?

Children
No Data
Related