Page 1 of 1

Asking for help!!! "OTA using web server"

Posted: Fri Mar 15, 2019 9:15 am
by tasaf1
Dear,
I use web server to send "*.bin" file, and use "post handler" to receive data.

Code: Select all

...
$.ajax({\
url: '/echo',
type: 'POST',
data: data
...

Code: Select all

httpd_uri_t echo = {
    .uri       = "/echo",
    .method    = HTTP_POST,
    .handler   = echo_post_handler,
    .user_ctx  = NULL
};
The app runs well when the size of bin file lower 200kb. But when i upload a larger file (700kb), "post handler" receives about 134 kb and stop, display "httpd_sock_err: error in send : 104"
Could someone help me please! Thanks so much!

Re: Asking for help!!! "OTA using web server"

Posted: Wed Apr 10, 2019 2:01 am
by tasaf1
Where is the "file manager"? Can you help me!!!

Re: Asking for help!!! "OTA using web server"

Posted: Sat Apr 27, 2019 2:46 am
by ESP_Sprite
I think the guy is a spammer, hence his response not making much sense. I removed his post.

Re: Asking for help!!! "OTA using web server"

Posted: Mon Jun 03, 2019 9:23 am
by ESP_Anurag
@tasaf1 Please refer to the file_server example which also features file uploading onto flash (SPIFFS partition) : https://github.com/espressif/esp-idf/bl ... ver.c#L283

There is a limit of 200KB on the upload file size. Increase it to allow uploading larger files. Also, note that the SPIFFS partition size is kept as 960KB, which you may need to increase if the OTA image is larger.

Re: Asking for help!!! "OTA using web server"

Posted: Sun Apr 11, 2021 11:10 am
by taketwo
I am using ESP8266 wifi module to control appliances in a room using my home wifi network. But I was facing a issue that if I changed the ssid and wifi-password then I was not able to connect to my wifi.