I am writing a mesh beacon application based on Mesh SDK v0.10's beacon and light switching examples. A very kind Nordic employee has provided an example on how to combine the two examples projects. But it causes problems for me.
When using mesh_core_setup()
to initialize the mesh stack, I can get the beacon working by it self, but it will not be able to connect to a mesh network.
This is what is done in the beacon example project.
When using mesh_core_setup()
to initialize the mesh stack and nrf_mesh_node_config()
to connect to the network i get an NRF_ERROR_INVALID_STATE
error.
And when only calling nrf_mesh_node_config()
i get an NRF_ERROR_NO_MEM
error.
This is what is done in the light switching server example project.
How do i handle this situation?