Making HTTP / HTTPS requests with ESP32
I have in the past written an article explaining how to send HTTP requests with Arduino. This time we’re going to learn how to do it using ESP-IDF.
This article is the result of my learnings from analyzing the official ESP HTTP client example.
ESP-NETIF
ESP-NETIF is ESP32’s abstraction for TCP/IP. It’s not too complicated to use, but it’s somewhat verbose. All applications that use it need to start by calling:
1
esp_netif_init();
This function should be called only once, when the application starts.