ota: add ota update capabilities
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user