mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 03:07:21 +02:00
ble mesh:example:correct repl config prompt in ble mesh console(v4.2)
This commit is contained in:
committed by
Jiang Jiang Jian
parent
473d39e6e6
commit
886e846dc0
@ -19,16 +19,11 @@
|
|||||||
#include "esp_vfs_dev.h"
|
#include "esp_vfs_dev.h"
|
||||||
#include "nvs.h"
|
#include "nvs.h"
|
||||||
#include "nvs_flash.h"
|
#include "nvs_flash.h"
|
||||||
|
|
||||||
#include "esp_vfs_fat.h"
|
#include "esp_vfs_fat.h"
|
||||||
|
|
||||||
#include "esp_console.h"
|
#include "esp_console.h"
|
||||||
|
|
||||||
#include "ble_mesh_console_decl.h"
|
#include "ble_mesh_console_decl.h"
|
||||||
#include "ble_mesh_example_init.h"
|
#include "ble_mesh_example_init.h"
|
||||||
|
|
||||||
#define TAG "ble_mesh_test"
|
|
||||||
|
|
||||||
#if CONFIG_STORE_HISTORY
|
#if CONFIG_STORE_HISTORY
|
||||||
|
|
||||||
#define MOUNT_PATH "/data"
|
#define MOUNT_PATH "/data"
|
||||||
@ -70,7 +65,10 @@ void app_main(void)
|
|||||||
initialize_filesystem();
|
initialize_filesystem();
|
||||||
repl_config.history_save_path = HISTORY_PATH;
|
repl_config.history_save_path = HISTORY_PATH;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
repl_config.prompt = "esp32>";
|
repl_config.prompt = "esp32>";
|
||||||
|
printf("!!!ready!!!\n");
|
||||||
|
|
||||||
// init console REPL environment
|
// init console REPL environment
|
||||||
ESP_ERROR_CHECK(esp_console_new_repl_uart(&uart_config, &repl_config, &repl));
|
ESP_ERROR_CHECK(esp_console_new_repl_uart(&uart_config, &repl_config, &repl));
|
||||||
|
|
||||||
|
@ -167,7 +167,7 @@ void ble_mesh_register_mesh_node(void)
|
|||||||
|
|
||||||
int ble_mesh_register_cb(int argc, char** argv)
|
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();
|
ble_mesh_node_init();
|
||||||
esp_ble_mesh_register_prov_callback(ble_mesh_prov_cb);
|
esp_ble_mesh_register_prov_callback(ble_mesh_prov_cb);
|
||||||
esp_ble_mesh_register_custom_model_callback(ble_mesh_model_cb);
|
esp_ble_mesh_register_custom_model_callback(ble_mesh_model_cb);
|
||||||
|
Reference in New Issue
Block a user