10 #include "esp_log.h" |
10 #include "esp_log.h" |
11 #include "mbedtls/base64.h" |
11 #include "mbedtls/base64.h" |
12 #include "mbedtls/sha1.h" |
12 #include "mbedtls/sha1.h" |
13 #include <string.h> |
13 #include <string.h> |
14 |
14 |
15 static const char *TAG = "websoket"; |
15 static const char *TAG = "websocket"; |
16 |
16 |
17 ws_client_t ws_connect_client(struct netconn* conn, |
17 ws_client_t ws_connect_client(struct netconn* conn, |
18 char* url, |
18 char* url, |
19 void (*ccallback)(WEBSOCKET_TYPE_t type,char* msg,uint64_t len), |
19 void (*ccallback)(WEBSOCKET_TYPE_t type,char* msg,uint64_t len), |
20 void (*scallback)(uint8_t num,WEBSOCKET_TYPE_t type,char* msg,uint64_t len) |
20 void (*scallback)(uint8_t num,WEBSOCKET_TYPE_t type,char* msg,uint64_t len) |