How I can clear Pending Publish Messages after disabling and Re-enabling NRF Mesh

For power optimization I did to disable Mesh Using this piece of Code 

ret_code_t retval = proxy_stop(); 
  while (retval == NRF_SUCCESS)
  {
    retval = nrf_mesh_disable();
  }

and Re- Enable using this code

ret_code_t retval = proxy_enable();
  if (retval == NRF_SUCCESS)
  {
    retval = proxy_start();
  }
  if (retval == NRF_SUCCESS)
  {
    retval = nrf_mesh_enable();
  }

So the Real Question is that , After disabling Mesh for some time and then re-enable Mesh I should see Publish Messages after Re-enabling Mesh , but actually I see old publish messages (messages before disabling Mesh) and then new publish messages.. Why I am seeing these pending publish messages, Thanks 
By the I am using Sensor example.

Also I want know how I can stop Publish Interval Timer , and then start again from the code, ( After many hours of searching I found one case regarding this problem but haven't yet answered, they it is in the "config_server.c" file in the sensor example but i don;t know how to do it )
Thanks

Parents Reply Children
No Data
Related