espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.6k stars 7.27k forks source link

ESP32 needs to provision each time I restart it in ESP-BLE-MESH. how can I save or automatically provision it, once I provisioned it using my mobile app. (IDFGH-13414) #14321

Open robocircuits opened 2 months ago

robocircuits commented 2 months ago

Answers checklist.

General issue report

ESP32 needs to provision each time I restart it in ESP-BLE-MESH. how can I save or automatically provision it, once I provisioned it using my mobile app?

Is there any option to either save credentials or appkeys in nvs to connect esp32 as fast as possible to mesh in case of restart of device.

chegewara commented 3 weeks ago

Hi, i dont know why this is not answered yet.

There is option in menuconfig to enable it. Please search for "persistent" in menuconfig.

PS This question has been already answered few times in esp-idf github issues and on forum. https://github.com/espressif/esp-idf/issues/3408#issuecomment-489383941

forx157 commented 2 weeks ago

Thank you for the response from @chegewara . By enabling Bluetooth Mesh support --> Store Bluetooth Mesh key and configuration persistently in menuconfig, the network information can be saved to the flash, and the network data from the last session will be automatically restored upon the next startup.