ota: add ota update capabilities

This commit is contained in:
2026-03-12 10:59:35 +01:00
parent b3485fcb10
commit ee3ec3ac4f
10 changed files with 1118 additions and 3 deletions

View File

@@ -8,6 +8,7 @@
#include "uart_handler.h"
#include "ethernet_manager.h"
#include "web_server.h"
#include "ota_handler.h"
static const char *TAG = TAG_BMC;
@@ -92,6 +93,14 @@ void app_main(void) {
return;
}
// Initialize OTA handler
ESP_LOGI(TAG, "Initializing OTA handler...");
ret = ota_handler_init();
if (ret != ESP_OK) {
ESP_LOGE(TAG, "Failed to initialize OTA handler: %s", esp_err_to_name(ret));
// Continue anyway - OTA is optional
}
// Print network information
char ip[16], netmask[16], gateway[16], mac[18];
if (ethernet_get_network_info(ip, netmask, gateway) == ESP_OK) {