28ceb0caf5
2. 封装了一个模板线程类,支持创建来自单例类的成员函数线程,普通类的线程,普通函数线程 3. 封装了一个Wifi模块类,支持Wifi的各种基本配置
23 lines
378 B
C
23 lines
378 B
C
//
|
|
// 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 |