|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#ifndef _HTTPS_REQUEST_H_
#define _HTTPS_REQUEST_H_
#include "esp_crt_bundle.h"
#include "esp_http_client.h"
#include "esp_log.h"
#include "esp_wifi.h"
#include <sys/param.h>
#define HTTPS_FINISHED_BIT BIT0
#define HTTPS_ERROR_BIT BIT1
esp_err_t init_https();
esp_err_t do_https_request(const char* url, esp_http_client_method_t method, const char** headers, char*** response_headers, char** response, int* code);
void free_https_response(char*** response_headers, char** response);
#endif
|