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
+4
View File
@@ -448,6 +448,8 @@ class OTAToolGUI:
def _health_check(self):
"""查询 ESP32 健康状态"""
ip = self.esp_ip.get().strip()
self.ota_client = OTAClient(esp_ip=ip)
ok, msg = self.ota_client.health_check()
if ok:
self._log_info("健康检查", msg)
@@ -605,6 +607,8 @@ class OTAToolGUI:
def _trigger_relay(self):
"""触发 OTA 中继"""
ip = self.esp_ip.get().strip()
self.ota_client = OTAClient(esp_ip=ip)
ok, msg = self.ota_client.trigger_relay()
if ok:
self._log_info("触发", msg)