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
  • Hi Shenghua, 

    I'm taking over your case from Håkon. 
    Could you let me know which  .core.irq_priority  level you selected when you call mesh_stack_init() ? 
    Please have a look here. If you configure the irq_priority to NRF_MESH_IRQ_PRIORITY_LOWEST then you should call mesh API from an interrupt routine. 
    If you configure it with NRF_MESH_IRQ_PRIORITY_THREAD then you should call the API in main context. 

Children
Related