6 #include "config.h" |
6 #include "config.h" |
7 #include "mbedtls/base64.h" |
7 #include "mbedtls/base64.h" |
8 #include "mbedtls/sha1.h" |
8 #include "mbedtls/sha1.h" |
9 |
9 |
10 |
10 |
11 const char *TAG = "task_http"; |
11 static const char *TAG = "task_http"; |
12 static QueueHandle_t client_queue; |
12 static QueueHandle_t client_queue; |
13 const static int client_queue_size = 10; |
13 const static int client_queue_size = 10; |
14 static TaskHandle_t xTaskHTTP = NULL; |
14 static TaskHandle_t xTaskHTTP = NULL; |
15 static TaskHandle_t xTaskQueue = NULL; |
15 static TaskHandle_t xTaskQueue = NULL; |
16 |
16 |
17 |
17 |
18 |
18 |
|
19 /** |
|
20 * @brief Debug dump buffer |
|
21 * @param buf The buffer |
|
22 * @param buflen Length of the buffer |
|
23 */ |
19 void dump_buf(char *buf, uint16_t buflen); |
24 void dump_buf(char *buf, uint16_t buflen); |
|
25 |
20 |
26 |
21 |
27 |
22 /** |
28 /** |
23 * @brief Send HTTP error and message |
29 * @brief Send HTTP error and message |
24 * @param conn The socket to send to. |
30 * @param conn The socket to send to. |