I was trying to implement file uploading using the native method. I am able to upload the files without any problem but after the upload when I am trying to close the connection, it always returns FAIL.
Code: Select all
err = esp_http_client_close(client);
if (err != ESP_OK)
{
ESP_LOGE(TAG, "Failed to close HTTP connection: %s", esp_err_to_name(err));
esp_http_client_cleanup(client);
}
Can anybody point me out why is it happening so?