app_error_weak.c, 105, Mesh assert at 0x0002D7B4 (:0)

Dear All:

  We run a simple message model in light_switch_client and light_switch_server code.

After provisioning the two nodes via nRFmesh app and set pubilsh in clent and subscribe in the server using the app.

Then we can use the button1/2 in the client as a interrupt to control the light on/off in the server.

Now we hope to test the command "status = generic_onoff_client_set(&m_clients[0], &set_params, &transition_params)" once ", when some flag is true in the while loop.

but then I receive the message of app_error_weak.c,  105, Mesh assert at 0x0002D7B4 (:0)

How can we fixed the error?

Best regards,

ShengHua

Parents Reply
  • Dear Hung Bui:

    Thanks your help.

     The parameter of .core.irq_priority level is set NRF_MESH_IRQ_PRIORITY_LOWEST and we can call the mesh API successfully in an interrupt routine. 

    //.core.irq_priority level is set NRF_MESH_IRQ_PRIORITY_LOWEST

    // datalog for mesh API successfully in an interrupt routine. 

    Then we modify the .core.irq_priority level as NRF_MESH_IRQ_PRIORITY_THREAD and test the mesh api function .When the flag is set as true,the mesh api will run and get a error message of "app_error_weak.c,  115, Mesh error 15 at 0x00027AF3".

    // modifying .core.irq_priority level as NRF_MESH_IRQ_PRIORITY_THREAD 

    //When the flag is set as true,the mesh api will run

    The error message is as followed.

    The mesh mesh_api_test()

    Best Regards,

    ShengHua

Children
Related