Error:
Code: Select all
E (37828) esp-tls: [sock=55] select() timeout
E (37828) esp-tls: Failed to open new connection
E (37828) TRANSPORT_BASE: Failed to open a new connection
E (37828) HTTP_CLIENT: Connection failed, sock < 0
E (37838) esp_https_ota: Failed to open HTTP connection: ESP_ERR_HTTP_CONNECT
E (37838) esp_https_ota: Failed to establish HTTP connection
E (37848) OTA.c: ota begin failedApparently esp-tls is complaining, but I'm wondering since I don't even have https enabled. For the ESP https client I have set "Enable https" to false and at the same time, I have enabled "Allow HTTP for OTA" in the ESP HTTPS OTA component config.
I don't know why the http client is still trying to invoke TLS function, or maybe it just appears to me like this.
Steps I followed to solve this problem:
- Checked free heap size before esp_https_ota_begin(). It amounted to 197144 bytes (I believe this should be enough?)
- Activated verbose wifi debug log but without a difference
- Tried the esp_http_client example which works. However, it uses certificates which I dont.
- Potential connection issues: The MQTT client which is running at the same time is able to connect just fine.
There's a single related topic here which is in chinese, but since I don't speak nor read chinese I have difficulties understanding the context or whether or not the problem has been solved. A rough translate suggests what I have tried, logging free heap size and enabling wifi logs among others, but to no avail.
Any ideas?
