mesh sdk: nrf5_SDK_for_Mesh_v1.0.1_src
example: light switch client + light swtich server
My problem is that the client cannot remove the server.
I found that many developers found this problem.
But can't this problem be solved in mesh sdk 1.0.1?
I use a client and a server to experiment
Press button 0 reset node:
config_client_node_reset(); ERROR_CHECK(dsm_address_publish_remove(m_server_handles[0])); ERROR_CHECK(dsm_devkey_delete(m_devkey_handles[0])); provisioner_wait_for_unprov(UNPROV_START_ADDRESS+0);
The ERROR LOG as follow:
<t: 0>, main.c, 446, ----- BLE Mesh Light Switch Client Demo ----- <t: 0>, nrf_mesh_sdk.c, 187, Initializing softdevice <t: 0>, nrf_mesh_sdk.c, 122, Initializing SoftDevice... <t: 2>, nrf_mesh_sdk.c, 131, Ram base: 0x200019C0 <t: 14>, nrf_mesh_sdk.c, 197, Initializing mesh stack <t: 327>, nrf_mesh_sdk.c, 205, Enabling mesh stack <t: 331>, main.c, 184, Setting up access layer and models <t: 159654>, provisioner.c, 272, Local provisioning link established <t: 161385>, provisioner.c, 258, Using static authentication <t: 170732>, provisioner.c, 267, Static authentication data provided <t: 181911>, main.c, 417, Provisioning complete. Adding address 0x0100. <t: 181917>, provisioner.c, 111, Getting composition data <t: 185546>, provisioner.c, 227, Local provisioning link closed <t: 208688>, provisioner.c, 314, Composition data: 0059000000000020000100000002010000020059000000 <t: 208691>, provisioner.c, 119, Adding appkey <t: 219856>, provisioner.c, 128, Binding appkey to the Health model <t: 221447>, provisioner.c, 140, Binding appkey to the Simple On/Off model <t: 222672>, provisioner.c, 165, Setting publication address for the health server to 0x0001 <t: 225409>, provisioner.c, 187, Setting publication address for the On/Off server to 0x0001 <t: 227802>, provisioner.c, 196, Adding subscription <t: 229409>, main.c, 381, Configuration of device 0 successful <t: 445474>, main.c, 318, Button 0 pressed <t: 454005>, nrf_mesh_sdk.c, 78, MESH ASSERT at 0x0002A5BA
My requirement is that the client can remove the server and then add the device again.
Client can delete sever's configuration in flash, then add new server
It's like the initial flash status of the client
This project needs trial production immediately. Can it provide solutions? Use mesh sdk 1.0.1