#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 #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