apps/blemesh_light: Add option to enable Mesh persistent storage

This commit is contained in:
Michał Narajowski
2018-07-09 14:23:15 +02:00
parent eb86444d3c
commit e32e2c83de
2 changed files with 11 additions and 0 deletions
+8
View File
@@ -98,6 +98,14 @@ blemesh_on_sync(void)
console_printf("Mesh initialized\n");
if (IS_ENABLED(CONFIG_SETTINGS)) {
settings_load();
}
if (bt_mesh_is_provisioned()) {
printk("Mesh network restored from flash\n");
}
/* Hack for demo purposes */
bt_test_shell_init();
}
+3
View File
@@ -50,6 +50,9 @@ syscfg.vals:
BLE_MESH_SHELL_MODELS: 1
BLE_MESH_TESTING: 1
BLE_MESH_OOB_OUTPUT_ACTIONS: 0
BLE_MESH_SETTINGS: 0
CONFIG_NFFS: 0
USE_NEOPIXEL: 0
syscfg.vals.BLE_MESH_SHELL_MODELS: