I am trying to implement OTA with ESP32 and thinking of using HTTP multipart/form-data as a protocol. Since I don't have a broad background in this protocol type, I wonder how I can receive HTTP multipart/form-data(file) from the server (to ESP32).
Could you give me any code examples, useful libraries, or general flow of it?
Also, I am currently using HTTPClient.h to post data to the server. Is this library enough to implement HTTP multipart form, or do I need the other one?
FYI, my OTA scenario is as below:
- (ESP32->server) check if there are any required updates
- (server->ESP32) send whether there exists any update
- (ESP32->server) request updates
- (server->ESP32) send firmware update file(s)
- (ESP32) receive the file(s) and reboot the device
Thank you in advance!