(resolved) issue with HTTP client
Posted: Fri Sep 13, 2019 10:26 pm
Hi all -
I've been asked to extend the functionality of our ESP32-based product. We now need to communicate with an Informacast server.
Here's a bit of code:
When I execute the perform, I get a system error:
Other people have attributed the system error to an insufficient number of sockets, but I don't believe that's my problem. Plus I don't understand why I'm getting an error code other than ESP_OK or ESP_FAIL.
I'm sure my configuration struct isn't properly set, but I was going to deal with that later. Right now, I'm just trying to figure out this error message. Can anyone help shed some light on this?
Thanks...
I've been asked to extend the functionality of our ESP32-based product. We now need to communicate with an Informacast server.
Here's a bit of code:
Code: Select all
client = esp_http_client_init(&config);
err = esp_http_client_perform(client);
ESP_LOGI(TAG, "doInformacastStuff(): esp_http_client_perform() returned %d.", err);
Code: Select all
E (5552) HTTP_CLIENT: Connection failed, sock < 0
I (5552) Worker: doInformacastStuff(): esp_http_client_perform() returned 28674
I'm sure my configuration struct isn't properly set, but I was going to deal with that later. Right now, I'm just trying to figure out this error message. Can anyone help shed some light on this?
Thanks...