2026-02-05 18:55:49 +08:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "esp_err.h"
|
|
|
|
|
|
2026-04-03 20:15:26 +08:00
|
|
|
#ifdef CONFIG_MIMI_WS_SERVER
|
2026-02-05 18:55:49 +08:00
|
|
|
esp_err_t ws_server_start(void);
|
|
|
|
|
esp_err_t ws_server_send(const char *chat_id, const char *text);
|
|
|
|
|
esp_err_t ws_server_stop(void);
|
2026-04-03 20:15:26 +08:00
|
|
|
#else
|
|
|
|
|
static inline esp_err_t ws_server_start(void) { return ESP_OK; }
|
|
|
|
|
static inline esp_err_t ws_server_send(const char *chat_id, const char *text) {
|
|
|
|
|
(void)chat_id; (void)text;
|
|
|
|
|
return ESP_OK;
|
|
|
|
|
}
|
|
|
|
|
static inline esp_err_t ws_server_stop(void) { return ESP_OK; }
|
|
|
|
|
#endif
|