esp_http_client config question
Posted: Fri Aug 10, 2018 4:30 pm
I'm using the V3.0.2 release version of the IDF. But because I anticipate having to use certificates with HTTPS and I've been having issues with wifi and failed OTA's on crowded wifi I decided to try and use the esp_http_client and esp_https_ota in the newer IDF. I simply copied the two folders into a components folder in my project and it compiled/linked with no issues. In addition when I submitted it for testing the testers reported the OTA downloads has a better success rate.
We are not using certificates yet and I just want to note that if you comment out the tests for providing a certificate in esp_https_ota, the process works just fine as encrypted HTTPS connection.
So here's my question... Why is there a configuration item added to define CONFIG_ESP_HTTP_CLIENT_ENABLE_HTTPS? Simply using the library and passing a URL that contains HTTPS instead of HTTP will provide the info needed to answer that question. Using port 443 instead of 80 will do the same. In addition the esp_http_client_config_t contains an entry for "transport_type", which is either TCP or SSL.
John A
We are not using certificates yet and I just want to note that if you comment out the tests for providing a certificate in esp_https_ota, the process works just fine as encrypted HTTPS connection.
So here's my question... Why is there a configuration item added to define CONFIG_ESP_HTTP_CLIENT_ENABLE_HTTPS? Simply using the library and passing a URL that contains HTTPS instead of HTTP will provide the info needed to answer that question. Using port 443 instead of 80 will do the same. In addition the esp_http_client_config_t contains an entry for "transport_type", which is either TCP or SSL.
John A