ESP32 OTA over many forms!
Crypted functions use AES-256 CBC.
WiFi library: WiFi
- Without Flash write and crypt OFF, can go up to 11.3Mb/s.
- Without Flash write and crypt ON, can go up to 7.3Mb/s.
- With Flash write, can go up to 570Kb/s.
- Basically, OTA HTTP get file (MIME MEDIA bytes) sent to ESP32 and write in OTA partition.
- .PROCESS() will host HTTP/HTML server, wait new client in HTTP web page, wait upload file and write all new incoming bytes to OTA partition.
- This library will write ALL BYTES received in MIME MEDIA. After start, your external software can't send any byte that are not from the binary file.
- If you use this library in separate task, stack of 4096B should be enough.
- This library can do Factory Reset (last binary burned by USB).
WF wifi;
wifi.ap_start("wifi", "1234567890");
OTA_HTTP ota;
ota.init(); //Default port 80
while (1)
{
ota.process(); //Wait client connection (up to 1sec) and read bytes sent by client in HTTP web page.
}
Insert your desired key.
WF wifi;
wifi.ap_start("wifi", "1234567890");
OTA_HTTP ota;
ota.init(); //Default port 80
//Set AES-256-CBC KEY and initial IV.
ota.crypto("12345678901234567890123456789012", "0123456789012345");
while (1)
{
ota.process(); //Wait client connection (up to 1sec) and read bytes sent by client in HTTP web page.
}