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

adding timer to model to send data from client to server periodically ( ex : every 1 second )

hello 

i wanted to send message using the simple message model with some modifications from client to server periodically but didn't know from where i should start ,  i tried to check how the health model is working with the provisioner but it seems to be not fluent 

can i just add a timer to the model ?? 

i started to change the init_params.publish_timeout_cb from NULL to the name of the periodic handler fucntion  which is an ( init_params is an access_model_add_params_t ) 

and in this funtion i implemented the function that sends the data in the mesh to the server but there were no result 

what shall  i do ? is there any indication ?  

i did some research  in the old  questions but didn't find someone whom had the same question ? 

finally i am using the mesh SDK v2.1.1 

thank you .

Parents Reply Children
No Data
Related