#pragma once #include "esp_err.h" #ifdef CONFIG_MIMI_OTA esp_err_t ota_update_from_url(const char *url); #else static inline esp_err_t ota_update_from_url(const char *url) { (void)url; return ESP_ERR_NOT_SUPPORTED; } #endif