main/task_http.h

branch
idf 5.1
changeset 142
1f7069278fe7
parent 0
b74b0e4902c3
equal deleted inserted replaced
141:e117e7462096 142:1f7069278fe7
6 #ifndef _TASK_HTTP_H 6 #ifndef _TASK_HTTP_H
7 #define _TASK_HTTP_H 7 #define _TASK_HTTP_H
8 8
9 9
10 /** 10 /**
11 * @brief Start the HTTP/Websocket server. 11 * @brief Send text to client with the set number.
12 * @param num The client connection number.
13 * @param msg The message to send.
14 * @param len The length of the message to send.
15 * @return 1 if message send.
12 */ 16 */
13 void start_http_websocket(void); 17 int ws_server_send_text_client(int num, char* msg);
18
19
20 /**
21 * @brief Sends text to all clients with the set url.
22 * @param msg The message to send.
23 * @return The number of clients the message was send to.
24 */
25 int ws_server_send_text_clients(char* msg);
26
27
28 /**
29 * @brief Install the HTTP/Websocket server.
30 */
31 void install_http_server(void);
14 32
15 #endif 33 #endif

mercurial