HTTP Server - Progress bar on front end
Posted: Thu Aug 10, 2023 5:04 am
I've established FW OTA update over ESP32 AP. I'm sending image in a single request with segmented packets(This is way faster than sending multiple requests). However, this forces me to continuously receive data in handler with 'http_req_recv'. This prevents me to take care of other http requests during ota update. My problem is I also want to report number of bytes esp32 received continuously such that I can update my progress bar on web page. I've tried to send periodic get requests but as I said, esp idf http server is busy with receiving ota image, it responds all those request right after ota image is completely received.
Another alternative is keeping track of number of bytes sent(client side implementation). I'm using fetch api and if possible this also works for me but I couldn't find reliable source for this.
I'm using IDF 5.0.1
Another alternative is keeping track of number of bytes sent(client side implementation). I'm using fetch api and if possible this also works for me but I couldn't find reliable source for this.
I'm using IDF 5.0.1