Delete stored BLE Mesh configuration

elDi@mond
Posts: 19
Joined: Fri Feb 04, 2022 10:42 am

Delete stored BLE Mesh configuration

Postby elDi@mond » Mon Jul 11, 2022 5:20 am

To save network settings enough set parameter in menuconfig Store BLE Mesh configuration
Question is how to "manual", thru code, remove saved parameters?

Momin786
Posts: 13
Joined: Mon Jul 11, 2022 7:52 am
Contact:

Re: Delete stored BLE Mesh configuration

Postby Momin786 » Mon Jul 11, 2022 8:15 am

When you provision a node into BLE Mesh, provisioning information will be stored in permanent storage if persistence storage is enabled. Similarly, it will be removed when you remove the node from BLE Mesh using any provisioner app such as nRF Mesh, etc.
I create ESP32 tutorials and Projects using ESP-IDF https://esp32tutorials.com/

elDi@mond
Posts: 19
Joined: Fri Feb 04, 2022 10:42 am

Re: Delete stored BLE Mesh configuration

Postby elDi@mond » Tue Jul 12, 2022 8:35 am

And if i need to hard-reset stored parametrs, by pushing button, what should be done?

Momin786
Posts: 13
Joined: Mon Jul 11, 2022 7:52 am
Contact:

Re: Delete stored BLE Mesh configuration

Postby Momin786 » Tue Jul 12, 2022 11:51 am

I am not sure but you can refer to these APIs to see which API to call to remove persistence storage information:
https://docs.espressif.com/projects/esp ... -mesh.html

But other than this you will also need to implement a logic which will inform a provisioner that the information related to this node should be removed from the mesh network and it should not be part of the mesh network anymore.
I create ESP32 tutorials and Projects using ESP-IDF https://esp32tutorials.com/

elDi@mond
Posts: 19
Joined: Fri Feb 04, 2022 10:42 am

Re: Delete stored BLE Mesh configuration

Postby elDi@mond » Fri Jul 15, 2022 10:21 am

I found it! :D

Code: Select all

esp_ble_mesh_provisioner_direct_erase_settings()

Who is online

Users browsing this forum: No registered users and 182 guests