This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

BLE mesh - Removing node from network

Is there a method to remove a node from the network using the current bt mesh stack? I've looked through device_state_manager.c but it appears to me that there are only functions that would be used to add information rather than removing one.

My use case needs a way to remove a node so it can be added to another network, or just reset to a default state so that it can be used in a different context.

Parents
  • Hi Rob,

    I need to correct myself, the configuration model actually uses device key to communicate (it has to be because netkey and appkey is not distributed prior to the configuration). And we actually store the devkey in flash by DSM.

    You can find we read the devkey out using dsm_devkey_handle_get() in provisioned_device_handles_load() in our light switch client example.

    So, if you want to delete a node, you may also want to delete devkey in the dsm on the client, using dsm_devkey_delete()

Reply
  • Hi Rob,

    I need to correct myself, the configuration model actually uses device key to communicate (it has to be because netkey and appkey is not distributed prior to the configuration). And we actually store the devkey in flash by DSM.

    You can find we read the devkey out using dsm_devkey_handle_get() in provisioned_device_handles_load() in our light switch client example.

    So, if you want to delete a node, you may also want to delete devkey in the dsm on the client, using dsm_devkey_delete()

Children
Related