triggering model reset handler

Hi, 

I have implemented a set of custom mesh models on nCS. In vendor models we have reset handlers, as in nrf documentation: https://developer.nordicsemi.com/nRF_Connect_SDK/doc/2.0.0/nrf/ug_bt_mesh_vendor_model_dev_overview.html#:~:text=The%20model%20reset%20handler%20is%20called%20when%20the%20mesh%20node%20is%20reset

I have two questions here:

  1. What are the guidelines to write reset handlers, I mean what should they do..?
  2. How do I trigger reset handlers to test..? I do not know how a node is reset, hence kindly suggest how to trigger reset handler.

Thanks,

Parents Reply
  • Hi ,

    I am unaware about the same, 
    Now coming back to my original question

    I need to know how to invoke ".reset"

    if you need to update something stored in flash or in RAM that needs to be updated. As an example, if you have a server-model you will need to reset the stored state of the model.

    This is exactly what I am supposed to do,

    But I cannot do this through a push button, I need to know how to reset a node wirelessly.

    Is there a provision for the same in nrf mesh android app..?

    How do I invoke the reset callback from  nrf mesh android app..?

Children
Related