Hi, I've looked through the source code but I'm not knowledgable on this to know, is it possible to use your own ethernetclient implementation to download the OTA file? Something like how ArduinoOTA does it:
byte b;
while (length > 0) {
if (!client.readBytes(&b, 1)) // reading a byte with timeout
break;
InternalStorage.write(b);
length--;
}
InternalStorage.close();
I'd like this because I make the firmware available through my API which requires tokens and stuff to access, so it's more complicated than a publicly available URL