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

change time on how often health server send out

Hi
is there anyone who knows if you can change the time on how often the health server model send out, the health server model is from lightswitch demo

Parents
  • hello,

    Within the context of the lightswitch demo, then you'll need to look at the following line in provisioner.c (note that it's under the: case PROV_STATE_CONFIG_PUBLICATION_HEALTH statement)

    pubstate.publish_period.step_res = ACCESS_PUBLISH_RESOLUTION_10S;
    

    In the wider context and to achieve more dynamic control over the health publication period, then you'll need to look at the health_client_period_set(...), health model API.

    Regards,

Reply
  • hello,

    Within the context of the lightswitch demo, then you'll need to look at the following line in provisioner.c (note that it's under the: case PROV_STATE_CONFIG_PUBLICATION_HEALTH statement)

    pubstate.publish_period.step_res = ACCESS_PUBLISH_RESOLUTION_10S;
    

    In the wider context and to achieve more dynamic control over the health publication period, then you'll need to look at the health_client_period_set(...), health model API.

    Regards,

Children
No Data
Related