feat: 添加 BLE 管理功能与配置
- 新增 ble_manager.c 和 ble_manager.h 文件,提供 BLE 初始化和管理功能 - 更新 CMakeLists.txt,包含 ble_manager.c 以支持 BLE 功能 - 在 sdkconfig.defaults 中启用 BLE 和相关配置 - 更新 app_main.c,初始化 BLE 管理器 - 在 Kconfig.projbuild 中添加 BLE 设备名称配置选项 - 更新 board_config.h,定义 BLE 启用标志
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#include "ui.h"
|
||||
#include "ui_handlers.h"
|
||||
#include "wifi_manager.h"
|
||||
#include "ble_manager.h"
|
||||
|
||||
static const char *TAG = "app";
|
||||
|
||||
@@ -40,4 +41,7 @@ void app_main(void)
|
||||
|
||||
ESP_LOGI(TAG, "Starting WiFi");
|
||||
wifi_manager_init();
|
||||
|
||||
ESP_LOGI(TAG, "Starting BLE");
|
||||
ble_manager_init();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user