Good morning,
I am working with an Esp32S3.
In my program, the chip is started as a WIFI access point and is running a web server that can be accessed from a computer
using a particular URL.
I am using this webserver in order to send file from a computer to the Esp32S3 using an application.
When I close the application during the filetransfer, I get the error :
httpd_txrx: httpd_sock_err: error in recv : 104
Is there a way to catch the error code from my program in order to execute a particular process in this case ?
Thank you for your help on this subject,
best regards,
Thomas TRUILHE
Esp32S3 : httpd_txrx: httpd_sock_err: error in recv : 104. How to get the error code ?
-
ThomasESP32
- Posts: 281
- Joined: Thu Jul 14, 2022 5:15 am
Re: Esp32S3 : httpd_txrx: httpd_sock_err: error in recv : 104. How to get the error code ?
This should be a warning, rather than an error (connection reset by peer)
If it were an error, you could use a panic handler https://docs.espressif.com/projects/esp ... dling.html
You can check events in "esp_wifi_get_event_mask(uint32_t *mask)" and handle them with the system event handler.
https://docs.espressif.com/projects/esp ... dling.html
However if the error is in the ws interface you created, you can handle them there.
I think this is a good start for you
If it were an error, you could use a panic handler https://docs.espressif.com/projects/esp ... dling.html
You can check events in "esp_wifi_get_event_mask(uint32_t *mask)" and handle them with the system event handler.
https://docs.espressif.com/projects/esp ... dling.html
However if the error is in the ws interface you created, you can handle them there.
I think this is a good start for you
-
ThomasESP32
- Posts: 281
- Joined: Thu Jul 14, 2022 5:15 am
Re: Esp32S3 : httpd_txrx: httpd_sock_err: error in recv : 104. How to get the error code ?
So I unerstand that this is not an error but just a warning
however, do you think it is possible to handle it using an event handler or something like that ?
Best regards,
Thomas TRUILHE
however, do you think it is possible to handle it using an event handler or something like that ?
Best regards,
Thomas TRUILHE
-
MicroController
- Posts: 2669
- Joined: Mon Oct 17, 2022 7:38 pm
- Location: Europe, Germany
Re: Esp32S3 : httpd_txrx: httpd_sock_err: error in recv : 104. How to get the error code ?
How do you read the (POST?) data from the HTTP connection?
Who is online
Users browsing this forum: Qwantbot, Semrush [Bot] and 5 guests