esp_tls_conn_read bad data
Posted: Wed Jan 26, 2022 7:15 am
Hello everyone,
I have trouble with https request,
I have bad data sometimes between buffer read.
len = sizeof(buf) - 1;
memset(buf, 0, sizeof(buf));
ret = esp_tls_conn_read(tls, (char *)buf, len);
I am trying to received a binary file for ota. but sometimes ret < len and I have bad data the next read so my binary is corrupted...
Any idea ? it looks like the error appears at the same place each time. If I copy paste my request in a browser the file is downloaded correctly...
Have a good day.
Arnaud
I have trouble with https request,
I have bad data sometimes between buffer read.
len = sizeof(buf) - 1;
memset(buf, 0, sizeof(buf));
ret = esp_tls_conn_read(tls, (char *)buf, len);
I am trying to received a binary file for ota. but sometimes ret < len and I have bad data the next read so my binary is corrupted...
Any idea ? it looks like the error appears at the same place each time. If I copy paste my request in a browser the file is downloaded correctly...
Have a good day.
Arnaud