2026-02-05 18:55:59 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "esp_err.h"
|
|
|
|
|
|
2026-04-03 20:15:26 +08:00
|
|
|
#ifdef CONFIG_MIMI_OTA
|
2026-02-05 18:55:59 +08:00
|
|
|
esp_err_t ota_update_from_url(const char *url);
|
2026-04-03 20:15:26 +08:00
|
|
|
#else
|
|
|
|
|
static inline esp_err_t ota_update_from_url(const char *url) {
|
|
|
|
|
(void)url;
|
|
|
|
|
return ESP_ERR_NOT_SUPPORTED;
|
|
|
|
|
}
|
|
|
|
|
#endif
|