I'm using latest ESP-IDF and i'm testing an HTTP client. I face two problems:
1. esp_http_client_cleanup(client) causes random crashes, usually on the next esp_http_client_init(&config) but sometimes the cpu simply goes off. Usual error:
Code: Select all
assertion "heap != NULL && "realloc() pointer is outside heap areas"" failed: file "IDF/components/heap/heap_caps.c", line 345, function: heap_caps_realloc
Code: Select all
I (4611) httpServer: Loading url https://script.google.com/macros/s/AKfyasFQ/exec
E (4681) esp-tls-mbedtls: No server verification option set in esp_tls_cfg_t structure. Check esp_tls API reference
E (4681) esp-tls-mbedtls: Failed to set client configurations
E (4691) esp-tls: create_ssl_handle failed
E (4691) esp-tls: Failed to open new connection
E (4701) TRANSPORT_BASE: Failed to open a new connection
E (4711) HTTP_CLIENT: Connection failed, sock < 0
Code: Select all
idf.py monitor
Executing action: monitor
Serial port /dev/ttyUSB0
Connecting........_____....._____....._____....._____
/dev/ttyUSB0 failed to connect: Failed to connect to Espressif device: Timed out waiting for packet header
No serial ports found. Connect a device, or use '-p PORT' option to set a specific port.