(running a mesh 2.1 sdk)
I am provisioning my nodes over serial and do not need the GATT Provisioning service. I need to access the GATT Proxy service to send mesh data. How do I turn off the provisioning service and turn on the proxy service?
I have tried proxy_start();
proxy_start results in an assertion at mesh_adv.c line 162: APP_ERROR_CHECK(sd_ble_gap_adv_start(m_adv_handle, MESH_SOFTDEVICE_CONN_CFG_TAG));
I found somewhere that exiting provisioning mode could be done by calling gap_params_init() and conn_params_init() to reset the soft device. I have also tried sending the serial command to reset the radio.
I do not know if it is related, but I have noticed that on bootup, in mesh_stack.c, mesh_stack_start(void), there is a section to start the proxy. I have halted the processor there and seen that my provisioned device does not have a unicast address set, causing it not to be executed; yet if I let the processor run past that, the provisioning gets loaded from flash! Is that intentional?
Actually - I just realized that proxy_init(void) never gets called!
-------
I just tried to call proxy_init()... and now I have both provisioning and proxy services showing up on my phone (running nrf connect for android). I think they are conflicting with each other. How do I disable provisioning service?