feat: 添加健康监控系统并重构代码结构

- 新增health_monitor模块,包含温度、电压、WiFi RSSI监控功能
- 移除旧的app_main.h/app_main.c和debug模块,将调试日志移动到monitor目录
- 在main.cpp中替换system_monitor_task为health_monitor_task
- 更新CMakeLists.txt依赖项,添加esp_driver_tsens和esp_driver_uart
- 修改WiFi配置参数,更新SSID和密码设置方式
- 在Python工具中修复OTA客户端重新连接逻辑
- 调整任务优先级分配,统一使用核心0以适配ESP32-C3单核架构
This commit is contained in:
小龙虾
2026-04-27 02:34:47 +08:00
parent bcfe130451
commit 7bb28cee1e
32 changed files with 177 additions and 191 deletions
+10 -9
View File
@@ -1,14 +1,13 @@
idf_component_register(
SRCS
"core/main.cpp"
"core/app_main.cpp"
"relay/ota_relay.cpp"
"transport/spi_master.cpp"
"transport/protocol.cpp"
"server/wifi_ota.cpp"
"server/ble_ota.cpp"
"monitor/health_monitor.cpp"
"debug/debug_log.cpp"
"monitor/debug_log.cpp"
INCLUDE_DIRS
"."
"core"
@@ -16,17 +15,19 @@ idf_component_register(
"transport"
"server"
"monitor"
"debug"
"include"
REQUIRES
cjson
esp_driver_spi
esp_driver_tsens
esp_driver_uart
esp_wifi
esp_http_server
nvs_flash
esp_timer
esp_partition
esp_netif
esp_event
esp_system
cjson
esp_partition
esp_timer
esp_http_server
esp_blockdev
nvs_flash
freertos
)