From 432e9b6293b96ab0ceea2c4ad183ae90671d9ed4 Mon Sep 17 00:00:00 2001 From: Yuan Hong Hui Date: Fri, 28 Jan 2022 17:06:48 +0800 Subject: [PATCH 1/4] ble mesh:example:correct repl config prompt --- .../ble_mesh_console/main/ble_mesh_console_main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/examples/bluetooth/esp_ble_mesh/ble_mesh_console/main/ble_mesh_console_main.c b/examples/bluetooth/esp_ble_mesh/ble_mesh_console/main/ble_mesh_console_main.c index f6b0889a6e..e6f88b3874 100644 --- a/examples/bluetooth/esp_ble_mesh/ble_mesh_console/main/ble_mesh_console_main.c +++ b/examples/bluetooth/esp_ble_mesh/ble_mesh_console/main/ble_mesh_console_main.c @@ -70,7 +70,13 @@ void app_main(void) initialize_filesystem(); repl_config.history_save_path = HISTORY_PATH; #endif + +#if CONFIG_IDF_TARGET_ESP32C3 + repl_config.prompt = "esp32c3>"; +#else repl_config.prompt = "esp32>"; +#endif + // init console REPL environment ESP_ERROR_CHECK(esp_console_new_repl_uart(&uart_config, &repl_config, &repl)); From 69b9ad27c357f8d0e6561ab27e2e762ad5d23032 Mon Sep 17 00:00:00 2001 From: Yuan Hong Hui Date: Fri, 28 Jan 2022 17:13:38 +0800 Subject: [PATCH 2/4] ble mesh:example:response for checking restart in auto_test --- .../esp_ble_mesh/ble_mesh_console/main/ble_mesh_console_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/bluetooth/esp_ble_mesh/ble_mesh_console/main/ble_mesh_console_main.c b/examples/bluetooth/esp_ble_mesh/ble_mesh_console/main/ble_mesh_console_main.c index e6f88b3874..ea2c2a7dfa 100644 --- a/examples/bluetooth/esp_ble_mesh/ble_mesh_console/main/ble_mesh_console_main.c +++ b/examples/bluetooth/esp_ble_mesh/ble_mesh_console/main/ble_mesh_console_main.c @@ -76,6 +76,7 @@ void app_main(void) #else repl_config.prompt = "esp32>"; #endif + printf("!!!ready!!!\n"); // init console REPL environment ESP_ERROR_CHECK(esp_console_new_repl_uart(&uart_config, &repl_config, &repl)); From 47bd9d4171774a71b1f23036843375f39367aaa0 Mon Sep 17 00:00:00 2001 From: Yuan Hong Hui Date: Fri, 28 Jan 2022 17:15:12 +0800 Subject: [PATCH 3/4] ble mesh:example:delete unused tag --- .../ble_mesh_console/main/ble_mesh_console_main.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/examples/bluetooth/esp_ble_mesh/ble_mesh_console/main/ble_mesh_console_main.c b/examples/bluetooth/esp_ble_mesh/ble_mesh_console/main/ble_mesh_console_main.c index ea2c2a7dfa..76803ca964 100644 --- a/examples/bluetooth/esp_ble_mesh/ble_mesh_console/main/ble_mesh_console_main.c +++ b/examples/bluetooth/esp_ble_mesh/ble_mesh_console/main/ble_mesh_console_main.c @@ -19,16 +19,11 @@ #include "esp_vfs_dev.h" #include "nvs.h" #include "nvs_flash.h" - #include "esp_vfs_fat.h" - #include "esp_console.h" - #include "ble_mesh_console_decl.h" #include "ble_mesh_example_init.h" -#define TAG "ble_mesh_test" - #if CONFIG_STORE_HISTORY #define MOUNT_PATH "/data" From ab375388efb6f1fd16ae47d156b3399ea4e00a86 Mon Sep 17 00:00:00 2001 From: Yuan Hong Hui Date: Fri, 28 Jan 2022 17:23:22 +0800 Subject: [PATCH 4/4] ble mesh:example:correct the output log level --- .../esp_ble_mesh/ble_mesh_console/main/ble_mesh_register_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/bluetooth/esp_ble_mesh/ble_mesh_console/main/ble_mesh_register_cmd.c b/examples/bluetooth/esp_ble_mesh/ble_mesh_console/main/ble_mesh_register_cmd.c index 50f9606385..599928a47b 100644 --- a/examples/bluetooth/esp_ble_mesh/ble_mesh_console/main/ble_mesh_register_cmd.c +++ b/examples/bluetooth/esp_ble_mesh/ble_mesh_console/main/ble_mesh_register_cmd.c @@ -167,7 +167,7 @@ void ble_mesh_register_mesh_node(void) int ble_mesh_register_cb(int argc, char** argv) { - ESP_LOGE(TAG, "enter %s\n", __func__); + ESP_LOGD(TAG, "enter %s\n", __func__); ble_mesh_node_init(); esp_ble_mesh_register_prov_callback(ble_mesh_prov_cb); esp_ble_mesh_register_custom_model_callback(ble_mesh_model_cb);