Dear Nordic experts,
This short code snippet is supposed to reset (unprovision) a Bluetooth Mesh node and reboot it (NCS 1.7.1):
void on_node_reset()
{
bt_mesh_reset();
bt_mesh_prov_enable(CONFIG_BT_MESH_PB_GATT);
bt_mesh_model_data_store(somestruct.model, true, DATA_STORE_KEY, NULL, 0);
sys_reboot(SYS_REBOOT_COLD);
} The function is wired to an input pin. After calling it, the reboot happens, but the node stays provisioned. Question now is, what's the proper way to reset (completely wipe, or factory reset) a Bluetooth Mesh node?