How set TTL value for a model from the application?
According to the documentation we can use access_model_publish_ttl_set() and access_model_publish_ttl_get().
Whenever I use access_model_publish_ttl_get(), the TTL value reutrun by this function is 255.
From the Mesh Application I have set this to 10. I should this get value instead of this I am getting 255.
I am using Sensor server example.
This is how I use it in the application:
access_model_handle_t p_handle; uint8_t ttl; access_model_publish_ttl_get(p_handle,&ttl); __LOG(LOG_SRC_APP, LOG_LEVEL_INFO, "TTL value is : %d\n",ttl);
This how I set the TTL value value from the Mesh Application:
One thing I am little confuse about it is that:
Is my p_handle parameter is correct ?
How would I know which model I am referring to.
Or there is any other public APIs available for the application to use to change the TTL value for the server node?
Thanks