ESP32乐鑫的官方固件库可以访问https这种网站吗?
http这种肯定是没问题的。
离线
当然可以, example里面有里程的.
esp-idf\examples\protocols\https_request\main\https_request_example_main.c
/* Constants that aren't configurable in menuconfig */
#define WEB_SERVER "www.howsmyssl.com"
#define WEB_PORT "443"
#define WEB_URL "https://www.howsmyssl.com/a/check"
static const char *TAG = "example";
static const char *REQUEST = "GET " WEB_URL " HTTP/1.0\r\n"
"Host: "WEB_SERVER"\r\n"
"User-Agent: esp-idf/1.0 esp32\r\n"
"\r\n";
离线