// // Created by misaki on 2025/9/4. // #pragma once #ifdef __cplusplus extern "C" { #endif #include "esp_err.h" /** * @brief 启动 WebSocket 长连接,接收服务器推送的升级指令 * @param server_ip 服务器 IP 字符串,如 "192.168.1.100" * @return esp_err_t */ esp_err_t ota_ws_start(const char *server_ip, uint16_t port); #ifdef __cplusplus } #endif